Long Context and RAG
In this article
- Explain why the context a model uses well on a task can be smaller than what one request may hold, and why a long-context test needs many-fact questions.
- Tell a global question from a selective one, and say when access rules rule out sending a whole corpus.
- Choose long context, retrieval or a hybrid as the first variant to benchmark from a workload's size, change rate, questions and access rules.
- Name the measurement that could reverse that choice.
- Terms defined here: effective usable context, access control list.
Overview
Retrieval has a weak spot: the search can miss the page that holds the answer. Meanwhile current models accept requests far longer than any help page. So a fair question comes up in every design review: why search at all, when you could send every document with every question?
Sometimes you should, and sometimes you must not, whatever the model can hold. The answer depends on the workload, and its honest form is a first variant to benchmark plus the measurement that could overturn it.
The running example is Brightline, the home-internet provider of the earlier lessons; the company, its pages and its numbers are invented. It has two assistants, and they come out on opposite sides.
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
- Two ways to hand over the documents
- The context the model uses well
- Who may see what
- Size, change and caching
- The first variant to test
- The measurement that could reverse it
- Common mistakes
- Sources
- Check yourself, 13 questions