Skip to content
All topics

Domain

Retrieval-augmented generation

Grounding model answers in retrieved documents, from ingestion and chunking to prompt assembly and citation.

0 of 13 articles published. Topics are listed in reading order: each comes after the topics it builds on.

RAG fundamentals

What retrieval-augmented generation is and when to use it.

  1. Retrieval-augmented generation fundamentalsComing soon

    Retrieving relevant text and handing it to the model as context, and the problems that solves and creates.

    Fundamentals · Beginner

  2. The RAG request flow end to endComing soon

    Every step from question to cited answer: query processing, retrieval, assembly, generation and post-checks.

    Architecture · Intermediate

  3. RAG, fine-tuning or long contextComing soon

    Explicit criteria for choosing between retrieval, fine-tuning and putting everything in the context window.

    Comparison · Advanced

Ingestion

Turning source documents into retrievable chunks.

  1. Parsing documents for retrievalComing soon

    Extracting clean text and structure from PDFs, HTML and office files, and checking what was lost.

    Implementation · Intermediate

  2. Chunking strategiesComing soon

    Fixed, structural and semantic chunking, overlap, and how chunk size affects retrieval and answers.

    Fundamentals · Intermediate

  3. Chunk metadata and source attributionComing soon

    Storing source, position, version and permissions with every chunk so answers can be cited and filtered.

    Implementation · Advanced

  4. Incremental ingestion and deletionsComing soon

    Updating changed documents and removing deleted ones so retrieval never serves content that should be gone.

    Operations · Production

Answer generation

Using retrieved text to produce trustworthy answers.

  1. Assembling retrieved context into promptsComing soon

    Formatting retrieved chunks as clearly delimited, untrusted data with their sources.

    Implementation · Intermediate

  2. Citations and answer attributionComing soon

    Asking for citations, verifying them against the retrieved chunks, and showing them to users.

    Implementation · Advanced

  3. Handling questions the documents cannot answerComing soon

    Detecting weak retrieval and saying so, rather than letting the model fill the gap.

    Fundamentals · Advanced

RAG quality and safety

Measuring, debugging and securing a RAG system.

  1. Evaluating retrieval and answer qualityComing soon

    Separate measures for retrieval and generation, built on a labelled question set from your own documents.

    Implementation · Production

  2. Common RAG failure modesComing soon

    Missed retrieval, wrong chunk, stale content and ignored context: how each shows up and how to diagnose it.

    Case study · Advanced

  3. Document-level access control in RAGComing soon

    Enforcing each user's document permissions at retrieval time, not in the prompt.

    Security · Production