rerank

abstract fun rerank(query: FloatArray, candidates: List<ScoredEntry>): List<ScoredEntry>

Returns candidates in the order the cache should try them.

Implementations must return the same entries, no more and no fewer, with their similarities untouched. query is unit-normalized, as is every CacheEntry.embedding.