chore: switch to DeepSeek API + sentence-transformers for free deployment

- Replace OpenAI LLM with DeepSeek (deepseek-chat) via OpenAI-compatible client
- Replace OpenAI embeddings with local sentence-transformers (all-MiniLM-L6-v2)
- Pre-download embedding model during Docker build
- Add .gitignore

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Power BI Dev
2026-06-04 09:04:21 +07:00
parent f62a711f5d
commit fddd3644ae
7 changed files with 27 additions and 15 deletions
+3
View File
@@ -10,6 +10,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Pre-download embedding model agar tidak diunduh ulang saat runtime
RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('all-MiniLM-L6-v2')"
COPY src/ ./src/
CMD ["python", "src/main.py"]