RAG
RAG
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.
Nothing matches. Try another word.
November 2026 16
Vector databases explained: HNSW, IVF and product quantisation measured with FAISSHow vector databases search millions of embeddings: HNSW, IVF and product quantisation, a FAISS benchmark, pgvector settings and a product comparison.Read →Self-RAG and CRAG explained: grading passages, corrective retrieval and web fallbackHow Self-RAG and Corrective RAG check their own retrieval: reflection tokens, a grader with two thresholds, knowledge strips and web fallback, in Python.Read →Reranking for RAG: cross-encoders, LLM rerankers and the latency and cost of eachHow rerankers reorder RAG candidates: cross-encoders versus pointwise, pairwise and listwise LLM rerankers, nDCG worked by hand, and token cost per query.Read →RAG evaluation step by step: recall@k, MRR, nDCG, faithfulness and when a gain is realHow to evaluate a RAG system in two halves: retrieval metrics computed by hand and checked with pytrec_eval, generation metrics in Ragas, DeepEval and TruLens.Read →RAG basics: the retrieve-then-generate pipeline, step by step, and when it beats fine-tuningHow retrieval-augmented generation works step by step: indexing, retrieval, prompt assembly and generation, with worked costs and when RAG beats fine-tuning.Read →Query transformation for RAG: multi-query, HyDE, step-back, decomposition and routingHow query transformation fixes RAG retrieval misses: multi-query, HyDE, step-back prompts, decomposition and routing, with runnable BM25 code and costs.Read →Production RAG: ingestion, freshness, access control, caching, latency and cost per answerHow to run RAG in production: incremental ingestion with content hashes, access control before ranking, semantic caching, latency budgets and cost per answer.Read →Multimodal RAG explained: ColPali page retrieval, PDF parsing, tables and storage costsHow multimodal RAG retrieves from PDFs, tables and images: parsing versus ColPali page images, late-interaction MaxSim, ViDoRe scores and storage costs.Read →Long context vs RAG: when a big prompt replaces retrieval, and what caching changesWhen should you paste the whole corpus into a long prompt instead of using RAG? Cost and latency worked out, context caching, KV reuse and accuracy limits.Read →Hybrid search for RAG: BM25, SPLADE and dense vectors fused with reciprocal rank fusionHow hybrid search combines BM25, SPLADE and dense embeddings, with the BM25 formula worked by hand and reciprocal rank fusion compared with score blending.Read →GraphRAG explained: entity graphs, community summaries, LightRAG and indexing costHow GraphRAG builds an entity graph and community summaries for RAG, how local and global search differ, how LightRAG compares, and what indexing really costs.Read →Embedding models for RAG: how they work, how to read MTEB and what dimensions really costHow text embedding models turn chunks into vectors, how contrastive training works, how to read MTEB results and what dimensions cost in memory and money.Read →Chunking for RAG explained: fixed, recursive, semantic and late chunking with worked numbersHow to split documents for RAG: fixed-size, recursive, semantic and late chunking, the overlap formula, chunk-size trade-offs and runnable Python to test them.Read →Agentic RAG explained: agents that decide when, where and how to retrieve, step by stepHow agentic RAG lets a model decide when, where and what to retrieve, with a runnable loop, token growth worked out, deep research and the guardrails it needs.Read →Shrinking vector search: Matryoshka embeddings, binary quantisation and rescoringHow Matryoshka training and int8 or binary quantisation cut embedding storage by up to 128 times, and how rescoring recovers most of the lost retrieval quality.Read →RAG types explained: naive, hybrid, reranked, HyDE, corrective, agentic and GraphRAGThe main kinds of retrieval-augmented generation, what each fixes, what it costs and when to use it, with a live simulation that scores each on one corpus.Read →
October 2026 1
01Simulations 18
Interactive simulations of retrieval and generation: change the chunk size, the fusion weights or the reranker and watch recall and answers change.