-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
40 lines (33 loc) · 896 Bytes
/
Copy path.env.example
File metadata and controls
40 lines (33 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# ===== LLM Backend =====
# Primary backend: "ollama" (local) or "openrouter" (cloud fallback)
LLM_BACKEND=ollama
# Ollama (local)
OLLAMA_BASE_URL=http://localhost:11434
OLLAMA_MODEL=llama3.1:8b-instruct-q5_K_M
OLLAMA_TIMEOUT=120
# OpenRouter (fallback)
OPENROUTER_API_KEY=sk-or-v1-xxxxxxxxxxxxxxxxxxxxxxxx
OPENROUTER_MODEL=anthropic/claude-3.5-sonnet
OPENROUTER_BASE_URL=https://openrouter.ai/api/v1
# ===== Embeddings =====
# BGE-M3 is multilingual (incl. Indonesian) — runs locally via HF
EMBED_MODEL=BAAI/bge-m3
EMBED_DEVICE=cpu
# ===== Vector Store (Qdrant) =====
QDRANT_HOST=localhost
QDRANT_PORT=6333
QDRANT_COLLECTION=finrag_id
QDRANT_VECTOR_DIM=1024
# ===== Ingestion =====
CHUNK_SIZE=768
CHUNK_OVERLAP=128
PDF_DIR=./data/pdfs
# ===== Retrieval =====
TOP_K_DENSE=8
TOP_K_BM25=8
TOP_K_FUSION=6
RERANK_ENABLED=false
# ===== App =====
LOG_LEVEL=INFO
APP_HOST=0.0.0.0
APP_PORT=8501