Loading patterns…
Advanced RAG(ARAG)
Enhanced RAG with pre-retrieval and post-retrieval optimizations including query expansion, reranking, and context curation
In 30 seconds
- What
- Retrieves documents using query expansion, hybrid sparse-dense search, reranking with cross-encoders, and curated context assembly before feeding to the model.
- When to use
- Knowledge-heavy tasks where retrieval quality directly impacts answer accuracy, especially with large or noisy document collections.
- Watch out
- Compounding latency from multiple retrieval passes and reranking stages can make response time unacceptable for real-time applications.
Ask the AI expert about this pattern
Opens the assistant with your question prefilled. You review it before sending.
Advanced RAG: Overview
Enhanced RAG with pre-retrieval and post-retrieval optimizations including query expansion, reranking, and context curation
- Pre-retrieval optimization
- Query expansion techniques
- Post-retrieval processing
- Context curation
- Document reranking
- Quality assessment
- Hybrid sparse-dense fusion with reciprocal rank fusion (RRF)
- Late-interaction retrieval (ColBERT-style) and cross-encoder reranking
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.
- Retrieval-Augmented Generation for Large Language Models: A Survey (Gao et al., 2023)arXiv:2312.10997
- Seven Failure Points When Engineering a Retrieval Augmented Generation System (Barnett et al., 2024)arXiv:2401.05856
- RAG vs Fine-tuning: Pipelines, Tradeoffs, and a Case Study (Ovadia et al., 2023)arXiv:2401.08406
- A Comprehensive Survey of RAG: Evolution and Future Directions (Gupta et al., 2024)arXiv:2410.12837
- Precise Zero-Shot Dense Retrieval without Relevance LabelsarXiv:2212.10496
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