Life is the greatest university on this universe. Trying to learn from it till fees are paid. I take interest in philosophy, literature, technology, psychology and in nuances of human emotions. If you like it then we can be friends.

RAG Blueprint Workshop

Retrieval-Augmented Generation · Ask → Find → Answer

Build RAG one layer at a time, then learn where it breaks.

A hands-on session using one running example: a denial-management assistant for a US healthcare revenue cycle team. Every lab uses the same payer policy, so each new layer visibly fixes a failure from the one before.

Stage 101 · Foundation

Vector baseline

Embeddings, chunking, the grounded prompt, and overcoming the knowledge cutoff.

Stage 201 · Layered

Advanced retrieval

Hybrid search, reranking, metadata filters, parent-document chunking, step-back queries.

Stage 301 · Autonomous

Agentic GraphRAG

Planning, routing, self-critique, knowledge graphs and multi-hop reasoning.

By the end, participants can
  • Explain RAG in plain language, and why it is not retraining
  • Trace data from source document to cited answer
  • Diagnose weak retrieval and pick the right fix
  • Choose between standard, advanced and agentic designs
  • Name the evaluation, security and observability controls for production
  • Sketch a safe first version for a real use case
OPENING · 1 MIN Welcome participants. Ask: “When an AI answer sounds confident, what makes you trust it?” Take two responses.
FRAME We build RAG one layer at a time. Each module ends with a knowledge check, so active listening matters. Protect the final four minutes for the applied challenge; shorten discussion, not the conceptual sequence.
Module 1 · Foundations00:00 – 08:00

Why models need external knowledge

A language model answers from patterns it learned in training. It has never seen your payer contracts, and it cannot know about last week’s amendment.

?
When an AI answer sounds confident, what makes you trust it?

The retrieval imperative 3 min

The problem

Models have knowledge cutoffs and can invent plausible details. Private data was never in training, sources are hard to verify, and you cannot fine-tune for every new fact.

The solution

RAG moves the knowledge burden out of the model’s weights into an external, updatable store that is searched at answer time.

The result

Answers grounded in supplied evidence, with citations and an honest “I don’t have enough evidence” when retrieval comes up empty.

Try it: same question, two systems

Demo

“What is our current appeal deadline for Payer X authorization denials?”

ASK Which question in your work depends on internal or frequently changing information? Take one example.
MISCONCEPTION RAG does not retrain the model. It supplies relevant context at answer time.

The RAG idea in one sentence 3 min

RAG finds relevant evidence first, then asks the model to answer using that evidence.

1 · QuestionAsk

“Why was claim 847 denied?”

2 · RetrieveFind

Search denial notes and the Payer X policy.

3 · AugmentAdd

Place the evidence into the prompt.

4 · GenerateAnswer

Compose a response with citations and limits.

CHECK “Where does organisation-specific knowledge enter?” Expected: during retrieval and prompt augmentation.
VOCAB Retrieve = search. Augment = add evidence to the model input. Generate = compose the response.

Myth or fact? 1 min

Module 2 · Core pipeline (101)08:00 – 22:00

Trace data from source to answer

RAG is two connected pipelines. Most failures can be located in one of them, so this map is also your first debugging tool.

Two connected pipelines 3 min

Click any stage to see what it does and how it fails

Explore
Indexing pipeline · offline, ahead of time
→ → →
Question pipeline · online, every request
→ → →
What it does

Typical failure

KEY POINT Bad parsing and chunking damage the index. Bad query handling or prompting damages the online path. Name the pipeline before you tune anything.

Chunking creates retrievable units 4 min

Chunking decides what the retriever can return. Small chunks improve precision; larger chunks keep context. Split the policy below and watch what breaks.

Chunking lab: Payer X, Section 4.2

Lab
Quality checks

Advanced pattern: parent-document retriever

201 preview

Search on small child chunks for precision, but hand the model the full parent section so it can reason. Query: “Is there an exception to the 30-day rule?”

Sent to the model
Likely answer

PRACTICAL START Split along natural structure: headings, paragraphs, tables, clauses. Add limited overlap when meaning crosses boundaries. Keep title, section, date, payer and version as metadata.
ASK What could go wrong if the deadline and its exception land in different chunks?

Embeddings support semantic search 3 min

An embedding turns text into numbers that capture aspects of meaning. Similar text lands close together, and the vector store returns the nearest neighbours.

Meaning map (2-D sketch of a high-dimensional space)

Explore
Top 3 nearest
    What to notice

    CAUTION Semantic similarity does not equal truth or task relevance. The nearest chunk can be outdated, from the wrong payer, or missing the decisive exception.
    AVOID MATH Use the spatial analogy unless someone asks about cosine similarity.

    The grounded prompt 3 min

    A grounded prompt has three inputs: behaviour instructions, retrieved evidence and the question. Change each one and watch the answer shift.

    Prompt builder

    Lab
    
    
    Model answer

    Grounding needs both relevant evidence and clear answer rules. Irrelevant context makes the system confidently grounded in the wrong material.

    Walkthrough: a denial policy assistant 2 min

    “Why was the claim denied and what should we attach?”

    Step through
    1Question

    Why was the claim denied and what should we attach?

    2Query enrichment

    authorization · CARC CO-197 · Payer X · service date 2026-08-12

    3Retrieval

    Denial note + Payer X policy §4.2 v3 + claim metadata

    4Answer

    Cause, appeal deadline, attachments, each with a citation

    Before step 2, ask the room: which identifiers matter?
    EXPECTED IDEAS Payer, denial code, claim type, service date, policy effective date.
    TRACEABILITY Show which statement came from the denial note, which from the policy, and what is inference.
    HEALTHCARE SAFETY Minimum necessary data. Mask patient identifiers in demos. Authorisation and role filters apply before results reach the model.
    Module 3 · Retrieval quality (201)22:00 – 36:00

    Improve relevance before you touch the model

    The 101 baseline depends entirely on semantic similarity: if the answer does not look like the question in vector space, retrieval fails. Four layers fix most of that.

    Hybrid retrieval: dense + sparse 4 min

    Semantic (dense)

    Finds meaning. Wins when wording differs: “prior authorization” vs “precertification”.

    Keyword (sparse, BM25-style)

    Finds exact terms. Wins on codes, IDs, drug names and clause numbers: CO-197, CPT 99213, §4.2.

    Hybrid search lab: 8-document mini corpus

    Lab
    Semantic only
      Keyword only
        Hybrid

          Green rows are the documents a domain expert marked relevant. Semantic scores are simulated; keyword scores are computed live from term overlap. Verdict = relevant document in the top 3.

          ASK Which signal should dominate for an exact claim identifier? Keyword or structured lookup. For a natural-language description? Semantic.
          POINT No retrieval method wins every query type. Notice the Payer X v2 (superseded) document in the “deadline” query: hybrid alone cannot fix that, which is the case for metadata filters.

          Reranking improves the shortlist 3 min

          Fast retrieval gathers candidates for recall. A reranker spends more compute ordering the best few for precision.

          Rerank the candidates

          Demo

            Reranking cannot recover a document that never entered the candidate set. If recall is poor, fix indexing, query rewriting, filters or candidate count first.

            Metadata, freshness and access control 3 min

            Metadata turns similarity search into business-aware retrieval. Filters run on structured fields before anything reaches the model.

            Filter lab: what reaches the model?

            Lab
            Risk check on what the model receives
            SECURITY RULE Apply authorisation before sending chunks to the model. Prompt instructions alone do not enforce access.
            FRESHNESS “Superseded” is not the same as “wrong”: switch the service date to March and the v2 policy becomes the right one. Store version and effective dates; define how ingestion handles replacements and deletions.
            ASK Which metadata field would stop mixing commercial and Medicare policies? (Plan or line of business.)

            Query transformation: step-back prompting 2 min

            Use a model to rewrite or abstract the user’s question before retrieval. A step-back query asks the broader question, so foundational context is found even when the specific wording matches nothing.

            Rewrite, then retrieve

            Demo
            Original query

            Why did claim 847 get CO-197 on 12 Aug when we got verbal approval from the payer rep?

            Retrieves
            1. 1Call-log note on claim 8470.71
            2. 2Generic appeal letter guide0.52
            Step-back query

            (press “Step back”)

            Adds
              OTHER REWRITES Multi-query (several paraphrases), decomposition (split a compound question), and HyDE (embed a hypothetical answer). Mention, do not deep-dive.
              Module 4 · Beyond one-shot (301)36:00 – 46:00

              Agentic RAG and knowledge graphs

              Standard RAG is a single pass: retrieve once, answer once. It cannot notice missing evidence, change strategy, or connect facts spread across documents.

              The one-shot limitation 1 min

              The bottleneck

              A static, single-pass pipeline.

              Failure modes

              Cannot self-correct or adjust its search. Fails at multi-hop reasoning across disconnected documents.

              The verdict

              Fine for single-hop fact lookups; fragile for analytical questions like “compare Q3 to Q1 and explain why”.

              The agentic loop: plan, route, act, critique 3 min

              Watch an agent answer a multi-part question

              Simulation

              Question: Compare Q3 vs Q1 CO-197 denial rates for Payer X, and tell me whether the July policy change explains the difference.

              Plannerdecomposes
              Criticchecks evidence
              Agent core
              Routerpicks sources
              ToolsSQL · search · graph
              Answercited

              Figures in the simulation are illustrative.

              THE SHIFT Retrieval stops being a fixed pipeline and becomes a reasoning process. Pause at the Critic step and ask: what would a one-shot system have answered here? (It would have blamed the appeal-window change.)
              COST More calls mean more latency and spend. Use agents where the question needs them, not by default.

              The knowledge-graph advantage 3 min

              Vector stores treat chunks as isolated points. Knowledge graphs store explicit relationships between entities, so the connection between two distant documents can itself be the answer.

              “Which open claims are affected by the July amendment?”

              Explore

              GraphRAG and Text2Cypher 2 min

              Indexing time

              An LLM extracts entities and relationships, builds the graph, then detects and summarises communities of closely related data.

              Query time

              Local search: deep dives on specific entities and their neighbours. Global search: map-reduce over community summaries for broad, thematic questions.

              Text2Cypher: natural language to graph query

              Demo
              
              

              Guardrails: read-only credentials, a schema allowlist, query validation before execution, and row limits.

              The evolution matrix 1 min

              ArchitectureQuery complexityRetrievalFlowBest for
              Standard RAGSimpleVector onlyLinear, one shotSingle-hop fact lookup
              Advanced RAGNuancedHybrid + smart chunking + rerankLinear, optimisedDeep document Q&A, precise recall
              Agentic GraphRAGComplex, multi-partMulti-tool + knowledge graphCyclical, iterativeSynthesis, multi-hop reasoning, research

              Pick the architecture

              Exercise

              Architectural rule: use static RAG for single-hop facts. Build agentic GraphRAG only for cross-source, multi-step reasoning, where its extra cost pays for itself.

              FRONTIER EXAMPLE The source deck cites a CVPR 2026 CASTLE challenge entry: a training-free agentic framework on a temporal knowledge graph over 600 hours of multi-camera video, with a planner that decomposes queries, localises clips and answers through a multimodal VQA agent. Use it only as an illustration of where multimodal, multi-hop retrieval is heading; confirm details before quoting figures.
              Module 5 · Production readiness46:00 – 56:00

              Evaluate, secure and operate

              A good answer can hide weak retrieval, and poor wording can hide excellent retrieval. Measure each layer separately and design for failure.

              Evaluation separates retrieval from generation 4 min

              Retrieval

              Did we find the needed evidence?

              Recall@k · Precision@k · MRR

              Groundedness

              Does every claim follow from context?

              Faithfulness · claim support

              Answer quality

              Did it solve the user’s task?

              Correct · complete · useful

              Operations

              Can it meet its constraints?

              Latency · cost · failure rate

              Retrieval metrics calculator

              Lab

              Golden question: “What is the CO-197 appeal deadline for Payer X, and what must we attach?” The expert marked 3 documents as relevant. Tick the results you judge relevant and move k.

              Recall@k = relevant in top k / all relevant
              Precision@k = relevant in top k / k
              Reciprocal rank = 1 / rank of first relevant
              GOLDEN SET Representative questions with expected evidence and acceptable answers. Include easy cases, ambiguous questions, missing-answer cases, stale-document traps and access-control tests.
              HUMAN REVIEW Domain experts for high-impact samples. Automated graders scale, but calibrate them against human judgement.
              DECISION Tie thresholds to business risk, not a universal score.

              Security and failure controls 3 min

              RAG opens a new attack surface: external text enters the prompt. Retrieved content can carry instructions or sensitive data.

              Spot the prompt injection

              Exercise

              These three chunks were retrieved for “What should we attach to a CO-197 appeal?” Which one should never be followed as an instruction?

              Prompt injection Treat retrieved text as data, not instructions

              Delimit retrieved content, strip or flag imperative patterns, use source allowlists, and never let retrieved text change tools, permissions or output destinations.

              Sensitive data Minimise, mask, encrypt, audit

              Keep PHI exposure to the minimum necessary. Mask identifiers at ingestion where possible, encrypt at rest and in transit, and log access.

              Unauthorised retrieval Filter by identity and role before generation

              Access control is enforced in the retrieval layer using the user’s identity, not by asking the model to “not reveal” things.

              Unsupported answer Require citations; allow “insufficient evidence”

              Check that each cited chunk exists in the retrieved set, and make refusal an acceptable outcome in evaluation.

              Index drift Monitor ingestion, freshness and deletion

              Alert on ingestion lag and failed updates; verify deleted or superseded documents are gone or correctly versioned.

              CONTROL PRINCIPLE Enforce security outside the model: identity, authorisation, encryption, logging, allowlists, content scanning, retention. Prompting is an extra behaviour control, not the security boundary.
              HEALTHCARE Confirm organisational privacy and compliance requirements before production use.

              Production architecture and observability 3 min

              You must be able to reproduce a bad answer. Trace every request across components, and version everything that can change an answer.

              Request trace · click a span

              Explore
              Span detail
              Log per request

              Query, filters applied, retrieved chunk IDs and scores, prompt version, model, index version, latency by component, user feedback.

              Operational questions

              Can we reproduce a bad answer? Did the source change? Which component added latency? Did access filters apply?

              MONITOR Empty retrievals, low scores, citation failures, component latency, tokens, feedback, ingestion lag.
              VERSION Prompts, embedding models, chunking logic, indexes and evaluation sets. A change in any layer can change answers.
              Module 6 · Apply and close56:00 – 60:00

              Design the first safe version

              A contract manager asks: “Can we appeal this authorization denial, and what evidence is required?” Pairs take 60 seconds, then debrief for 60.

              Applied challenge

              Pairs
              01:00

              Answer key

                A wrong answer can start in data, retrieval, prompting or generation. Diagnose the layer before tuning. A stronger model cannot reliably compensate for missing, unauthorised, stale or irrelevant evidence.

                A practical RAG checklist

                Next step: build a 20-question evaluation set before choosing advanced components.

                Exit ticket

                FINAL MESSAGE Start with a narrow, valuable question. Make evidence visible. Measure the system by whether it retrieves the right source, produces a supported answer, respects access, and fails safely.
                OPTIONAL Q&A Invite one question; offer a follow-up on implementation patterns, evaluation tooling or agentic RAG.
                Built from two source decks: “RAG Training: Basic to Advanced (60 minutes)” and “The RAG Masterclass: Architectural Evolution”. Payer names, claims and figures are illustrative.

                Latest Notes

                View Archive [ -> ]