Multi-Query Retrieval
In this article
- Write query variants that change the vocabulary or the aspect of a question, and tell them from rewordings.
- Merge the results of several queries by chunk id with reciprocal rank fusion and predict which chunks reach the top 3.
- Count what each variant alone brought into the top 3 and drop one that falls below a stated threshold.
- Weigh a recall gain against the extra searches, the extra model call and the slower p95.
- Terms defined here: multi-query retrieval.
Overview
A customer writes "My Wi-Fi gets slow every evening." The help page that answers it talks about speeds dropping at peak times and shares almost no words with the question, so one search can miss it. Would a second and a third query, worded differently, find what the first one missed, and would that be worth the extra time and money?
In an invented example, Brightline, a home-internet provider, runs a support assistant that searches its help pages and router manuals and puts the best 3 chunks, short passages cut from those pages, into each request; a step that reads the customer's question runs before that search.
Afterwards you can write queries that reach new chunks, merge their results without duplicates, and keep only the queries that measurably earn their cost.
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
- Rewordings are not variants
- Running the variants
- Merging by chunk id
- What each variant brought
- Keeping V1, dropping V2
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions