Spaces:
Sleeping
Sleeping
SAAHMATHWORKS
commited on
Commit
·
ca65f51
1
Parent(s):
4cf7c2f
uv pip compile pyproject toml2
Browse files- requirements.txt +13 -46
requirements.txt
CHANGED
|
@@ -1,74 +1,41 @@
|
|
| 1 |
# ============================================================================
|
| 2 |
-
#
|
| 3 |
-
#
|
| 4 |
# ============================================================================
|
| 5 |
|
| 6 |
-
# Web Framework
|
| 7 |
fastapi==0.118.2
|
| 8 |
uvicorn[standard]==0.37.0
|
| 9 |
-
starlette==0.48.0
|
| 10 |
|
| 11 |
-
# LangChain & LangGraph -
|
| 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-
|
| 19 |
|
| 20 |
-
# LangGraph Checkpointing
|
| 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 -
|
| 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 -
|
| 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 |
-
|
| 70 |
-
|
| 71 |
-
packaging==25.0
|
| 72 |
|
| 73 |
# Optional but recommended
|
|
|
|
| 74 |
rich==14.1.0
|
|
|
|
| 1 |
# ============================================================================
|
| 2 |
+
# MINIMAL Requirements for Hugging Face Space
|
| 3 |
+
# Only absolutely essential packages - others will be installed as dependencies
|
| 4 |
# ============================================================================
|
| 5 |
|
| 6 |
+
# Web Framework
|
| 7 |
fastapi==0.118.2
|
| 8 |
uvicorn[standard]==0.37.0
|
|
|
|
| 9 |
|
| 10 |
+
# LangChain & LangGraph - Core only (dependencies will pull others)
|
| 11 |
langgraph==0.6.8
|
| 12 |
langchain==0.3.27
|
|
|
|
|
|
|
|
|
|
| 13 |
langchain-openai==0.3.35
|
| 14 |
+
langchain-mongodb==0.7.0
|
| 15 |
|
| 16 |
+
# LangGraph Checkpointing
|
|
|
|
| 17 |
langgraph-checkpoint-postgres==2.0.25
|
|
|
|
|
|
|
| 18 |
|
| 19 |
+
# Database - CRITICAL: Use psycopg-binary for Hugging Face
|
| 20 |
+
psycopg[binary]==3.2.10
|
| 21 |
+
psycopg-binary==3.2.10
|
| 22 |
psycopg-pool==3.2.6
|
|
|
|
|
|
|
|
|
|
| 23 |
pymongo==4.15.3
|
| 24 |
|
| 25 |
# OpenAI
|
| 26 |
openai==1.109.1
|
| 27 |
|
| 28 |
+
# Pydantic - MUST specify exact versions for serialization
|
| 29 |
pydantic==2.11.10
|
| 30 |
pydantic-core==2.33.2
|
|
|
|
| 31 |
|
| 32 |
# Document Processing
|
| 33 |
pypdf==6.1.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
# Utilities
|
| 36 |
+
python-dotenv==1.1.1
|
| 37 |
+
lxml==6.0.2
|
|
|
|
| 38 |
|
| 39 |
# Optional but recommended
|
| 40 |
+
langsmith==0.4.33
|
| 41 |
rich==14.1.0
|