swarmauri.core.vector_stores.ISimiliarityQuery module
- class swarmauri.core.vector_stores.ISimiliarityQuery.ISimilarityQuery[source]
Bases:
ABC
- abstract search_by_similarity_threshold(query_vector, similarity_threshold, space_name=None)[source]
Search vectors exceeding a similarity threshold to a query vector within an optional vector space.
- Parameters:
query_vector (List[float]) – The high-dimensional query vector.
similarity_threshold (float) – The similarity threshold for filtering results.
space_name (str, optional) – The name of the vector space to search within.
- Returns:
A list of dictionaries with vector IDs, similarity scores, and optional metadata that meet the similarity threshold.
- Return type:
List[Dict]