Skip to main content
CLI Reference

travsr rerank

Manage the cross-encoder model that reorders search results by relevance.

travsr rerank status
travsr rerank install

Subcommands

CommandWhat it does
installDownload the cross-encoder model into ~/.travsr/models/rerank
statusReport whether the model is installed

What reranking does, and does not do

The reranker reorders candidates that the graph already produced. It never decides an edge, never adds a result, and never removes one from the graph. Retrieval stays deterministic and structural; the model only changes the order in which already-retrieved candidates are presented.

That boundary is deliberate: an LLM-adjacent component that could determine graph structure would put a probabilistic answer where an exact one belongs.

Optional, and fail-open

Reranking is off until installed, and a missing or unloadable model degrades to unranked results rather than failing the query. travsr status reports the reranker's state alongside the rest of the index.