Spaces:
Running
Running
Deploy 2fc75ae1
Browse files- .opencodereview/vectors/chroma.sqlite3 +1 -1
- Dockerfile +9 -2
.opencodereview/vectors/chroma.sqlite3
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 9547776
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e3620c51e4aa6935f865ef85d4970c36eed3b9370081c9aa0b9135b385d0c0b1
|
| 3 |
size 9547776
|
Dockerfile
CHANGED
|
@@ -41,11 +41,16 @@ COPY requirements.txt .
|
|
| 41 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 42 |
|
| 43 |
# Optional dependencies (chromadb for vector store, langchain-groq for LLM)
|
|
|
|
|
|
|
|
|
|
| 44 |
RUN pip install --no-cache-dir \
|
| 45 |
chromadb \
|
| 46 |
langchain-groq \
|
| 47 |
langfuse \
|
| 48 |
-
langchain-google-genai
|
|
|
|
|
|
|
| 49 |
|
| 50 |
# -- Stage 2: Runtime (default) -----------------------------------------------
|
| 51 |
FROM python:3.12-slim AS runtime
|
|
@@ -65,7 +70,9 @@ COPY --from=builder /usr/local/lib/python3.12/site-packages /usr/local/lib/pytho
|
|
| 65 |
COPY --from=builder /usr/local/bin /usr/local/bin
|
| 66 |
|
| 67 |
# Fallback: multi-stage COPY may not transfer packages reliably on HF Spaces build infra
|
| 68 |
-
|
|
|
|
|
|
|
| 69 |
|
| 70 |
# Copy application code
|
| 71 |
COPY . .
|
|
|
|
| 41 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 42 |
|
| 43 |
# Optional dependencies (chromadb for vector store, langchain-groq for LLM)
|
| 44 |
+
# ragas and litellm are installed here (not just via requirements.txt)
|
| 45 |
+
# so pip resolves all transitive deps (numpy, etc.) together with
|
| 46 |
+
# chromadb, avoiding version conflicts at runtime.
|
| 47 |
RUN pip install --no-cache-dir \
|
| 48 |
chromadb \
|
| 49 |
langchain-groq \
|
| 50 |
langfuse \
|
| 51 |
+
langchain-google-genai \
|
| 52 |
+
ragas \
|
| 53 |
+
litellm
|
| 54 |
|
| 55 |
# -- Stage 2: Runtime (default) -----------------------------------------------
|
| 56 |
FROM python:3.12-slim AS runtime
|
|
|
|
| 70 |
COPY --from=builder /usr/local/bin /usr/local/bin
|
| 71 |
|
| 72 |
# Fallback: multi-stage COPY may not transfer packages reliably on HF Spaces build infra
|
| 73 |
+
# --no-deps prevents re-resolving transitive deps that may conflict with
|
| 74 |
+
# chromadb's pinned numpy version (already installed via builder COPY).
|
| 75 |
+
RUN pip install --no-deps --no-cache-dir langfuse ragas litellm
|
| 76 |
|
| 77 |
# Copy application code
|
| 78 |
COPY . .
|