Routing Queries Across Knowledge Sources
In this article
- Describe each knowledge source in a registry by what it can answer, how fresh it is, its time limit, its cost and who may read it.
- Route each part of a mixed question with code rules first and a model classifier only for what no rule matches.
- Choose an honest fallback when a live source does not answer, and say why an old copy in the index is not one.
- Explain why the router picks where to look while a separate access check decides who may see the result.
- Terms defined here: source registry, query routing.
Overview
A customer writes: "Is there an outage in my area right now, and what does E-42 on my BL-R7 mean?" The second half is in a router manual. The first half is in no document at all: it is a fact about this minute. Send both halves to one search and the reply explains E-42 and guesses about the outage.
Brightline, a home-internet provider (a made-up company), runs a support assistant. It can search its help pages and router manuals, and it can read two live systems: the order system through lookup_order and the outage notices for each area. Brightline wants each reply within 5 seconds, so a live source gets 1 second. By the end you can describe sources in a registry, send each part of a question to the right one, handle a source that fails, and keep source choice apart from permission.
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
- A registry of sources
- Rules first, a model for the rest
- A mixed question
- When a live source does not answer
- Routing is not permission
- Testing the router
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions