+7
-1
@@ -48,7 +48,13 @@ OLLAMA_MAX_CONCURRENT=1
|
||||
# RAG / Knowledge
|
||||
KNOWLEDGE_DIR=./knowledge
|
||||
RAG_ENABLED=true
|
||||
KNOWLEDGE_TOP_K=3
|
||||
# Maximum number of dynamically selected KB candidates sent to Ollama.
|
||||
KNOWLEDGE_TOP_K=6
|
||||
# Keep more candidates in the audit/dashboard than are sent to Ollama. Must be >= KNOWLEDGE_TOP_K.
|
||||
KNOWLEDGE_AUDIT_TOP_K=10
|
||||
# Only candidates within this absolute score gap of the best retrieval hit are sent to Ollama.
|
||||
# Example: best=0.78 and gap=0.20 => candidates below 0.58 are excluded (retrieval floor still applies).
|
||||
KNOWLEDGE_CANDIDATE_MAX_GAP=0.20
|
||||
# Final evidence threshold after the model has selected a KB candidate. This is not the raw retrieval score.
|
||||
KNOWLEDGE_MIN_SCORE=0.70
|
||||
# Broad-recall floor for the deterministic retrieval/ranking stage. Candidates below this never reach auto-reply.
|
||||
|
||||
Reference in New Issue
Block a user