Skip to content

Notes That Answer

You'll build retrieval over two hundred of your own documents, make a model cite the chunk it used, and test it on twenty questions, five of which it should refuse.

About

Retrieval is the trick that lets a small model answer questions about your own stuff: your notes, your recipes, your meeting minutes, a manual. You split the documents into chunks, turn each chunk into a vector with an embedding model, find the chunks nearest to a question, and hand those to the language model with an order to cite them. It sounds like a weekend and takes a month, because the hard part is not the pipeline. It's that retrieval brings back the wrong chunk a third of the time and the model answers anyway. A laptop with 8 GB handles a few thousand chunks, and the embedding model is under 500 MB.

At a glance

Per requirement
35 XP
Completion bonus
300 XP
Requirements
7
Takes
Three to four weeks
Skill level
Intermediate (months of practice)
Cost
Free
Supplies
Nothing special
Where
At home
Other people
On your own
Locked for now
Earn two more Uncommon badges in AI Tinkering to open this one. Log in to see how far along you are.

Requirements

  1. 1
    Gather at least two hundred documents you own and chunk them. Your own notes, journals, emails to yourself, a manual you've scanned. Split them into chunks of around 300 to 500 tokens with a little overlap. Don't use other people's private messages without asking them. Take a screenshot of the chunk count and one example chunk. Photo
  2. 2
    Embed the chunks with a local embedding model and store the vectors. A small embedding model runs on the CPU, and a file or a lightweight vector store is plenty. Note how long embedding took. Take a screenshot of the store with the vector count. Photo
  3. 3
    Test retrieval alone on ten questions before any generation. For each question, print the top five chunks and mark by hand whether the right one is there. This is the number that matters, and most first attempts land at six or seven out of ten. Take a photo of the ten rows with hits marked. Photo
  4. 4
    Change one thing about chunking or retrieval and measure again. Smaller chunks, more overlap, a different embedding model, or a keyword search mixed in. Rerun the same ten. Take a photo of the before and after hit counts. Photo
  5. 5
    Generate answers that cite the chunk they came from. Tell the model to answer only from the chunks given and to name the chunk for each claim. Show a question, the answer and the cited chunk side by side. Take a screenshot of one answer with its citations opened. Photo
  6. 6
    Run twenty questions, including five your notes can't answer. Score each answer right, wrong or invented, and the five impossible ones must come back as not in your notes. If the model answers them anyway, that's the fight, so tighten the prompt or add a retrieval score threshold and rerun. Take a photo of the final score sheet. Photo
  7. 7
    Write what you'd do differently. Five lines on the retrieval number you reached, the kind of question it still fails, and one thing you'd change about how you write notes now that you've searched them. Take a photo of the page and post it with the badge. Photo