amirulhazym
commited on
Commit
·
ca0cb3c
1
Parent(s):
a0bcfd8
Refine requirements.txt for deployment
Browse files- requirements.txt +43 -165
requirements.txt
CHANGED
|
@@ -1,170 +1,48 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
aiohttp==3.11.16
|
| 4 |
-
aiosignal==1.3.2
|
| 5 |
-
altair==5.5.0
|
| 6 |
-
annotated-types==0.7.0
|
| 7 |
-
anyio==4.9.0
|
| 8 |
-
argon2-cffi==23.1.0
|
| 9 |
-
argon2-cffi-bindings==21.2.0
|
| 10 |
-
arrow==1.3.0
|
| 11 |
-
asttokens==3.0.0
|
| 12 |
-
async-lru==2.0.5
|
| 13 |
-
attrs==25.3.0
|
| 14 |
-
babel==2.17.0
|
| 15 |
-
beautifulsoup4==4.13.3
|
| 16 |
-
bleach==6.2.0
|
| 17 |
-
blinker==1.9.0
|
| 18 |
-
cachetools==5.5.2
|
| 19 |
-
certifi==2025.1.31
|
| 20 |
-
cffi==1.17.1
|
| 21 |
-
charset-normalizer==3.4.1
|
| 22 |
-
click==8.1.8
|
| 23 |
-
colorama==0.4.6
|
| 24 |
-
comm==0.2.2
|
| 25 |
-
dataclasses-json==0.6.7
|
| 26 |
-
datasets==3.5.0
|
| 27 |
-
debugpy==1.8.13
|
| 28 |
-
decorator==5.2.1
|
| 29 |
-
defusedxml==0.7.1
|
| 30 |
-
dill==0.3.8
|
| 31 |
-
executing==2.2.0
|
| 32 |
-
faiss-cpu==1.10.0
|
| 33 |
-
fastjsonschema==2.21.1
|
| 34 |
-
filelock==3.18.0
|
| 35 |
-
fqdn==1.5.1
|
| 36 |
-
frozenlist==1.5.0
|
| 37 |
-
fsspec==2024.12.0
|
| 38 |
-
gitdb==4.0.12
|
| 39 |
-
GitPython==3.1.44
|
| 40 |
-
greenlet==3.1.1
|
| 41 |
-
h11==0.14.0
|
| 42 |
-
hf-xet==1.0.3
|
| 43 |
-
httpcore==1.0.7
|
| 44 |
-
httpx==0.28.1
|
| 45 |
-
httpx-sse==0.4.0
|
| 46 |
-
huggingface-hub==0.30.1
|
| 47 |
-
idna==3.10
|
| 48 |
-
ipykernel==6.29.5
|
| 49 |
-
ipython==9.0.2
|
| 50 |
-
ipython_pygments_lexers==1.1.1
|
| 51 |
-
ipywidgets==8.1.5
|
| 52 |
-
isoduration==20.11.0
|
| 53 |
-
jedi==0.19.2
|
| 54 |
-
Jinja2==3.1.6
|
| 55 |
-
joblib==1.4.2
|
| 56 |
-
json5==0.12.0
|
| 57 |
-
jsonpatch==1.33
|
| 58 |
-
jsonpointer==3.0.0
|
| 59 |
-
jsonschema==4.23.0
|
| 60 |
-
jsonschema-specifications==2024.10.1
|
| 61 |
-
jupyter-events==0.12.0
|
| 62 |
-
jupyter-lsp==2.2.5
|
| 63 |
-
jupyter_client==8.6.3
|
| 64 |
-
jupyter_core==5.7.2
|
| 65 |
-
jupyter_server==2.15.0
|
| 66 |
-
jupyter_server_terminals==0.5.3
|
| 67 |
-
jupyterlab==4.4.0
|
| 68 |
-
jupyterlab_pygments==0.3.0
|
| 69 |
-
jupyterlab_server==2.27.3
|
| 70 |
-
jupyterlab_widgets==3.0.13
|
| 71 |
langchain==0.3.23
|
| 72 |
-
langchain-
|
|
|
|
| 73 |
langchain-core==0.3.51
|
| 74 |
-
langchain-huggingface==0.1.2
|
| 75 |
langchain-text-splitters==0.3.8
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
matplotlib-inline==0.1.7
|
| 80 |
-
mistune==3.1.3
|
| 81 |
-
mpmath==1.3.0
|
| 82 |
-
multidict==6.3.2
|
| 83 |
-
multiprocess==0.70.16
|
| 84 |
-
mypy-extensions==1.0.0
|
| 85 |
-
narwhals==1.33.0
|
| 86 |
-
nbclient==0.10.2
|
| 87 |
-
nbconvert==7.16.6
|
| 88 |
-
nbformat==5.10.4
|
| 89 |
-
nest-asyncio==1.6.0
|
| 90 |
-
networkx==3.4.2
|
| 91 |
-
notebook_shim==0.2.4
|
| 92 |
-
numpy==2.2.4
|
| 93 |
-
orjson==3.10.16
|
| 94 |
-
overrides==7.7.0
|
| 95 |
-
packaging==24.2
|
| 96 |
-
pandas==2.2.3
|
| 97 |
-
pandocfilters==1.5.1
|
| 98 |
-
parso==0.8.4
|
| 99 |
-
pillow==11.1.0
|
| 100 |
-
platformdirs==4.3.7
|
| 101 |
-
prometheus_client==0.21.1
|
| 102 |
-
prompt_toolkit==3.0.50
|
| 103 |
-
propcache==0.3.1
|
| 104 |
-
protobuf==5.29.4
|
| 105 |
-
psutil==7.0.0
|
| 106 |
-
pure_eval==0.2.3
|
| 107 |
-
pyarrow==19.0.1
|
| 108 |
-
pycparser==2.22
|
| 109 |
-
pydantic==2.11.2
|
| 110 |
-
pydantic-settings==2.8.1
|
| 111 |
-
pydantic_core==2.33.1
|
| 112 |
-
pydeck==0.9.1
|
| 113 |
-
Pygments==2.19.1
|
| 114 |
-
python-dateutil==2.9.0.post0
|
| 115 |
-
python-dotenv==1.1.0
|
| 116 |
-
python-json-logger==3.3.0
|
| 117 |
-
pytz==2025.2
|
| 118 |
-
pywin32==310
|
| 119 |
-
pywinpty==2.0.15
|
| 120 |
-
PyYAML==6.0.2
|
| 121 |
-
pyzmq==26.4.0
|
| 122 |
-
referencing==0.36.2
|
| 123 |
-
regex==2024.11.6
|
| 124 |
-
requests==2.32.3
|
| 125 |
-
requests-toolbelt==1.0.0
|
| 126 |
-
rfc3339-validator==0.1.4
|
| 127 |
-
rfc3986-validator==0.1.1
|
| 128 |
-
rpds-py==0.24.0
|
| 129 |
-
safetensors==0.5.3
|
| 130 |
-
scikit-learn==1.6.1
|
| 131 |
-
scipy==1.15.2
|
| 132 |
-
Send2Trash==1.8.3
|
| 133 |
sentence-transformers==4.0.2
|
| 134 |
-
|
| 135 |
-
setuptools==78.1.0
|
| 136 |
-
six==1.17.0
|
| 137 |
-
smmap==5.0.2
|
| 138 |
-
sniffio==1.3.1
|
| 139 |
-
soupsieve==2.6
|
| 140 |
-
SQLAlchemy==2.0.40
|
| 141 |
-
stack-data==0.6.3
|
| 142 |
-
streamlit==1.44.1
|
| 143 |
-
sympy==1.13.1
|
| 144 |
-
tenacity==9.1.2
|
| 145 |
-
terminado==0.18.1
|
| 146 |
-
threadpoolctl==3.6.0
|
| 147 |
-
tinycss2==1.4.0
|
| 148 |
-
tokenizers==0.21.1
|
| 149 |
-
toml==0.10.2
|
| 150 |
-
torch==2.6.0
|
| 151 |
-
tornado==6.4.2
|
| 152 |
-
tqdm==4.67.1
|
| 153 |
-
traitlets==5.14.3
|
| 154 |
transformers==4.51.2
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
streamlit==1.44.1
|
| 2 |
+
# === LangChain & Dependencies ===
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
langchain==0.3.23
|
| 4 |
+
langchain-huggingface==0.1.2 # Use specific package
|
| 5 |
+
langchain-community==0.3.21 # Still needed for FAISS, TextLoader etc.
|
| 6 |
langchain-core==0.3.51
|
|
|
|
| 7 |
langchain-text-splitters==0.3.8
|
| 8 |
+
# --- FAISS ---
|
| 9 |
+
faiss-cpu==1.10.0 # Explicitly CPU version
|
| 10 |
+
# --- Embeddings ---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
sentence-transformers==4.0.2
|
| 12 |
+
# --- LLM & Transformers Backend ---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
transformers==4.51.2
|
| 14 |
+
torch==2.6.0 # Base torch, allow HF Spaces to potentially provide CUDA if needed
|
| 15 |
+
sentencepiece==0.2.0 # Often required by tokenizers
|
| 16 |
+
accelerate==1.6.0 # Often helps Trainer/Pipeline performance
|
| 17 |
+
# --- Data Handling (Minimal needed by LangChain/Models) ---
|
| 18 |
+
numpy==2.2.4
|
| 19 |
+
pandas==2.2.3 # Needed for DataFrame creation within API/Demo if used
|
| 20 |
+
# --- Pydantic (Core LangChain dependency) ---
|
| 21 |
+
pydantic==2.11.2 # Keep this version as LangChain depends on it
|
| 22 |
+
# --- Other Core LangChain Deps (Often pulled automatically, but good to list) ---
|
| 23 |
+
SQLAlchemy==2.0.40 # Often a core dep
|
| 24 |
+
requests>=2.32.2 # For potential external calls / HF Hub downloads
|
| 25 |
+
PyYAML==6.0.2 # For config parsing by libraries
|
| 26 |
+
# --- Required by HuggingFaceEmbeddings/SentenceTransformers ---
|
| 27 |
+
huggingface-hub>=0.24.0 # Crucial for downloading models
|
| 28 |
+
filelock # Often used by HF Hub for caching
|
| 29 |
+
packaging # Often used for version checks
|
| 30 |
+
# --- Required by FAISS ---
|
| 31 |
+
# numpy (already included)
|
| 32 |
+
|
| 33 |
+
# --- Potentially Optional (If not directly used or pulled by above) ---
|
| 34 |
+
# Remove if causing issues, add back if ModuleNotFoundError occurs:
|
| 35 |
+
# aiohttp # Langchain async dependency
|
| 36 |
+
# dataclasses-json # Langchain dependency
|
| 37 |
+
# jsonpatch # Langchain dependency
|
| 38 |
+
# tenacity # Langchain retry dependency
|
| 39 |
+
# tqdm # For progress bars, might not be needed in deployed app logs
|
| 40 |
+
|
| 41 |
+
# --- DEFINITELY REMOVE ---
|
| 42 |
+
# - Jupyter related: jupyterlab, notebook, ipykernel, ipywidgets, nbclient, etc.
|
| 43 |
+
# - Local Dev Tools: pytest, pylint, flake8, watchdog, debugpy, etc.
|
| 44 |
+
# - EDA: ydata-profiling / pandas-profiling
|
| 45 |
+
# - Ray Tune: ray, scikit-optimize, hyperopt
|
| 46 |
+
# - Specific OS things: pywin32, pywinpty (unless specifically needed by a core lib)
|
| 47 |
+
# - Database/Other format specific: gcsfs, etc. unless your KB needs them
|
| 48 |
+
# - Build/Unused: setuptools, wheel, etc.
|