# Runtime dependencies for API container (no training/evaluation tooling).
fastapi>=0.115.0
uvicorn[standard]>=0.32.0
pydantic>=2.0
pydantic-settings>=2.0
sqlalchemy[asyncio]>=2.0
asyncpg>=0.30.0
pgvector>=0.3.0
neo4j>=5.0
redis>=5.0
celery>=5.4
openai>=1.0
tiktoken>=0.8
python-dotenv>=1.0
structlog>=24.0
cachetools>=5.0
tenacity>=8.0
prometheus-client>=0.21
alembic>=1.14

# Runtime NLP stack
semchunk
transformers>=4.45
sentence-transformers>=5.0
# einops has no importer in this repo and must not be pruned: it is a transitive
# requirement of the default embedding model's trust_remote_code MoE implementation
# (nomic-embed-text-v2-moe), imported at model-load time.
einops>=0.7.0

# GPU-accelerated torch (CUDA 12.9 — matches driver 565+/580+). The wheel vendors its
# own CUDA runtime; nvidia-container-toolkit mounts the host driver at run time.
#
# The version MUST stay an exact +cu129 pin. With --extra-index-url pip merges both
# indexes and takes the highest version, and PyPI's default-CUDA torch outranks
# anything on the cu129 index — which is how a CUDA-13.0 build silently landed here.
# Bumping this is a deliberate act: check https://download.pytorch.org/whl/cu129/torch/
# for the newest +cu129 wheel. (uv.lock resolves from pyproject.toml, not this file,
# so it legitimately shows a plain version — don't "fix" the pin to match it.)
--extra-index-url https://download.pytorch.org/whl/cu129
torch==2.13.0+cu129
