Skip to content
A Fundación Trivium Américas certification
FUNDACIÓNTRIVIUMAMÉRICAS Applied Artificial Intelligence
EN

Applied AI / AI Automation and Assistants / Sample lesson

Sample lesson · Module 3: Assistants grounded in your own knowledge

Retrieval-augmented generation: how it works

  • 20 min
  • Level Practitioner
  • Instructor: Academic Direction · Fundación Trivium Américas

An assistant that answers using your organization's own documents (manuals, regulations, FAQs) is one of the most valuable uses of AI. The technique that makes it possible is called retrieval-augmented generation.

The core idea

Instead of relying on what the model learned during training, the system first searches your documents for the passages related to the question and then passes them to the model along with the instruction: "answer using only this information".

The building blocks

Documents are split into chunks, and each chunk is converted into a numerical representation that captures its meaning. When a question comes in, the system looks for the chunks whose meaning is closest, even if they do not share the same words. That is semantic search.

Controlling quality

A good assistant cites which document each answer came from and says "I don't know" when the information is not in its sources. It is tested with a set of real questions whose correct answers are known in advance.

Did you enjoy this lesson? The full course has 20 lessons like this one, plus live sessions and guided practice.