find_most_similar
AsyncMethod
This is a method of the EmbeddingAgent class in the embedding module.Find the most similar texts to a query. # Arguments *
query - Query text * candidates - List of candidate texts to compare * top_k - Number of top results to return # Returns List of SimilarityResult sorted by score (descending)
Signature
Parameters
&str
required
No description available.
&
required
No description available.
usize
required
No description available.
Returns
Result<Vec<SimilarityResult>>
The result of the operation.

