Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions api-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,34 @@
version: '3.8'

services:
extraction-init: !override
extends:
file: extraction-compose.yaml
service: extraction-init

extraction: !override
extends:
file: extraction-compose.yaml
service: extraction

rag_api:
build: .
networks: [default, extraction]
depends_on:
extraction:
condition: service_healthy
ports:
- "8000:8000"
volumes:
- ./uploads:/app/uploads
- extraction-credentials:/run/extraction:ro
env_file:
- .env

volumes:
extraction-credentials:
pgdata2:

networks:
extraction:
internal: true
3 changes: 3 additions & 0 deletions app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from starlette.middleware.base import BaseHTTPMiddleware

from app.services.vector_store.factory import get_vector_store
from app.services.extraction_client import ExtractionSettings

load_dotenv(find_dotenv())

Expand Down Expand Up @@ -41,6 +42,8 @@ def get_env_variable(
return value


EXTRACTION_SETTINGS = ExtractionSettings.from_env()

RAG_HOST = os.getenv("RAG_HOST", "0.0.0.0")
RAG_PORT = int(os.getenv("RAG_PORT", 8000))

Expand Down
Loading
Loading