SAAHMATHWORKS commited on
Commit
4cf7c2f
·
1 Parent(s): 8f0db18

uv pip compile pyproject toml

Browse files
Files changed (1) hide show
  1. requirements.txt +59 -30
requirements.txt CHANGED
@@ -1,45 +1,74 @@
1
- # Web Framework
2
- fastapi==0.116.2
3
- uvicorn[standard]==0.35.0
 
4
 
5
- # LangChain & LangGraph
6
- langgraph==0.3.18
 
 
 
 
 
7
  langchain==0.3.27
8
- langchain-community==0.3.20
9
- langchain-core==0.3.76
10
  langchain-mongodb==0.7.0
11
- langchain-openai==0.3.9
12
- langgraph-checkpoint-postgres==2.0.23
 
 
 
 
 
 
13
 
14
- # Database - FIXED: Added psycopg v3
15
- psycopg[binary,pool]==3.2.3
16
- psycopg-pool==3.2.4
17
- python-dotenv==1.0.1
18
 
19
  # MongoDB
20
- pymongo==4.10.0
 
 
 
21
 
22
- # AI/ML
23
- openai==1.68.2
 
 
24
 
25
  # Document Processing
26
- pypdf==5.4.0
 
27
 
28
- # Vector Store
29
- chromadb==0.5.20
30
 
31
- # Data Processing
32
- numpy==1.26.4
33
- pandas==2.2.0
34
- tiktoken==0.8.0
35
 
36
- # HTTP
37
- requests==2.32.3
 
38
 
39
- # Pydantic
40
- pydantic==2.11.9
41
- pydantic-settings==2.6.0
 
 
 
 
 
 
 
42
 
43
  # Utilities
44
- rich==14.1.0
45
- lxml==5.3.1
 
 
 
 
 
1
+ # ============================================================================
2
+ # Hugging Face Space Requirements - Optimized for MultiCountryLegalRAG
3
+ # Based on your working local environment (pyproject.toml output)
4
+ # ============================================================================
5
 
6
+ # Web Framework (Keep same versions as local)
7
+ fastapi==0.118.2
8
+ uvicorn[standard]==0.37.0
9
+ starlette==0.48.0
10
+
11
+ # LangChain & LangGraph - CRITICAL: Match your local versions
12
+ langgraph==0.6.8
13
  langchain==0.3.27
14
+ langchain-community==0.3.31
15
+ langchain-core==0.3.78
16
  langchain-mongodb==0.7.0
17
+ langchain-openai==0.3.35
18
+ langchain-text-splitters==0.3.11
19
+
20
+ # LangGraph Checkpointing - CRITICAL: Match local versions
21
+ langgraph-checkpoint==2.1.2
22
+ langgraph-checkpoint-postgres==2.0.25
23
+ langgraph-prebuilt==0.6.4
24
+ langgraph-sdk==0.2.9
25
 
26
+ # Database - PostgreSQL (Neon) - CRITICAL: Match exact versions
27
+ psycopg==3.2.10
28
+ psycopg-pool==3.2.6
29
+ asyncpg==0.30.0
30
 
31
  # MongoDB
32
+ pymongo==4.15.3
33
+
34
+ # OpenAI
35
+ openai==1.109.1
36
 
37
+ # Pydantic - CRITICAL: Must match local for serialization compatibility
38
+ pydantic==2.11.10
39
+ pydantic-core==2.33.2
40
+ pydantic-settings==2.11.0
41
 
42
  # Document Processing
43
+ pypdf==6.1.1
44
+ lxml==6.0.2
45
 
46
+ # LangSmith (for tracing/monitoring)
47
+ langsmith==0.4.33
48
 
49
+ # Vector/Numpy
50
+ numpy==2.3.3
51
+ pgvector==0.3.6
 
52
 
53
+ # HTTP Client
54
+ httpx==0.28.1
55
+ requests==2.32.5
56
 
57
+ # Environment
58
+ python-dotenv==1.1.1
59
+
60
+ # Async utilities
61
+ aiofiles==24.1.0
62
+ anyio==4.11.0
63
+
64
+ # JSON/Data handling - Important for serialization
65
+ orjson==3.11.3
66
+ ormsgpack==1.11.0
67
 
68
  # Utilities
69
+ tenacity==9.1.2
70
+ typing-extensions==4.15.0
71
+ packaging==25.0
72
+
73
+ # Optional but recommended
74
+ rich==14.1.0