Stage Category: FILTER (Adaptive retrieval)Transformation: Query → LLM reasoning (1-N iterations) → Refined documents
When to Use
When NOT to Use
Parameters
Strategies
Cluster Navigation
cluster_navigation searches a cluster hierarchy the way a person browses one. A cluster run writes one centroid document per cluster, with its label, summary and parent_cluster_id. The stage reads those centroids, starts at the top-level clusters, and asks the model which child cluster most likely contains documents that answer the query. It repeats this until it reaches leaf clusters. It then returns the member documents of the best leaf clusters.
The walk is a beam search, and every decision goes to a decision model. Each decision returns a probability for every child cluster. The stage keeps the best beam_width paths and ranks them by the geometric mean of their decision probabilities, so shallow and deep leaves compare fairly. All paths at one level are asked in one request.
model_name picks the decision model. Leave it unset to use the deployment default, which is jev-latest. Jev returns calibrated probabilities. A generative model such as gemini-2.5-flash-lite reports its own confidence for each option, and the stage marks those as uncalibrated in probabilities_calibrated.
A parent cluster is shown to the model as the leaves a descent through it can reach, such as Sports: Skateboarding / Surfing. Labeling picks one label per cluster, so a parent that holds species and landforms can come back labeled Species. Listing the leaves keeps a query about a mountain from skipping that branch.
The stage matches members to clusters by
membership_field, so cluster ids must be unique within the collections it reads. Point centroid_collection_ids at one cluster’s output collection. If several cluster runs write cl_0 into the same collection, members of every cl_0 come back.
When the stage receives documents from an earlier stage, it keeps the ones in the chosen clusters and preserves their order. When it runs first, it reads the members from the collections. Each returned document carries cluster_path and cluster_path_score. Stage metadata includes chosen_clusters (each leaf with its path and score), navigation_trace (the candidates and probabilities at every level), model_used and probabilities_calibrated.
Available Tools (Stages)
The agent can invoke any registered retriever stage as a tool. Each stage is presented to the LLM with a simplified parameter schema:Configuration Examples
full_catalog hands the LLM every registered filter/sort/rerank/enrich stage as a tool and lets it decide the pipeline shape per query. Higher cost and latency than the pinned strategies — use it when composition quality matters more than cost.How It Works
- Strategy selection: If
auto_strategyis enabled, a lightweight LLM call picks the best strategy for the query - Prompt assembly: The system prompt is built from the strategy defaults, with
feedbackprepended if provided - Reasoning loop: Each iteration, the LLM receives the query, available tools, and a budget note showing remaining iterations and seconds
- Tool execution: The LLM calls retriever stages as tools. Results are summarized and fed back
- Confidence gating: The LLM calls
finish_searchto declare done with a confidence score (0.0–1.0). If confidence is belowmin_confidence, the loop continues - Context compression: When the conversation grows long, older messages are replaced with a compact working-memory summary to stay within context limits
- Return: Accumulated results and metadata (confidence, summary, reasoning trace) are returned
Performance
Common Pipeline Patterns
Agent as First Stage
Complex Query Decomposition
Response Metadata
The stage returns execution metadata instage_statistics:
Error Handling
Related
- Feature Search - Vector similarity search (commonly used as agent tool)
- Attribute Filter - Metadata filtering (commonly used as agent tool)
- LLM Filter - Natural language filtering
- Rerank - Result re-scoring by relevance

