Context Packing
Quick definition
Selecting and arranging pieces of information within a model's context window.
Selecting and arranging pieces of information within a model's context window.
Packing must balance relevance, ordering, token limits, and the possibility that useful facts are omitted.
Example: A research assistant fits the five most relevant report excerpts into its prompt.
Common use cases: Retrieval-augmented generation and long-document tasks.
Examples
- A research assistant fits the five most relevant report excerpts into its prompt.
Use cases
- Retrieval-augmented generation and long-document tasks.
Frequently asked questions
What is Context Packing?
Selecting and arranging pieces of information within a model's context window.
What should I know about Context Packing?
Packing must balance relevance, ordering, token limits, and the possibility that useful facts are omitted.