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 collection of documents.
- Choose long context, retrieval or a mixed variant as the first variant to test from a corpus'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
A search over your documents can return the wrong pages, and the model then answers without the fact it needed. Yet models can read a lot of text in one request. So why search at all? Why not send every document with every question?
In an invented example, Brightline, a home-internet provider, runs a support assistant for customers on its website, and its support staff use a second assistant over a 120-page internal handbook.
For each assistant you will pick the variant to test first: the whole collection in every request, a few looked-up pieces, or a mix. You will also name the measurement that could prove that pick wrong.
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
- What 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