Julien-ser commited on
Commit
1f74c77
·
1 Parent(s): 414b2a4

Add separate requirements for the scheduled refresh job

Browse files

requirements_hf.txt pins versions for the Space's Python 3.9 container
(numpy 1.26.4, faiss-cpu 1.7.4). Those pins cannot build on the refresh box,
which runs Python 3.14, and the refresh job does not need flask, openai, or
faster-whisper anyway.

Only the FAISS index format crosses between the two, and it is stable across
these ranges: build with modern versions, serve with the pinned ones.

Files changed (1) hide show
  1. requirements_refresh.txt +22 -0
requirements_refresh.txt ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dependencies for the scheduled refresh job only (download + build_index).
2
+ #
3
+ # Deliberately separate from requirements_hf.txt, which pins old versions for
4
+ # the Space's Python 3.9 container (numpy 1.26.4, faiss-cpu 1.7.4). Those pins
5
+ # cannot build on a modern interpreter, and the refresh box runs Python 3.14.
6
+ #
7
+ # The refresh job never imports flask, openai, or faster-whisper; it only needs
8
+ # to fetch sources and write a FAISS index. Nothing here affects the deployed
9
+ # Space, which still installs requirements_hf.txt inside its own container.
10
+ #
11
+ # The index format is what crosses between them, and it is stable across these
12
+ # version ranges: build here, serve there.
13
+
14
+ requests>=2.31.0
15
+ python-dotenv>=1.0.1
16
+ beautifulsoup4>=4.12.2
17
+ numpy>=1.26
18
+ faiss-cpu>=1.7.4
19
+ cohere>=4.57
20
+ langchain-community>=0.3.14
21
+ langchain-text-splitters>=0.3.0
22
+ PyPDF2>=3.0.1