

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: Augmented Generation
incomplete
2: LLM Summarization
incomplete
3: Conflict Resolution in Summaries
incomplete
4: Adding Citations
incomplete
5: Question Answering
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
So what exactly does augmented generation... generate? Oftentimes it's summaries of the results. (You've probably seen this with Google's "AI overview" at the top of search results!)
What makes a good summary depends on your users' needs. For example, a movie summary for a parent looking for family content should ideally emphasize themes and age-appropriateness, while a summary of the same movie for a film critic should focus on artistic merit and technical achievements.
Who your target user is will influence what a good summary looks like.
A single document tells one version of a story. Multiple documents can give more points of view.
When users search, they get many results:
LLMs usually do a good job of synthesizing all this into one coherent answer. For example:
Query: "bear movies for kids"
Search Results:
Summary:
"For family-friendly bear movies, Paddington offers a polite British bear perfect for young children, while Disney's Brother Bear provides beautiful animation with meaningful life lessons. The Jungle Book features the lovable Baloo with catchy songs, and We Bare Bears brings bears into a modern cartoon series format. All are rated G or PG with positive messages."
Build a multi-document summarization pipeline that synthesizes search results.
f"""Provide information useful to the query below by synthesizing data from multiple search results in detail.
The goal is to provide comprehensive information so that users know what their options are.
Your response should be information-dense and concise, with several key pieces of information about the genre, plot, etc. of each movie.
This should be tailored to Webflyx users. Webflyx is a movie streaming service.
Query: {query}
Search results:
{results}
Provide a comprehensive 3–4 sentence answer that combines information from multiple sources:"""
Search Results:
- We're Back! A Dinosaur's Story
- The Lost World
- The Lost World: Jurassic Park
- Dino Crisis 2
- Land of the Lost
LLM Summary:
<SUMMARY GOES HERE>
If things look right, submit the CLI tests.