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.
- 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
- 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
- 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.
- Parsing documents for retrievalComing soon
Extracting clean text and structure from PDFs, HTML and office files, and checking what was lost.
Implementation · Intermediate
- Chunking strategiesComing soon
Fixed, structural and semantic chunking, overlap, and how chunk size affects retrieval and answers.
Fundamentals · Intermediate
- Chunk metadata and source attributionComing soon
Storing source, position, version and permissions with every chunk so answers can be cited and filtered.
Implementation · Advanced
- 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.
- Assembling retrieved context into promptsComing soon
Formatting retrieved chunks as clearly delimited, untrusted data with their sources.
Implementation · Intermediate
- Citations and answer attributionComing soon
Asking for citations, verifying them against the retrieved chunks, and showing them to users.
Implementation · Advanced
- 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.
- Evaluating retrieval and answer qualityComing soon
Separate measures for retrieval and generation, built on a labelled question set from your own documents.
Implementation · Production
- 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
- Document-level access control in RAGComing soon
Enforcing each user's document permissions at retrieval time, not in the prompt.
Security · Production