Find the right information: retrieval from scratch

Learn how search finds the right page for a question, one technique at a time, so a small AI can answer from documents it has never seen.

Seven short steps. You first see that a model only knows its training, then build search in stages: by words, by spelling, by meaning, and by combining them, ending with an AI that answers from the pages it finds. No experience needed.

7 steps ยท about 155 minutes

  1. Step 1 See what a model knows on its own

    A model can only answer from what it read in training. Seeing it guess about something new shows why it needs your documents.

    About 10 minutes

    Open step 1: See what a model knows on its own
    Tick each one when it is true for you
  2. Step 2 Keyword search: find pages by their words

    The oldest kind of search lists which pages contain each word, then scores the pages. You build the list and watch the scores decide the order.

    About 25 minutes

    Open step 2: Keyword search: find pages by their words
    Tick each one when it is true for you
  3. Step 3 Fuzzy search: forgive typos and spellings

    You will find words even with typos, close spellings and sound-alike names.

    About 20 minutes

    Open step 3: Fuzzy search: forgive typos and spellings
    Tick each one when it is true for you
  4. Step 4 Vector search: find pages by meaning

    You will turn text into lists of numbers that capture meaning, so a question can find a page that uses completely different words.

    About 25 minutes

    Open step 4: Vector search: find pages by meaning
    Tick each one when it is true for you
  5. Step 5 Hybrid search: combine and rerank

    You will mix word search and meaning search into one ranking, narrow it with filters, and re-order the best results.

    About 20 minutes

    Open step 5: Hybrid search: combine and rerank
    Tick each one when it is true for you
  6. Step 6 Smarter queries and structure

    Rewriting the question, asking it several ways or with a made-up answer (HyDE), following links between names and passing whole documents each fix a mistake plain search makes. You compare them on the same questions.

    About 30 minutes

    Open step 6: Smarter queries and structure
    Tick each one when it is true for you
  7. Step 7 Put it together

    You will let a small AI answer questions from the pages your search finds, and measure which technique finds the right page most often.

    About 25 minutes

    Open step 7: Put it together
    Tick each one when it is true for you