Choosing a Retrieval Mode per Query
In this article
- Read per-slice counts on held questions and say which retrieval mode wins each slice and by how much.
- Route a question to a structured lookup, a filter, or hybrid search from signals code can see in its wording.
- Explain why a negation or a price limit belongs in a filter on a stored field, not in the search text.
- Name the count that would change a routing choice, and the corpus change that should trigger a re-test.
- Terms defined here: query intent.
Overview
One support assistant gets four kinds of question in the same hour. A customer pastes an order number. Another types "What does E-42 mean on the BL-R7?". A third writes "My Wi-Fi gets slow every evening". A fourth wants reset steps for any router except the one they already own. You can search text by exact words, by meaning, or both merged, and you can look a record up directly in the order system: four retrieval modes. Which should each question get?
Habit is a poor answer. Counting is a better one: run saved questions through each mode, count the hits per kind of question, and let the margins decide. Then write a short rule that code applies to every question, and know which result would change it.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- Counting per slice
- No single winner
- Signals code can read
- Negation and numbers are filters
- What a wrong route costs
- When to count again
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions