Recap
Where Part 1 left Orrin's assistant
Part 1 built the retrieval half of Orrin's knowledge assistant, which is the internal assistant that answers employees' questions about HR policies and engineering documents. Every chunk and every question goes through the same embedding model, the vectors live in an index that can find the nearest ones quickly, and the retrieval pipeline runs dense search and BM25 side by side, fuses the two lists, reranks the top 30 and keeps five. On Orrin's eval dataset of 36 test cases, that pipeline put the evidence in the top 5 for every question that has evidence, while the tutorial baseline missed two, and section 12 of Part 1 showed you how to find the stage that lost the evidence when it doesn't.
But finding the right passages doesn't mean you'll get the right answer, and the six recurring questions from section 2 of Part 1 still had problems that retrieval alone couldn't fix. The baseline quoted a confidential leadership brief to Maya, who can't open it. It answered from an out-of-date copy of the parental leave policy, and it told Maya that foster placements were covered even though the policy never says so. And once the search got good, it found a wiki page that had an instruction planted in it, and it repeated that instruction.
This part covers the other half. It starts with the question itself, because sometimes the question needs rewriting before any search runs. Then it gets to the prompt that makes the model answer only from the sources and say when they don't answer, and to how you measure those answers. After that it covers what a company needs before the assistant goes out to everyone, which is permissions, freshness, protection against planted instructions, and running it as a service. And it ends with the advanced methods worth knowing about, plus an exercise where you build the whole thing on your own documents.
Keep reading
The rest of this lesson is free with an account
Create a free account to read the remaining 13 sections. It takes about twenty seconds and there's nothing to pay. The same account opens the slide decks and CV reviews.
- 02Change the question only when the eval shows the question is the problem
- 03Answer only from the cited sources, and say when they don't answer
- 04Measure the answers against the evidence they were given
- 05Apply permissions in the search, before the model sees anything
- 06Keep old versions and copies out of the answer
- and 8 more
That's the last one written so far
Pick your next module from the board.
