Skip to main content

Module rerank

Module rerank 

Source
Expand description

Provider-agnostic reranking abstractions.

Reranking models reorder a list of documents by relevance to a query. The RerankModel trait defines the interface, and RerankResponse carries both the scored results and token usage.

Structs§

RerankResponse
Response from a reranking request.
RerankResult
A single reranked document result.

Enums§

RerankError

Traits§

RerankModel
Trait for reranking models that score documents by relevance to a query.