Tinker Search before AI

by Samy (Kondasamy Jayaraman) · drawn with Colorfigures by April Zhu

Worst search: “label printer jams”, 0 of 2 right pages in the top 5.“label”: 23 pages · “printer”: 9 pages · “jams”: 0 pages · top: Wren WL-4 Quick Start, p. 1

Chapter 7 of 7

Tune the search box

The team wrote test searches, each with the pages that answer it. Now every setting of the search box is on the bench.

This chapter: Which settings put the most right pages in the top five?

About this chapter

You will learn

  • Precision and recall
  • Why a blend beats either half
  • Why test searches beat hunches

Words you’ll meet

Precision
Of the pages a search returns, the share that are right.
Recall
Of the right pages, the share the search returns.

Step 1 of 2

22 test searches with 35 right pages. and score each search’s top 5.

Find the best settings.

25 of 35 right pages in the top 5 BEST IS 32

Word cleaning
How much a repeat helps
How much a long page counts against it
How much meaning counts
The test searches
SearchRight in top 5PrecisionRecallWhy
dock door sensor warranty1 of 220%50%Missed DS-100 Dock Door Sensor Warranty, p. 2: ranked 8
late fee on unpaid invoices2 of 240%100%All found
who may drive forklifts2 of 240%100%All found
two-step verification1 of 120%100%All found
phishing test results2 of 240%100%All found
trade-in credit for an old K21 of 120%100%All found
where are the fire exits1 of 120%100%All found
how long are call recordings kept1 of 220%50%Missed Data Retention FAQ, p. 2: ranked 32
label printer jams0 of 20%0%Missed Warehouse Ops Sync, June 2024, p. 4: ranked 9
refunds for subscriptions1 of 120%100%All found
Kestrel K3 battery2 of 340%67%Missed Kestrel K3 Launch FAQ, p. 4: ranked 9
who approves purchases for engineering0 of 10%0%Missed Internal Procurement Policy, p. 3: ranked 26
HR-SB1 of 120%100%All found
extension 44101 of 120%100%All found
WR-41 of 120%100%All found
logging in without a password0 of 10%0%Missed Security Policy, p. 3: ranked 26
money for a place to sleep on work trips1 of 220%50%Missed Travel Policy (2018), p. 2: ranked 98
hotel nightly limit1 of 220%50%Missed Travel Policy (2025), p. 2: no word matched
the website was down and nobody could pay1 of 120%100%All found
who pays to send back a faulty item1 of 220%50%Missed Returns FAQ, p. 4: ranked 13
Okonkwo-Hale2 of 240%100%All found
net 452 of 240%100%All found

A teaching search box: Larkspur’s documents cut into RAG’s 32-word pages, searched as you watch. The right pages for each test search are this site’s labels.