Returns the top-n matches from an embedding matrix for one or more query vectors.
Subject-first: embeddings (haystack) then query (needle), pipe-friendly.
search_vector(embeddings, query, n = 10)A data frame (or list of data frames if multiple queries are provided) containing the match identifiers and similarity scores.
A numeric or sparse matrix of embeddings (rows = searchable units).
A character (row name in embeddings), a numeric vector (single query),
or a numeric matrix (multiple queries).
Number of results to return per query (default 10).