Rank embedding entries by cosine similarity to a query vector.
Embedding of the search query.
All index entries to rank.
Maximum number of results to return.
Minimum similarity score to include (0–1).
Descending-sorted array of RankedResult (length ≤ topK).
Rank embedding entries by cosine similarity to a query vector.