MemLink is a production-ready middleware that provides:
- Persistent session memory per user/device.
- Vector embeddings for semantic memory retrieval.
- Multi-session and overlay support for multiple accounts.
- Context-aware prompt generation for AI models.
- REST API interface via FastAPI.
- Containerized deployment via Docker/Docker Compose.
- Multi-session handling: Each user/device can have independent or shared session memory.
- Persistent vector memory: Stores embeddings in FAISS for fast similarity search.
- Overlay support: Multiple accounts can share a base session and apply personal overlays.
- API endpoints:
- GET
/- Health check. - POST
/query- Query session memory and get prompt.
- GET
- Docker support: Ready for containerized deployment.
- Integration ready: Can integrate with other projects (e.g., Flyometer).
- Build Docker image:
docker-compose build- Start container:
docker-compose up- Query API:
POST http://localhost:8000/query
{
"session_id": "user123",
"user_input": "Explain stateful AI integration",
"top_k": 3
}MemLink/
├── src/ # Core middleware modules
├── api/ # FastAPI application
├── data/ # Session data storage
├── examples/ # Example scripts
├── Dockerfile # Docker configuration
├── docker-compose.yml # Compose file for container orchestration
├── requirements.txt # Python dependencies
├── pyproject.toml # Project metadata
└── README.md # This file
MIT License