AI engineering glossary · RAG vector search
What is context ordering?
Context ordering: Choosing the sequence in which retrieved passages appear in the prompt. Because position can affect how well a model uses a passage, systems often place the highest-ranked ones first or last.
Context ordering: an example
The reranked top passage goes first, the second-best goes last, and weaker ones sit in between.
Related terms
More RAG vector search terms
- Context precision
- Context recall
- Context relevance
- Contextual chunk enrichment
- Contextual retrieval
- Conversational RAG
- Corrective RAG
- Cosine distance
Where you learn it
Context ordering is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.