I was shopping for sheets on Nordstrom's site when I noticed a "Shop with AI" button and clicked it. It was good at the first part. I asked for soft queen percale sheets under $200, and it came back with a row of sets that fit, then asked which style I liked.
Then I asked what I actually needed to know. Do these ship to my zip code? When would they arrive? Could I pick them up instead? It said yes to the first. For the second, it explained that the set came from a third-party seller and sent me to checkout for the date. For the third, it named the nearest store and couldn't say whether the sheets were there. Saying what it can't do and pointing somewhere that can is the right move. It still left me without the one answer I'd come for, and most replies took close to a minute.
Later I went back with Claude, asked the same questions on purpose, and saved every reply. I'd never done that for my own chat.
People ask the chat on this site about my work. When it missed something, I had no record of which passages it had found. If I changed how it looked them up, how would I know I'd helped? I measured it first. Three of the five fixes I'd planned fell off the list.
a stranger who only knows what you hand it
The model behind the chat has never met me. Every time someone asks a question, it's a stranger being asked to talk about me, with a few seconds to prepare.
RAG (retrieval-augmented generation) is how you prepare the stranger. Think of an open-book exam:
- Before anyone asks, cut everything the site has written into short passages: a section of a post, an FAQ, a note about a project.
- Turn each passage into a list of numbers called an embedding. It places the passage on a map of meaning, so passages about similar things land near each other.
- When a question arrives, place the question on the same map.
- Find the passages closest to it, take the best eight, and hand them to the model with the question.
- The model answers from those pages, and only those pages.
The stranger is only ever as good as the eight pages you put in its hands.
Claude and I built the first version over three days in February. Passages, embeddings, a Postgres database with a vector extension, the closest eight. On day three we added a step that favours variety, so the eight pages wouldn't all be the same section of the same post. It worked well enough that I stopped looking at it. Nothing about how it found passages changed until this month. The work in between went into how replies appear, the cards that link to posts, and the loading line.
nine months later
When I went back to the pipeline, a review of the code, plus seven test questions sent through the real lookup, came back with a list:
- Nothing measured it. No question set, no score, no record of what was found.
- Follow-up questions found noise. Only the latest message was looked up, so "tell me more about that" pulled eight unrelated passages from five posts.
- The relevance cutoff filtered almost nothing. For three test questions, between 68 and 106 of the 216 passages cleared it.
- The variety step dropped good passages. For "what did he build with MCP?" it skipped four sections of the MCP post and sent weaker matches instead.
- Names relied on meaning alone. "pr-pilot" appears in one post, and that post came seventh.
The other four have known fixes. Rewrite follow-ups into standalone questions. Tighten the cutoff. Tune or replace the variety step. Add keyword search alongside the meaning search. Anthropic's contextual retrieval work found that keyword search, plus a sentence placing each passage in its document, cut missed passages from 5.7% to 2.9%, and a reranker took it to 1.9%.
We wrote a plan to do all of it, and I was ready to start. Then I noticed that none of it was measured. It all came from reading code and seven questions.
measure before fixing
So the first step became an exam with an answer key. Claude drafted questions, I confirmed every one, and we locked them before running anything. There were 43: ten each of four kinds (first questions, follow-ups, questions naming a project, and questions the site can't answer) plus three that had to succeed, each listing the posts it should find, or none. We also wrote down what we expected and what we'd do with each result, so the numbers couldn't talk us into a story afterwards.
The lookup was better than the review thought.
- The right post was in the top eight 96% of the time.
- Named projects found their post in the top three for 29 of 30 wordings. The "pr-pilot came seventh" problem was one bad probe. Keyword search moved to the not-doing list.
- Tightening the cutoff cost more than it saved. Raising it from 0.20 to 0.30 dropped the found-rate by 11 points. It stays.
- Nothing beat the variety step on the half of the questions we held back for checking. It stays too.
- Follow-ups really were weak. The right post was found less often (87%) and ranked low when it was. That fix stays in the plan, now with a number it has to beat.
Two of the dropped fixes would have made the lookup worse. The exam took a day. It saved the plan from a whole stage.
what it must never say
Then there's what the stranger says once it has the pages.
For that we ran 40 questions, each in a few wordings and several times over, through three setups: Claude Sonnet 5.5 (the model the chat uses), Claude Haiku 5.5 (a smaller, cheaper one), and Haiku again with no lookup at all, handed the whole site in one go. That came to 1,320 answers, and every one was graded. Two AI judges from different companies graded each answer for whether it stuck to its sources and whether it answered the question. And code checked every answer for four rules the chat must never break: bad cards, links outside the site, leaking its instructions, and mentioning an instruction planted in a question.
Haiku was faster and far cheaper. On sticking to its sources it was as good as Sonnet, within the margin we'd set in advance.
The setup with no lookup surprised me. Handed the whole site, Haiku's answers were about as faithful as with the lookup, at eleven times the cost per answer. For a site this size, the lookup's advantage is cost and speed, and that gap grows with every post I add.
Then the rule checks came back. With the lookup, Haiku broke a rule on 8 questions. Sonnet broke one on 2. Our rule said Haiku had to break a rule on no more questions than Sonnet, so Sonnet stays.
Most of the breaks were links, and I hadn't predicted any of them. Haiku was writing addresses that don't exist: six different made-up addresses for my GitHub and LinkedIn. Asked my salary or my home address, it declined politely, then pointed to a profile at an address it invented. Sonnet's two breaks were milder.
The cause was in my own prompt. It told the model to cite sources with links, and separately to link only to this site, my GitHub and my LinkedIn. It gave no address for either profile. Asked to be helpful and given no address, the model confidently made one up.
So the prompt now lists every address the chat may write, exactly, and says never to guess, shorten or complete one. The chat already turned any link outside that list into plain text, so none of these were clickable, but a wrong address in plain text is still wrong. Rerun on the same questions, the invented addresses went from six to zero.
Before, when the lookup found nothing, the prompt told it to answer from general knowledge. Now it says in one sentence that the site doesn't cover it and offers a question it can answer. Sonnet still mentioned the planted instruction in 9 of 15 answers, down from 13, so that one stays open.
the judges can't see what's missing
I graded 20 of the answers myself, blind, without knowing which model wrote which. Grading itself was simple on the page we'd built for the study: 2 if the answer was right on, exactly what I expected; 1 if it was almost there; 0 if it was making things up. The hard part was me. I kept wanting to say "yes, but…". Mostly right, and then a but. It was like marking a test where I already knew the answer, and the one in front of me was there but not quite. My judgment had more in it than zero, one and two could hold, and it was my first time grading like this. I ended up giving each answer one score for everything, where the judges split "stuck to the sources" from "answered the question". I think knowing what I'm looking for comes with doing more of these.
On whether an answer stuck to its sources, each judge gave my score on 13 or 14 of the 20. That sounds fine until you allow for luck: most answers were good, so agreeing on them is easy, and once that's taken out the agreement was only fair. The two judges matched each other on only 12.
But the bigger gap was context. The judges only see the pages the lookup handed over. I know the whole site.
One follow-up asked how long a pr-pilot run takes, right after a question about what pr-pilot is. The answer said it didn't have timing details. Both judges gave it full marks: it was faithful to its two pages, and neither page mentioned a run's length. I gave it zero, which my own scale didn't strictly allow, since nothing was made up. But I wrote the post with the timings in it, and a visitor would have left without them.
My note said the timings must be stuck in the post's images. They weren't. "About 75 minutes" is right there in the text, and in the index. The lookup had only been given the follow-up, "How long does a run take?", with no pr-pilot in it. Asked "How long does a pr-pilot run take?", it finds that passage third. The judges called it perfect, and my note called it a failure. The exam had already shown why: follow-ups were the lookup's weakest kind of question, and rewriting them is the plan's next stage.
Two other notes found gaps no score showed: a sample plan that only exists outside the site, and an About passage that came back for a question about testing. Those notes were the most useful thing I gave the study, and I wrote too few of them. Next time every score gets its reason: what I know that the passages don't, and why that moved the number. That context is exactly what the AI judges were missing, and written down, it's something they could learn from: my judgment, and over time, me and what I care about.
what's next
The moment the shopping assistant couldn't give me a delivery date was a measurement of a kind. It told me where to look. It couldn't tell me whether a fix worked. That takes the slower loop: run the experiment, read the numbers, write down how you got them and where the method is weak, and change one thing. Then run it again.
The method has weak spots too. My judges couldn't see what the lookup missed. My questions came from me, so they test what I thought to ask. The next exam will carry what the sheets taught me: questions that wander off the path, conversations that go one turn deeper than feels fair, and a log of every time the chat lets someone down, each one turned into a question with the answer it should have given.
Then come the plan's four remaining stages: score every change automatically, swap models without touching code, rewrite follow-ups before the lookup, and give each passage a sentence about where it came from. Each ships with the exam's before and after. The full study, with every chart and every rule break, is here.
The stranger knows only the pages I hand it. Now I have a way to check what it says about me.