Compare commits

..

No commits in common. "4cc97efebacba596db745a27a82f36fd41da2ea9" and "63cf3e713d0bf91ee020d2ae6b4a0f33dcc240af" have entirely different histories.

4 changed files with 4 additions and 10 deletions

2
.gitignore vendored
View File

@ -40,5 +40,3 @@ htmlcov/
data/local/ data/local/
data/temp/ data/temp/
articles_konsol_pro/ articles_konsol_pro/
scripts/

View File

@ -21,9 +21,8 @@ RUN pip install --no-cache-dir --upgrade pip && \
COPY . . COPY . .
RUN mkdir -p /app/storage/chroma /app/data/ && \ RUN mkdir -p /app/storage/chroma /app/data/articles_konsol_pro && \
chown -R appuser:appuser /app && \ chown -R appuser:appuser /app
chmod -R 755 /app/storage
USER appuser USER appuser

View File

@ -28,8 +28,8 @@ services:
- PYTHONUNBUFFERED=1 - PYTHONUNBUFFERED=1
- PYTHONDONTWRITEBYTECODE=1 - PYTHONDONTWRITEBYTECODE=1
volumes: volumes:
- ./storage/chroma:/app/storage/chroma:rw
- ./data:/app/data:ro - ./data:/app/data:ro
- chroma_data:/app/storage/chroma
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/healthz"] test: ["CMD", "curl", "-f", "http://localhost:8000/healthz"]
interval: 30s interval: 30s
@ -49,6 +49,3 @@ services:
- no-new-privileges:true - no-new-privileges:true
tmpfs: tmpfs:
- /tmp:noexec,nosuid,size=100m - /tmp:noexec,nosuid,size=100m
volumes:
chroma_data:

View File

@ -5,7 +5,7 @@ from pydantic import Field, ConfigDict
class Settings(BaseSettings): class Settings(BaseSettings):
llm_provider: Literal["openai", "gemini"] = "openai" llm_provider: Literal["openai", "gemini"] = "openai"
llm_model: str = "gpt-4o" llm_model: str = "gpt-4o-mini"
embedding_model: str = "text-embedding-3-large" embedding_model: str = "text-embedding-3-large"
openai_api_key: str = Field(default="", json_schema_extra={"env": "OPENAI_API_KEY"}) openai_api_key: str = Field(default="", json_schema_extra={"env": "OPENAI_API_KEY"})