Track lessons
- 1How a language model works: parameters and inferenceVideo 3 min
- 2How AI finds text by meaning: embeddings and hybrid searchVideo 3 min
- 3How AI answers from verified sources: RAGVideo 3 min
- 4In-house enterprise AI: VM, GPU node and proxyVideo 2 min
- 5Why one machine is rarely enough: memory and queuesVideo 2 min
- 6Where your data goes: external models vs in-house proxyVideo 3 min
First retrieve, then cite — never trust memory alone
- RAG (Retrieval-Augmented Generation) puts current approved company paragraphs directly ahead of the answer.
- If uncleaned drafts from 2023 linger in shared folders, even great AI cites conflicting deadlines.
- 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.
Digital avatar and synthetic voice of Lorenzo Dalci. All examples and companies are fictional.
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?»
- Question
The question becomes meaning coordinates and exact query terms.
- 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.
- Context
The model receives the question strictly alongside passages picked in step 2.
- Answer
…
Click «Play» or switch modes above.
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
Garbage folders in, conflicting policies out
Four foundations before launch
Retire or tag obsolete revisions
How to assess it
Split draft folders from approved archives so superseded procedures cannot outvote active policy.
Enforce permissions upstream
How to assess it
Restricted HR, board or margin sheets must be blocked inside retrieval before chunks enter model context.
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
- «When an employee lacks SharePoint/file permissions for a doc, is that chunk blocked prior to prompting?»
- «Does clicking a citation open the exact verified passage rather than a broken static string?»
- «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.
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
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)
- Lewis et al. (NeurIPS 2020) — Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks — Foundational formulation combining parametric generation with non-parametric indicesVerified on 2026-11-25
- Robertson & Zaragoza (2009) — The Probabilistic Relevance Framework: BM25 and Beyond — Lexical retrieval scoring paired alongside dense embeddingsVerified on 2026-11-25
- Cormack, Clarke & Büttcher (SIGIR 2009) — Reciprocal Rank Fusion outperforms Condorcet and individual Rank Learning Methods — Score-free hybrid ranking fusion methodVerified on 2026-11-25
- OWASP Top 10 for LLM Applications 2025 — LLM01 Prompt Injection, LLM02 Sensitive Information Disclosure, LLM08 Vector and Embedding Weaknesses — Security risks surrounding uncleaned RAG stores and indirect prompt injectionsVerified on 2026-11-25
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
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 doIllustrative 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 doIllustrative 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 doIllustrative 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.
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.
Lesson 3 takeaway · Grounded RAG
Educational self-assessment sheet generated locally inside your browser. Zero data sent over the network; not a compliance audit.
Did it click? Put it to the test.
Answers remain inside your browser: missing one brings in a fresh question.














