# Latin/Greek RAG Helper — Python dependencies # # Install all: pip install -r requirements.txt # Install core only: pip install fastapi uvicorn[standard] psycopg2-binary anthropic openai pydantic python-dotenv # Python: 3.11+ # --- Web framework --- fastapi>=0.111.0 uvicorn[standard]>=0.29.0 # [standard] adds uvloop + httptools for better perf on Linux # --- Database --- psycopg2-binary>=2.9.9 # pre-compiled; swap for psycopg2 if building in Docker with libpq-dev # --- LLM providers --- # Both installed; only the active provider (LLM_PROVIDER env var) is called at runtime. # OpenAI is ALWAYS used for embeddings regardless of LLM_PROVIDER. anthropic>=0.28.0 openai>=1.30.0 # --- Data validation --- pydantic>=2.7.0 # --- Environment --- python-dotenv>=1.0.1 # --- Google Drive ingestion (scripts/ingest_gdrive.py) --- # Drive access uses the gog CLI (gogcli) already installed at /usr/local/bin/gog. # No Google API client libraries needed — gog handles OAuth via conductor@nerdbox.com. # --- PDF text extraction (for .pdf files from Drive) --- pypdf>=4.2.0 # --- Word document extraction (for .docx files from Drive, optional) --- python-docx>=1.1.0 # --- Token counting (optional — for input truncation before embedding) --- # tiktoken>=0.7.0