# FinChat API (FastAPI) — backend dependencies for the headless Space. # # The RAG stack is pinned to the SAME versions verified end-to-end in the main # requirements.txt (Python 3.12). Unpinned installs previously resolved a # different stack and broke chromadb's storage engine at startup — keep these # pins in sync with ../requirements.txt. # --- web server --- fastapi==0.115.6 uvicorn[standard]==0.34.0 # --- RAG orchestration --- langchain==1.3.11 langchain-community==0.4.2 langchain-huggingface==1.2.2 langchain-groq==1.1.3 langchain-chroma==1.1.0 # --- vector store --- chromadb==1.5.9 # --- embedding model runtime (pulls in torch, CPU is fine) --- sentence-transformers==5.6.0 # --- config / secrets --- python-dotenv==1.2.2