Lung-Cancer-AI-Advisor / requirements.txt
moazx's picture
Enhance API security and functionality by adding authentication middleware and session management. Updated app.py to include the new auth router and integrated authentication checks for protected endpoints. Modified requirements.txt to include necessary libraries for session handling. Updated .env.example to include authentication credentials. Improved retrieval functions with query expansion for better medical term matching and enriched context in responses.
ddc9c77
raw
history blame contribute delete
747 Bytes
# API
fastapi==0.116.1
uvicorn==0.35.0
# LangChain ecosystem - only what's needed
langchain==0.3.27
langchain_community==0.3.27
langchain_openai==0.3.28
langchain_huggingface==0.3.1
langchain-pymupdf4llm==0.4.1
# OpenAI
openai==1.99.2
# Data processing
pandas==2.3.1
pydantic==2.11.7
# Utilities
python-dotenv==1.1.1
pytz==2025.2
requests==2.32.4
# Embeddings and search - CPU optimized versions
sentence-transformers==5.0.0
faiss-cpu==1.11.0.post1 # CPU version is much smaller
rank-bm25==0.2.2
# Fix for numpy and torch compatibility
numpy<2
torch==2.2.2+cpu
--extra-index-url https://download.pytorch.org/whl/cpu
# Document generation
python-docx==1.1.2
reportlab==4.2.5
# Authentication
python-multipart>=0.0.18
itsdangerous==2.2.0