Stage Category: FILTER (Adaptive retrieval)Transformation: Query → LLM reasoning (1-N iterations) → Refined documents
When to Use
When NOT to Use
Parameters
Strategies
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

