knowledge-base/backend/requirements.txt
Pratik Narola 0f0addb36b chore: migrate to mem0ai v2.0.2 (V3 memory pipeline)
Pin mem0ai[nlp]==2.0.2 and fastembed for the new hybrid-search pipeline.
Drop OSS graph memory (removed upstream in 2.0.0, PR #4805): remove Neo4j
service, env vars, volumes, and driver deps; mark /graph/relationships
deprecated. Rewrite Memory.search/get_all/chat/health call sites to use
the v2 filters={} + top_k API (entity IDs at top level now raise
ValueError). Tighten MCP remove_memory ownership check to O(1)
verify_memory_ownership so it doesn't silently truncate at the new
top_k=20 default. Downgrade base image to python:3.12-slim for spaCy.

Adds scripts/migrate_qdrant_to_v3.py (scroll+upsert with per-user count
parity check) and docs/MIGRATION_RUNBOOK.md covering snapshot, dump,
collection rebuild, cutover, and rollback procedures.
2026-05-23 14:49:45 +05:30

38 lines
442 B
Text

# Core Framework
fastapi
uvicorn[standard]
python-multipart
# Mem0 and AI
mem0ai[nlp]==2.0.2
fastembed>=0.3.1
openai
google-genai
cohere
# Database
qdrant-client>=1.12.0
ollama
# Utilities
pydantic
pydantic-settings
tenacity
python-dotenv
httpx
aiofiles
requests
# Logging and Monitoring
structlog
python-json-logger
# CORS and Security
python-jose[cryptography]
passlib[bcrypt]
# Rate Limiting
slowapi
# MCP Server
mcp[server]>=1.0.0