Shubham170793 commited on
Commit
54ca62a
·
verified ·
1 Parent(s): c7133f4

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +26 -14
requirements.txt CHANGED
@@ -1,25 +1,37 @@
1
- # Core web app
 
 
2
  streamlit==1.31.1
3
 
4
- # PDF ingestion
5
- pymupdf==1.22.5 # lightweight and builds ok in Spaces
 
 
 
6
 
7
- # Text splitting
8
- langchain==0.2.12
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
- # Core ML stack
 
 
17
  torch==2.5.0
18
  transformers==4.44.2
 
 
19
 
20
- # Utils
21
- numpy==1.26.4
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