Once a GPU became available, switched the default model from llama3.2:3b (CPU) to qwen2.5:14b (GPU): added an NVIDIA GPU reservation to the ollama service in docker-compose.yml and updated the default OLLAMA_MODEL in config.py/.env.example. Re-running the eval surfaced a new regression: the out-of-scope "weather" question got classified as policy_question by the new model. Fixed by adding an explicit negative example to _CLASSIFY_PROMPT. Archived the llama3.2:3b eval/load-test reports under eval/results/llama3.2-3b/ and re-ran both suites against qwen2.5:14b, documenting the comparison in the README (accuracy 11/16 -> 12/16, ~4.3x latency improvement, see sections 5.1/6.1). Refs #13
17 lines
578 B
Text
17 lines
578 B
Text
# Ollama connection
|
|
# Default assumes a GPU host (see docker-compose.yml ollama service GPU reservation).
|
|
# On a CPU-only host, use a smaller model instead, e.g. llama3.2:3b.
|
|
OLLAMA_MODEL=qwen2.5:14b
|
|
OLLAMA_BASE_URL=http://localhost:11434
|
|
|
|
# Embedding model (runs locally via sentence-transformers, no API key needed)
|
|
EMBEDDING_MODEL=sentence-transformers/all-MiniLM-L6-v2
|
|
|
|
# Paths (relative to project root, override if needed)
|
|
POLICY_DOCS_DIR=app/data/policies
|
|
INDEX_DIR=app/data/index
|
|
TICKETS_DB_PATH=app/data/tickets.db
|
|
|
|
# RAG subgraph tuning
|
|
RAG_TOP_K=4
|
|
RAG_MAX_REWRITES=2
|