Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@ ROUTER_LLM_TIMEOUT_MS=2000
# Circuit-breaker cooldown after 5 consecutive failures (default: 30000ms)
ROUTER_LLM_CIRCUIT_BREAK_MS=30000

# --- LLM Filter Extraction (feature-flagged, default off) ---
# When enabled, the API attempts to infer structured FilterDSL conditions from
# natural-language queries when no explicit filter is provided and routing is
# ambiguous (method=default or rule_fallback). All LLM output is validated
# through translateFilter before use; invalid output falls back silently.
ROUTER_FILTER_LLM_ENABLED=false
# Model for filter extraction (default: llama3 for ollama, gpt-4o-mini for openai)
# ROUTER_FILTER_LLM_MODEL=llama3
# Timeout in milliseconds for filter extraction LLM call (default: 1500)
ROUTER_FILTER_LLM_TIMEOUT_MS=1500

# --- Enrichment (optional) ---
ENRICHMENT_ENABLED=false

Expand Down
Loading