aarondb/vector/result
Types
An entity ID paired with its cosine-similarity score.
pub type SearchResult {
SearchResult(entity: fact.EntityId, score: Float)
}
Constructors
-
SearchResult(entity: fact.EntityId, score: Float)
Values
pub fn compare_search_results(
a: SearchResult,
b: SearchResult,
) -> order.Order
Deterministic descending-score ordering for vector results.
Equal scores are resolved by ascending entity ID, so exact search, HNSW traversal, benchmarks, and tests share one mechanically comparable order.