semantic_router.linear#

Functions

similarity_matrix(xq, index)

Compute the similarity scores between a query vector and a set of vectors.

top_scores(sim[, top_k])