The retrieve-then-generate loop

You have a search engine and a model. Joining them takes about 30 lines of code, and those 30 lines decide whether users get grounded answers with sources or confident blends of half-relevant paragraphs. How many chunks, in what order, with what instructions, and how does the answer point back to where each fact came from?

In this lesson you'll learn to

Create a free account to open this lesson

It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.