Multi-Hop & Agentic Retrieval
Seer supports logging and evaluating multi-step retrieval workflows, from decomposed queries to agentic RAG patterns.Overview
Many real-world queries can’t be answered with a single retrieval. Consider:“What awards did the director of Inception win?”This requires:
- First, find who directed Inception → Christopher Nolan
- Then, find what awards Christopher Nolan won
Key Fields
task: The Original Query
Always pass the original user query in task. This is what Seer evaluates against for end-to-end relevance.
subquery: The Decomposed Question
The subquery is what this specific retrieval hop is trying to answer. A query rewriter or planner typically generates these.
is_final_context: Final Evidence for the LLM
Mark the retrieval step whose context is passed to the LLM or agent for final answer synthesis. Seer uses this span for trace-level metrics.
Complete Example: Query Decomposition
What Seer Evaluates
For each hop, Seer computes:Example Metrics
Trace-level metrics are computed from the
is_final_context=True span (the joined context).
Trace-Level vs Span-Level Metrics
Trace-Based Sampling
When you provide atrace_id (auto-detected from OTEL), Seer ensures all spans in the trace get the same sampling decision. You’ll never see partial traces.