Spaces:
Running
Running
Deploy 6b715d16
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
|
@@ -72,7 +72,8 @@ COPY --from=builder /usr/local/bin /usr/local/bin
|
|
| 72 |
# Fallback: multi-stage COPY may not transfer packages reliably on HF Spaces build infra.
|
| 73 |
# Install ragas+litellm normally (with deps) so transitive dependencies like
|
| 74 |
# numpy, datasets, etc. are available at import time.
|
| 75 |
-
|
|
|
|
| 76 |
|
| 77 |
# Verify ragas + chromadb are both importable (numpy version compatibility check)
|
| 78 |
RUN python -c "import ragas, chromadb; print(f'ragas {ragas.__version__} + chromadb OK')"
|
|
|
|
| 72 |
# Fallback: multi-stage COPY may not transfer packages reliably on HF Spaces build infra.
|
| 73 |
# Install ragas+litellm normally (with deps) so transitive dependencies like
|
| 74 |
# numpy, datasets, etc. are available at import time.
|
| 75 |
+
# Pin numpy<2 to stay compatible with chromadb (uses numpy.float_ removed in 2.x)
|
| 76 |
+
RUN pip install --no-cache-dir langfuse "ragas>=0.3,<0.4" "numpy<2" litellm
|
| 77 |
|
| 78 |
# Verify ragas + chromadb are both importable (numpy version compatibility check)
|
| 79 |
RUN python -c "import ragas, chromadb; print(f'ragas {ragas.__version__} + chromadb OK')"
|