Spaces:
Sleeping
Sleeping
SAAHMATHWORKS
commited on
Commit
·
4cf7c2f
1
Parent(s):
8f0db18
uv pip compile pyproject toml
Browse files- requirements.txt +59 -30
requirements.txt
CHANGED
|
@@ -1,45 +1,74 @@
|
|
| 1 |
-
#
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
|
| 5 |
-
#
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
langchain==0.3.27
|
| 8 |
-
langchain-community==0.3.
|
| 9 |
-
langchain-core==0.3.
|
| 10 |
langchain-mongodb==0.7.0
|
| 11 |
-
langchain-openai==0.3.
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
-
# Database -
|
| 15 |
-
psycopg
|
| 16 |
-
psycopg-pool==3.2.
|
| 17 |
-
|
| 18 |
|
| 19 |
# MongoDB
|
| 20 |
-
pymongo==4.
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
-
#
|
| 23 |
-
|
|
|
|
|
|
|
| 24 |
|
| 25 |
# Document Processing
|
| 26 |
-
pypdf==
|
|
|
|
| 27 |
|
| 28 |
-
#
|
| 29 |
-
|
| 30 |
|
| 31 |
-
#
|
| 32 |
-
numpy==
|
| 33 |
-
|
| 34 |
-
tiktoken==0.8.0
|
| 35 |
|
| 36 |
-
# HTTP
|
| 37 |
-
|
|
|
|
| 38 |
|
| 39 |
-
#
|
| 40 |
-
|
| 41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
# Utilities
|
| 44 |
-
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|