AlgoViz

Rewriting, filtering and re-ranking

medium 6 min

Query rewriting and expansion change what enters retrieval.

Where it shows up

The same pattern appears across everyday software.

  • The most relevant exception starts at rank eight

    One candidate contains the exception for international returns. A cheap retriever placed it eighth. A cross-encoder evaluates the question together with each passage. Keep document IDs and scopes intact during reordering. With a fixed prompt budget, moving P8 into the top three changes what the generator can see. Evaluate this stage separately from candidate recall.