Node labels are the real configuration keys and defaults from server/models/tribrid_config_model.py; module paths are checked to exist when this page is generated. Tune values in the config UI or tribrid_config.json; corpus-scoped overrides apply per corpus.
The three legs (dense and sparse from Qdrant generations, graph from the Neo4j lexical graph) are fused with weighted RRF, boosted, deduplicated, optionally reranked, gated on confidence and hydrated before generation through the LiteLLM gateway. Every value shown is the shipped default.
Max tokens per document segment for local late chunking.
voyage_model
voyage-code-3
Voyage embedding model
embedding_model_local
BAAI/bge-small-en-v1.5
Local SentenceTransformer model
embedding_model_mlx
mlx-community/all-MiniLM-L6-v2-4bit
MLX-optimized embedding model (used when embedding_type=mlx)
embedding_batch_size
64
Batch size for embedding generation
embedding_max_tokens
8000
Max tokens per embedding chunk
embedding_cache_enabled
True
Enable embedding cache
embedding_timeout
30
Embedding API timeout (seconds)
embedding_retry_max
3
Max retries for embedding API
vector_search
Field
Default
What it does
enabled
True
Enable the dense vector (Qdrant) leg in tri-brid retrieval
top_k
50
Number of results to retrieve from vector search
similarity_threshold
0.0
Minimum similarity score threshold (0 = no threshold)
sparse_search
Field
Default
What it does
enabled
True
Enable the sparse (Qdrant/bm25) leg in tri-brid retrieval
top_k
50
Number of results to retrieve from the sparse leg
bm25_k1
1.2
BM25 term-frequency saturation for the Qdrant/bm25 sparse vectors (higher = more weight to term frequency). Part of the sparse index contract (re-index on change).
bm25_b
0.4
BM25 length normalization for the Qdrant/bm25 sparse vectors (0 = no penalty, 1 = full penalty). Part of the sparse index contract (re-index on change).
graph_search
Field
Default
What it does
enabled
True
Enable graph search in tri-brid retrieval
chunk_neighbor_window
1
Include up to N adjacent chunks (NEXT_CHUNK) around relationship hits
max_hops
2
Maximum graph traversal hops
include_communities
True
Include community-based expansion in graph search
top_k
30
Number of results to retrieve from graph search
graph_storage
Field
Default
What it does
neo4j_uri
bolt://localhost:7687
Neo4j connection URI (bolt:// or neo4j://)
neo4j_user
neo4j
Neo4j username
neo4j_database
neo4j
Neo4j database name
neo4j_database_mode
shared
Database isolation mode: 'shared' uses a single Neo4j database (Community-compatible), 'per_corpus' uses a separate Neo4j database per corpus (Enterprise multi-database).
neo4j_database_prefix
tribrid_
Prefix for per-corpus Neo4j database names when neo4j_database_mode='per_corpus'.
neo4j_auto_create_databases
True
Automatically create per-corpus Neo4j databases when missing (Enterprise).
Intent-to-layer bonus matrix. Keys are query intents, values are layer->multiplier maps.
reranking
Field
Default
What it does
reranker_mode
none
Reranker mode: 'cloud' (LiteLLM gateway alias or Cohere API), 'learning' (MLX Qwen3 LoRA learning reranker), 'none' (disabled). Stale values such as 'local'/'hf' fail validation and must be migrated.
reranker_cloud_provider
litellm
Cloud reranker provider when mode=cloud: 'litellm' scores candidates listwise through a LiteLLM gateway alias (no local model, no extra credential); 'cohere' calls the Cohere rerank API (COHERE_API_KEY).
reranker_cloud_model
openai.gpt-4.1-nano
Cloud reranker model when mode=cloud: a LiteLLM gateway alias for provider 'litellm' (a cheap non-reasoning instruct model is ideal), or a Cohere rerank model id for provider 'cohere'.
tribrid_reranker_alpha
0.7
Blend weight for reranker scores
tribrid_reranker_topn
50
Number of candidates to rerank (learning mode)
reranker_cloud_top_n
50
Number of candidates to rerank (cloud mode)
tribrid_reranker_batch
16
Reranker batch size
tribrid_reranker_maxlen
512
Max token length for reranker
tribrid_reranker_reload_on_change
False
Hot-reload on model change
tribrid_reranker_reload_period_sec
60
Reload check period (seconds)
reranker_timeout
10
Reranker API timeout (seconds)
rerank_input_snippet_chars
700
Snippet chars for reranking input
hydration
Field
Default
What it does
hydration_mode
lazy
Context hydration mode
hydration_max_chars
2000
Max characters to hydrate
generation
Field
Default
What it does
gen_model
ragweld-local
Primary LiteLLM model alias
gen_temperature
0.0
Generation temperature
gen_max_tokens
512
Max tokens for generation
gen_top_p
1.0
Nucleus sampling threshold
gen_timeout
600
Generation timeout in seconds for non-chat generation calls (eval analysis, synthetic data); sized for single-stream CPU serving of the local model