Loading patterns…
Self-RAG(SRAG)
Self-reflective RAG that adaptively determines retrieval necessity and evaluates retrieval quality through reflection tokens
In 30 seconds
- What
- Agent decides whether to retrieve external knowledge, evaluates retrieved content quality, and assesses its own output before responding, using reflection tokens to guide these decisions.
- When to use
- Tasks requiring factual accuracy where the agent's confidence varies, or where retrieval cost matters and you want to skip unnecessary lookups.
- Watch out
- Reflection tokens add latency and cost; poor calibration causes the agent to retrieve when it shouldn't or skip retrieval when it should.
Ask the AI expert about this pattern
Opens the assistant with your question prefilled. You review it before sending.
Self-RAG: Overview
Self-reflective RAG that adaptively determines retrieval necessity and evaluates retrieval quality through reflection tokens
- Retrieval necessity prediction
- Retrieved content evaluation
- Output quality assessment
- Self-correction mechanisms
- Reflection tokens
- Adaptive retrieval strategies
The Agent Architect
One pattern, one tradeoff, one production failure story. A short weekly briefing for people building agentic systems.
Weekly email, one-click unsubscribe. We only use your address to send the briefing.
References
The papers, specifications, and repositories this pattern is based on.
- Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflection (Asai et al., 2023)arXiv:2310.11511
- SELF-REFINE: Iterative Refinement with Self-Feedback (Madaan et al., 2023)arXiv:2303.17651
- Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks (Lewis et al., 2020)arXiv:2005.11401
- Self-RAG Official Implementation: Reflection Token Training
- Constitutional AI: Harmlessness from AI Feedback (Bai et al., 2022)arXiv:2212.08073
From the engineer behind this catalog
Get your agent architecture reviewed
This page documents one pattern. Your system runs dozens, and most failures live in how they fit together. Have the whole design reviewed against the 288 patterns in this catalog: architecture, reliability, evaluation and cost, every finding mapped to the pattern that fixes it.
€750 instead of €1,500, one week, written report and walkthrough call, until 30 September