Spaces:
Running
Running
XQ commited on
Commit ·
9915876
1
Parent(s): b8f74c0
Fix 429 issue
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
|
@@ -21,12 +21,14 @@ SentenceTransformer('paraphrase-multilingual-MiniLM-L12-v2'); \
|
|
| 21 |
CrossEncoder('cross-encoder/mmarco-mMiniLMv2-L12-H384-v1')"
|
| 22 |
|
| 23 |
# ---------- Build-time ingestion: import docs into Qdrant local ---------------
|
|
|
|
|
|
|
| 24 |
ENV QDRANT_PATH=/app/qdrant_data \
|
| 25 |
QDRANT_URL="" \
|
| 26 |
EMBEDDING_PROVIDER=local \
|
| 27 |
LLM_PROVIDER=google_genai \
|
| 28 |
API_BASE_URL=http://localhost:8000
|
| 29 |
-
RUN python -m scripts.ingest
|
| 30 |
|
| 31 |
# ---------- Nginx config: port 7860 reverse proxy ----------------------------
|
| 32 |
RUN rm /etc/nginx/sites-enabled/default
|
|
|
|
| 21 |
CrossEncoder('cross-encoder/mmarco-mMiniLMv2-L12-H384-v1')"
|
| 22 |
|
| 23 |
# ---------- Build-time ingestion: import docs into Qdrant local ---------------
|
| 24 |
+
# HF_HUB_OFFLINE=1 forces use of the cached models downloaded above,
|
| 25 |
+
# avoiding HuggingFace API calls that trigger 429 on shared IPs.
|
| 26 |
ENV QDRANT_PATH=/app/qdrant_data \
|
| 27 |
QDRANT_URL="" \
|
| 28 |
EMBEDDING_PROVIDER=local \
|
| 29 |
LLM_PROVIDER=google_genai \
|
| 30 |
API_BASE_URL=http://localhost:8000
|
| 31 |
+
RUN HF_HUB_OFFLINE=1 python -m scripts.ingest
|
| 32 |
|
| 33 |
# ---------- Nginx config: port 7860 reverse proxy ----------------------------
|
| 34 |
RUN rm /etc/nginx/sites-enabled/default
|