Understanding Retrieval-Augmented Generation (RAG)
Explore how RAG utilizes company documents for accurate, cited responses, and learn to assess its effectiveness.
What you'll learn
- Differentiate retrieval-augmented generation from standalone AI answers, keywords searches, and fine-tuning based on data sources
- Navigate a question through the entire RAG process: retrieval, filtering, sorting, context assembly, response generation, and citation
- Describe the selection, cleaning, chunking, and metadata processes that determine the evidence available to an AI assistant
- Clarify embeddings and similarity search in straightforward terms, and identify optimal scenarios for combining keyword and meaning matching
- Diagnose problematic answers by pinpointing missing content, retrieval failures, or inappropriate evidence use, and determine solutions
- Ensure each assertion in a response is substantiated by the referenced text, including pertinent conditions, exceptions, and timestamps
- Define access permissions for each stage of the pipeline and ensure that implicitly stated instructions in documents do not act as executable commands
- Implement ownership tracking, version labeling, and freshness assessments to prevent outdated policies from influencing responses
- Construct a concise evaluation set to measure retrieval accuracy, correctness, evidential support, abstention, and permissions
- Develop a structured RAG pilot brief incorporating users, data sources, processing pipeline, access permissions, no-response protocols, and success metrics
Course outline
9 sections · 9 lessons · 1h 29m total
Why Give an AI Assistant External Evidence?
- Why Give an AI Assistant External Evidence? 09:53
Prepare Documents for Retrieval
- Prepare Documents for Retrieval 09:21
How Retrieval Finds the Right Passages
- How Retrieval Finds the Right Passages 09:26
From a Question to a Grounded Answer
- From a Question to a Grounded Answer 10:00
Find Where the Answer Went Wrong
- Find Where the Answer Went Wrong 09:26
Check Citations, Conditions and Freshness
- Check Citations, Conditions and Freshness 09:15
Control Access and Untrusted Content
- Control Access and Untrusted Content 10:19
Build a Useful Evaluation Set
- Build a Useful Evaluation Set 10:19
Final Case: Scope a Policy Assistant
- Final Case: Scope a Policy Assistant 11:14
About this course
This course focuses on the application of artificial intelligence technologies.
Imagine asking a general AI assistant about your company’s travel policy; you receive a confident, articulate response. The challenge arises when this model has never encountered your specific policy. Retrieval-augmented generation, commonly referred to as RAG, addresses this issue by sourcing the relevant excerpts from your documents and generating an informed answer with citations. This method underpins the functionality of many contemporary document-based AI assistants. However, it is crucial to remember that a citation alone does not confirm accuracy, and the performance of a RAG assistant heavily relies on the quality of the information it accesses.
This course guides you through the inner workings of RAG and helps you evaluate the reliability of its outputs. You will engage with a fictional engineering consultancy as its knowledge manager develops an internal policy assistant, progressing from the initial inquiry to the decision-making phase of a pilot project. The course features diagrams, practical examples, and interactive decision-making activities, without the need for coding, database configurations, or software installations.
Your learning objectives include:
- Differentiating RAG from standalone AI responses, keyword searches, and fine-tuning based on the source of information
- Preparing documents for retrieval: selecting relevant content, cleaning extracted text, chunking appropriately, and tagging each segment
- Describing embeddings and similarity searches in simple terms, and understanding when to merge keyword and semantic matching
- Tracing a query throughout the complete answer development process: retrieval, filtering, ranking, context assembly, generation, and citation
- Identifying the root causes of poor responses: whether due to missing information, an unsuccessful retrieval process, or incorrect evidence usage, and implementing corrective measures
- Verifying that each claim made in a response is adequately backed by the cited passages, including applicable conditions, exceptions, and dates
- Establishing access controls throughout the process and preventing directives buried in documents from functioning as actionable commands
- Creating an evaluation set to independently assess retrieval performance, answer accuracy, evidential support, abstention, and permission compliance
The course culminates with a practical scenario where you will design a new policy assistant and draft a structured pilot brief. You will also compare your brief against an example response and a comprehensive RAG design checklist. Evaluation terminology will adhere to established RAG evaluation frameworks that distinguish retrieval performance from response quality, all while maintaining a vendor-neutral perspective.
Who this course is for
- Business leaders and professionals assessing AI tools that provide answers based on organizational documents
- Knowledge managers and policy stakeholders seeking AI support for accurate, cited responses tailored from their content
- IT personnel looking for a collaborative, vendor-neutral framework to plan and evaluate a RAG initiative with business partners
- Individuals eager to comprehend the mechanisms of retrieval-augmented generation and evaluate the trustworthiness of its responses
