Update requirements.txt
Browse files- requirements.txt +26 -14
requirements.txt
CHANGED
|
@@ -1,25 +1,37 @@
|
|
| 1 |
-
#
|
|
|
|
|
|
|
| 2 |
streamlit==1.31.1
|
| 3 |
|
| 4 |
-
#
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
-
#
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
# Embeddings
|
| 11 |
sentence-transformers==2.7.0
|
| 12 |
-
|
| 13 |
-
# Vector search (Hugging Face supports this wheel)
|
| 14 |
faiss-cpu==1.12.0
|
|
|
|
|
|
|
| 15 |
|
| 16 |
-
#
|
|
|
|
|
|
|
| 17 |
torch==2.5.0
|
| 18 |
transformers==4.44.2
|
|
|
|
|
|
|
| 19 |
|
| 20 |
-
#
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
#LLM new
|
| 24 |
openai>=1.3.0
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ========================================
|
| 2 |
+
# Core Web App
|
| 3 |
+
# ========================================
|
| 4 |
streamlit==1.31.1
|
| 5 |
|
| 6 |
+
# ========================================
|
| 7 |
+
# PDF Ingestion / Text Extraction
|
| 8 |
+
# ========================================
|
| 9 |
+
pymupdf==1.22.5 # For PDF text extraction (fast, works in HF Spaces)
|
| 10 |
+
langchain==0.2.12 # For text splitting (optional but compatible)
|
| 11 |
|
| 12 |
+
# ========================================
|
| 13 |
+
# Embeddings / Vector Search
|
| 14 |
+
# ========================================
|
|
|
|
| 15 |
sentence-transformers==2.7.0
|
|
|
|
|
|
|
| 16 |
faiss-cpu==1.12.0
|
| 17 |
+
numpy==1.26.4
|
| 18 |
+
scikit-learn==1.5.1 # Needed for cosine similarity
|
| 19 |
|
| 20 |
+
# ========================================
|
| 21 |
+
# Core ML / LLM Stack
|
| 22 |
+
# ========================================
|
| 23 |
torch==2.5.0
|
| 24 |
transformers==4.44.2
|
| 25 |
+
accelerate==0.33.0 # Needed for device_map="auto"
|
| 26 |
+
safetensors==0.4.4 # Safe model loading on HF models
|
| 27 |
|
| 28 |
+
# ========================================
|
| 29 |
+
# Optional: OpenAI fallback (disabled by default)
|
| 30 |
+
# ========================================
|
|
|
|
| 31 |
openai>=1.3.0
|
| 32 |
|
| 33 |
+
# ========================================
|
| 34 |
+
# Optional: Low-memory model alternative
|
| 35 |
+
# ========================================
|
| 36 |
+
# For Phi-3 or Zephyr integration (only if you plan to toggle models)
|
| 37 |
+
# mistral models work fine without these extra libs
|