# RAG: retrieval-augmented generation explained, from chunking to production

Retrieval-augmented generation end to end: chunking, embeddings, vector databases, hybrid search and reranking, query rewriting, GraphRAG, agentic and corrective RAG, multimodal RAG, evaluation and running RAG in production, with simulations you can run.

## RAG basics

What retrieval-augmented generation is, the retrieve-then-generate pipeline and when RAG beats fine-tuning.

- [RAG basics: the retrieve-then-generate pipeline, step by step, and when it beats fine-tuning](https://www.ozercemkelahmet.com/articles/rag-basics-retrieve-then-generate-pipeline) (2026-11-24)
- [Retrieval-augmented generation (RAG): from naive to agentic](https://www.ozercemkelahmet.com/articles/rag-from-naive-to-agentic) (2026-10-20)

## Chunking

Splitting documents: fixed, recursive, semantic and late chunking, overlap, chunk size and their effect on recall.

- [Chunking for RAG explained: fixed, recursive, semantic and late chunking with worked numbers](https://www.ozercemkelahmet.com/articles/chunking-for-rag-fixed-recursive-semantic-late) (2026-11-24)

## Embeddings

Embedding models for retrieval: how they are trained, dimensions, Matryoshka embeddings, benchmarks and costs.

- [Embedding models for RAG: how they work, how to read MTEB and what dimensions really cost](https://www.ozercemkelahmet.com/articles/embedding-models-for-rag-choose-measure) (2026-11-24)
- [Shrinking vector search: Matryoshka embeddings, binary quantisation and rescoring](https://www.ozercemkelahmet.com/articles/matryoshka-embeddings-binary-quantisation-rescoring) (2026-11-23)

## Vector databases

Vector databases and indexes: HNSW, IVF, product quantisation, pgvector, Pinecone, Weaviate, Qdrant, Milvus.

- [Vector databases explained: HNSW, IVF and product quantisation measured with FAISS](https://www.ozercemkelahmet.com/articles/vector-databases-hnsw-ivf-pq-pgvector) (2026-11-24)

## Hybrid search

Lexical and dense retrieval together: BM25, SPLADE, dense vectors and fusion with reciprocal rank fusion.

- [Hybrid search for RAG: BM25, SPLADE and dense vectors fused with reciprocal rank fusion](https://www.ozercemkelahmet.com/articles/hybrid-search-bm25-splade-dense-rrf) (2026-11-24)

## Reranking

Second-stage reranking with cross-encoders and LLM rerankers: precision gains, latency and cost.

- [Reranking for RAG: cross-encoders, LLM rerankers and the latency and cost of each](https://www.ozercemkelahmet.com/articles/reranking-cross-encoders-llm-rerankers-cost) (2026-11-24)

## Query transformation

Rewriting the question: multi-query, HyDE, step-back prompting, decomposition and query routing.

- [Query transformation for RAG: multi-query, HyDE, step-back, decomposition and routing](https://www.ozercemkelahmet.com/articles/query-transformation-multi-query-hyde-routing) (2026-11-24)

## GraphRAG

Knowledge graphs for RAG: entity extraction, community summaries, Microsoft GraphRAG and LightRAG.

- [GraphRAG explained: entity graphs, community summaries, LightRAG and indexing cost](https://www.ozercemkelahmet.com/articles/graphrag-entity-graphs-community-summaries-lightrag) (2026-11-24)
- [RAG types explained: naive, hybrid, reranked, HyDE, corrective, agentic and GraphRAG](https://www.ozercemkelahmet.com/articles/rag-types-explained-naive-hybrid-rerank-hyde-corrective-agentic-graphrag) (2026-11-17)

## Agentic RAG

Agents that decide when and where to retrieve: tool-based retrieval, iterative search and deep research.

- [Agentic RAG explained: agents that decide when, where and how to retrieve, step by step](https://www.ozercemkelahmet.com/articles/agentic-rag-retrieval-decisions-deep-research) (2026-11-24)

## Self-RAG and CRAG

Self-reflective and corrective RAG: grading retrieved passages, retrying and falling back to web search.

- [Self-RAG and CRAG explained: grading passages, corrective retrieval and web fallback](https://www.ozercemkelahmet.com/articles/self-rag-crag-grading-corrective-retrieval) (2026-11-24)

## Multimodal RAG

Retrieving images, tables, PDFs and audio: ColPali, layout-aware parsing and multimodal embeddings.

- [Multimodal RAG explained: ColPali page retrieval, PDF parsing, tables and storage costs](https://www.ozercemkelahmet.com/articles/multimodal-rag-colpali-pdfs-tables-images) (2026-11-24)

## Long context vs RAG

When a long context window replaces retrieval, when it does not, and context caching costs.

- [Long context vs RAG: when a big prompt replaces retrieval, and what caching changes](https://www.ozercemkelahmet.com/articles/long-context-vs-rag-caching-break-even) (2026-11-24)

## RAG evaluation

Measuring RAG: recall@k, MRR, nDCG, faithfulness and answer relevancy with RAGAS, DeepEval and TruLens.

- [RAG evaluation step by step: recall@k, MRR, nDCG, faithfulness and when a gain is real](https://www.ozercemkelahmet.com/articles/rag-evaluation-recall-mrr-ndcg-faithfulness) (2026-11-24)

## Production RAG

RAG in production: ingestion pipelines, freshness, access control, caching, latency and cost per answer.

- [Production RAG: ingestion, freshness, access control, caching, latency and cost per answer](https://www.ozercemkelahmet.com/articles/production-rag-ingestion-freshness-access-cost) (2026-11-24)

