Spaces:
Sleeping
Sleeping
Commit
·
7f9dae4
1
Parent(s):
5a13e62
Fix for inaccessible .db files
Browse files- Dockerfile +6 -3
- backend/conf/config.yaml +1 -26
Dockerfile
CHANGED
|
@@ -24,10 +24,13 @@ RUN uv sync --frozen --no-cache
|
|
| 24 |
# Copy the application code
|
| 25 |
COPY backend/ ./backend/
|
| 26 |
COPY data/ ./data/
|
| 27 |
-
COPY data/processed/vector_db/* /tmp/
|
| 28 |
|
| 29 |
-
# Create
|
| 30 |
-
RUN mkdir -p backend/api/static
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
# Expose the port
|
| 33 |
EXPOSE 8000
|
|
|
|
| 24 |
# Copy the application code
|
| 25 |
COPY backend/ ./backend/
|
| 26 |
COPY data/ ./data/
|
|
|
|
| 27 |
|
| 28 |
+
# Create writable directories for Milvus lock files
|
| 29 |
+
RUN mkdir -p backend/api/static /tmp/vector_db && \
|
| 30 |
+
chmod 777 /tmp/vector_db
|
| 31 |
+
|
| 32 |
+
# Copy vector database files to writable location
|
| 33 |
+
COPY data/processed/vector_db/* /tmp/vector_db/
|
| 34 |
|
| 35 |
# Expose the port
|
| 36 |
EXPOSE 8000
|
backend/conf/config.yaml
CHANGED
|
@@ -35,16 +35,6 @@ local:
|
|
| 35 |
pdf_extractor:
|
| 36 |
extension: ".pdf"
|
| 37 |
|
| 38 |
-
gemini_generative_model:
|
| 39 |
-
model_name: "gemini-2.5-flash"
|
| 40 |
-
api_key: "{GOOGLE_GEMINI_API_KEY}"
|
| 41 |
-
backup_api_key: "{GOOGLE_GEMINI_BACKUP_API_KEY}"
|
| 42 |
-
temperature: 0.0
|
| 43 |
-
|
| 44 |
-
openai_generative_model:
|
| 45 |
-
api_key: "{OPENAI_API_KEY}"
|
| 46 |
-
temperature: 0.0
|
| 47 |
-
|
| 48 |
galileo_platform:
|
| 49 |
protect_stage_name: "deutsche-bank_rfp-rag_protect-local-stage"
|
| 50 |
logstream_name: "misc"
|
|
@@ -60,7 +50,7 @@ docker:
|
|
| 60 |
chunk_overlap: 50
|
| 61 |
|
| 62 |
vector_database:
|
| 63 |
-
db_path: "/
|
| 64 |
dimensions: 768
|
| 65 |
|
| 66 |
embedding_model:
|
|
@@ -70,22 +60,7 @@ docker:
|
|
| 70 |
pdf_extractor:
|
| 71 |
extension: ".pdf"
|
| 72 |
|
| 73 |
-
gemini_generative_model:
|
| 74 |
-
model_name: "gemini-2.0-flash"
|
| 75 |
-
api_key: "{GOOGLE_GEMINI_API_KEY}"
|
| 76 |
-
backup_api_key: "{GOOGLE_GEMINI_BACKUP_API_KEY}"
|
| 77 |
-
temperature: 0.0
|
| 78 |
-
|
| 79 |
-
openai_generative_model:
|
| 80 |
-
model_name: "gpt-4.1-nano-2025-04-14"
|
| 81 |
-
api_key: "{OPENAI_API_KEY}"
|
| 82 |
-
temperature: 0.0
|
| 83 |
-
|
| 84 |
galileo_platform:
|
| 85 |
-
# evaluate_project_name: "lseg-qa-evaluate"
|
| 86 |
-
# observe_project_name: "lseq-qa-observe"
|
| 87 |
-
# observe_project_id: "185841b9-fe41-4fe3-ad75-c5217f7d554d"
|
| 88 |
-
# protect_project_name: "protect-test-project"
|
| 89 |
protect_stage_name: "deutsche-bank_rfp-rag_protect-local-stage"
|
| 90 |
project_name: "deutsche-bank"
|
| 91 |
logstream_name: "rfp_rag"
|
|
|
|
| 35 |
pdf_extractor:
|
| 36 |
extension: ".pdf"
|
| 37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
galileo_platform:
|
| 39 |
protect_stage_name: "deutsche-bank_rfp-rag_protect-local-stage"
|
| 40 |
logstream_name: "misc"
|
|
|
|
| 50 |
chunk_overlap: 50
|
| 51 |
|
| 52 |
vector_database:
|
| 53 |
+
db_path: "/tmp/vector_db/"
|
| 54 |
dimensions: 768
|
| 55 |
|
| 56 |
embedding_model:
|
|
|
|
| 60 |
pdf_extractor:
|
| 61 |
extension: ".pdf"
|
| 62 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
galileo_platform:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
protect_stage_name: "deutsche-bank_rfp-rag_protect-local-stage"
|
| 65 |
project_name: "deutsche-bank"
|
| 66 |
logstream_name: "rfp_rag"
|