74492d975ba078d44b19089d1afa422ffdcb0166
Mem0 Docker with Qdrant
Dockerized memory service using mem0 with Qdrant vector database for semantic memory storage.
Quick Start
- Copy the example environment file:
cp example.env .env
-
Edit
.envwith your configuration:MEM0_PORT: Port for the mem0 APIQDRANT_HOST: Qdrant host (default: qdrant)QDRANT_PORT: Qdrant port (default: 6333)EMBEDDING_URL: llama.cpp embedding endpoint URLEMBEDDING_DIMS: Embedding dimension size
-
Start the services:
docker-compose up -d
API Endpoints
Health Check
GET /health
Add Memory
POST /add
Content-Type: application/json
{
"message": "Memory text to store",
"user_id": "default",
"metadata": {}
}
Search Memories
POST /search
Content-Type: application/json
{
"query": "Search query",
"user_id": "default",
"limit": 5
}
Get All Memories
GET /memories?user_id=default
Delete Memory
DELETE /delete/{memory_id}
Files
docker-compose.yml: Docker Compose configurationDockerfile: Container build instructionsmain.py: FastAPI memory API servermem0_server.py: Alternative HTTP server implementationrequirements.txt: Python dependenciesexample.env: Environment variable template
Configuration
The service requires an external llama.cpp embedding endpoint. Configure the EMBEDDING_URL to point to your embedding service.
Description
Languages
Python
95.7%
Dockerfile
4.3%