Track lessons
  1. 1How a language model works: parameters and inferenceVideo 3 min
  2. 2How AI finds text by meaning: embeddings and hybrid searchVideo 3 min
  3. 3How AI answers from verified sources: RAGVideo 3 min
  4. 4In-house enterprise AI: VM, GPU node and proxyVideo 2 min
  5. 5Why one machine is rarely enough: memory and queuesVideo 2 min
  6. 6Where your data goes: external models vs in-house proxyVideo 3 min
AI Garage · try it
Lesson 3 of 6 · Video 3 min

How AI answers from your documents: grounded RAG.

First search authorised passages, filter by user permissions, then write the answer pointing straight back to clickable citations. When archives contain conflicting drafts or missing rules, honest refusal beats guessing.

Level: For learners · 15 min

In lesson 2 we put documents onto a searchable map. Here that map feeds answers strictly grounded in active files with clickable citations.

In one sentence

RAG reduces hallucinations dramatically only when archives stay clean, permissions filter before retrieval and citations let humans verify quickly.

Desktop workstation displaying a highlighted returned clause alongside its source document code and section cardDesktop workstation displaying a highlighted returned clause alongside its source document code and section card
Illustrative diagram · four stagesWhat to look for: click callouts 1–4: permission check, active index lookup, bounded context window and clickable proof tags in the reply.
  1. 11 · User permissions check: Only documents matching the user’s ACL role enter candidate retrieval — never filter only after generation.
  2. 22 · Hybrid retrieval: Dense meaning + exact tags find GTC §5 and PRO-11 §4 while excluding irrelevant price sheets.
  3. 33 · Grounded prompt context: Question plus retrieved paragraphs instruct the model strictly: answer only from these texts or abstain.
  4. 44 · Clickable citation tags: Every factual figure displays its code so anyone can inspect the actual paragraph in one click.
Read as · choose your angleLevel: For learners · 15 min

In 30 seconds · takeaway

First retrieve, then cite — never trust memory alone

  1. RAG (Retrieval-Augmented Generation) puts current approved company paragraphs directly ahead of the answer.
  2. If uncleaned drafts from 2023 linger in shared folders, even great AI cites conflicting deadlines.
  3. Without clickable citations and upstream access rules, nobody can safely verify what went out.

What this means for you: Judge every RAG assistant on archive cleanliness, permission enforcement and clickable sources — never smoothness alone.

Short clip before testing · 36 s

Digital avatar and synthetic voice of Lorenzo Dalci. All examples and companies are fictional.

Follow a question

Four stages, one source that never gets lost.

Illustrative simulation · fictional terms Compare a clean organised archive, an uncleaned shared folder and ungrounded raw chat.

«How many days does a customer have to return an order?»

  1. Question

    The question becomes meaning coordinates and exact query terms.

  2. Retrieval

    The index finds top relevant passages across authorised files.

    • GTC §5 Terms of sale (active): «Standard return accepted within 30 days of delivery.»
    • PRO-11 §4 Returns procedure (active): «Custom-built items are excluded from return.»
    • PRO-11 rev. 1 Obsolete 2023 revision never deleted: «Return within 14 days.»
    • 2024 price sheet: unrelated to returns policy, excluded cleanly.
  3. Context

    The model receives the question strictly alongside passages picked in step 2.

  4. Answer

    …

Click «Play» or switch modes above.

What to look for switch between «With RAG (clean archive)», «With RAG (uncleaned)» and «Without RAG», then click source badges.

Short clip · Decision maker · 40 s

Digital avatar and synthetic voice of Lorenzo Dalci. All examples and companies are fictional.

Decision makerGarbage folders in, conflicting policies out · archive cleanup, upstream ACLs and supplier due diligenceDeep dive collapsed · click to expand
Decision maker · governance and rollout rules

Garbage folders in, conflicting policies out

Four foundations before launch

1

Retire or tag obsolete revisions

How to assess it

Split draft folders from approved archives so superseded procedures cannot outvote active policy.

2

Enforce permissions upstream

How to assess it

Restricted HR, board or margin sheets must be blocked inside retrieval before chunks enter model context.

3

Demand clickable inline sources

How to assess it

Treat any citation without an openable source view as unreliable guesswork.

What you gain

  • Refresh company knowledge in minutes by re-indexing updated files without training.
  • Gives every reviewer a direct link back to authoritative contracts and specs.
  • Enables clean abstinence («not present in approved files») instead of bluffing.

What you manage

  • Dirty shared folders mixing 2023 obsolete terms with 2026 active contracts.
  • Access leaks caused when chatbots use one universal admin key across all files.
  • Fabricated bracket tags unless linked straight to real chunk IDs.

What separates durable RAG from brittle wrappers

Before
Obsolete and current return terms coexist
After
RAG excludes stale terms or flags the conflict

Illustrative examples

Three supplier questions

  1. «When an employee lacks SharePoint/file permissions for a doc, is that chunk blocked prior to prompting?»
  2. «Does clicking a citation open the exact verified passage rather than a broken static string?»
  3. «What happens when two conflicting versions sit inside the same repository?»
Timing, prerequisites and examples

Preparation: curate 1 clean department slice and assign explicit owner permissions before pilot launch.

  • Name one owner per repository responsible for marking superseded drafts.
  • Confirm user roles mapped in your directory (Sales, Tech, HR, Exec).
  • Test 5 out-of-scope prompts to confirm clear refusal behavior.

Customer support

An uncleaned folder retains a 2023 14-day return memo alongside the current 30-day terms. Grounded RAG either excludes stale status cleanly or flags the document contradiction openly.

Multi-department office

One broad assistant index includes board minutes alongside shipping SOPs. Only upstream ACL filtering stops shopfloor staff seeing confidential pay reviews.

Short clip · Technical lead · 42 s

Digital avatar and synthetic voice of Lorenzo Dalci. All examples and companies are fictional.

Technical leadQuery-time ACL enforcement, reranking and prompt-injection hygiene · query-time filtering, cross-encoder reranking, citation binding and OWASP LLM controlsDeep dive collapsed · click to expand
Technical lead · pipeline safeguards

Query-time ACL enforcement, reranking and prompt-injection hygiene

Mandatory query-time ACL filtering

Attach user group tokens to retrieval queries so vector/BM25 lookups never surface unauthorised IDs; post-answer redaction fails under probing.

Cross-encoder reranking pass

Score top 20-40 hybrid candidates with a cross-encoder reranker and send only the tightest 4-6 grounded chunks into generation.

Direct passage binding for citations

Link inline markers cleanly to retrieved chunk IDs so the UI displays verbatim source metadata, status badge and excerpt.

Indirect prompt-injection awareness

Treat ingested supplier/external emails cautiously; strip system-role overrides inside retrieved text chunks (OWASP LLM01).

Technical sources and verified references (4)
Short clip · Put it to the test · 33 s

Digital avatar and synthetic voice of Lorenzo Dalci. All examples and companies are fictional.

For learnersNow your turn: contradict, verify sources and guard permissionsHighlighted for your level
For learners · three hands-on labs

Now your turn: contradict, verify sources and guard permissions

Open cited files in Lab 1, catch an inaccurate quote behind a smooth bracket tag in Lab 2, and switch employee roles in Lab 3.

1 · Open files and decide whether the draft holds up

To do

Illustrative exercise · fictional docs Staff asks: «Does an unopened standard spare box ship back within 14 or 30 days?» A hurried AI draft states 14 days because an old file survived in folders.

Generated draft: «Unused spares must return within 14 days of dispatch per Procedure PRO-11.»

Open the documents below to inspect dates and status before answering:

2 · Even cited answers need human inspection

To do

Illustrative exercise · source verification A technician asks: «Confirm gasket seal thickness for Flange spec rev. 2025.» Click the bracket tag below before evaluating each reply:

3 · Permissions execute BEFORE retrieval hands chunks to the model

To do

Illustrative simulation · ACL gating Every team asks the very same question: «Summarise open Q3 company priorities and sales targets.» Switch roles below and observe which index passages survive the access filter.

1 · Index lookup & permission filter

    2 · Generated answer

    GlossaryKey terms in this lesson (9)Highlighted
    RAG
    Retrieval-Augmented Generation: first search authorised company chunks, then generate the answer strictly from those sources.
    Chunk
    A short passage (a few paragraphs) sliced from a document for indexing and retrieval.
    Embedding
    Translating the meaning of text into numbers; passages with similar meaning land close together on the map.
    Hybrid search
    Combining meaning-based search (embeddings) with exact keyword or part-code matching (BM25).
    Reranking
    A second pass that re-reads retrieved chunks and keeps only the most relevant passages for the prompt.
    Context
    Everything handed to the model along with the user question: system rules plus retrieved chunks.
    Citation
    The exact document code and paragraph reference behind an answer, clickable so a person can verify the source.
    Hallucination
    An invented answer written in a confident tone. Grounding with verified documents (RAG, lesson 3) makes it far less likely, though never zero.
    Upstream permissions
    Access filters enforced before retrieval hands passages to the model, ensuring users only see answers from documents they can open.
    Lesson recap

    What you learnt.

    • ○Compared grounded clean-archive RAG against uncleaned drafts and raw memory chat.
    • ○Checked clickable source citations directly and verified upstream access boundaries.
    • ○Passed all 5 RAG governance checks locally.
    Take into your meeting

    Lesson 3 takeaway · Grounded RAG

    Loading summary…

    Educational self-assessment sheet generated locally inside your browser. Zero data sent over the network; not a compliance audit.

    Check · 5 questions drawn from 9

    Did it click? Put it to the test.

    1. In a well-built RAG system, what happens right before the model generates an answer?
    2. The assistant replies: «I cannot find valid clauses covering cold-chain transport in current docs.» Is that a flaw?
    3. Why is clickable citation mandatory in workplace AI answers?
    4. Both current GTC §5 (30 days) and obsolete 2023 draft rev. 1 (14 days) sit in the shared drive. What risks happen?
    5. An assistant reveals executive bonus rules to an intern because the vector DB indexed every PDF equally. What failed?
    Go to next lesson →

    Answers remain inside your browser: missing one brings in a fresh question.

    Up next: Model, search and documents are in place. Physically, which servers should run what, and what stays alive if hardware fails? That’s Lesson 4.

    Want to see this on your workflows?

    Six lessons show what to check before introducing AI into daily work. In a 30-minute call we can walk through it on one of your real processes — or design tailored team training with Wise Academy.