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.

Level: intermediateTopic: RAG vector search

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

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.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.