Returns
List of Tuples of (doc, similarity_score)
similarity_search_with_score(query: str, k: int = 4, filter: Optional[dict] = None, namespace: Optional[str] = None, **kwargs: Any) → List[Tuple[Document, float]][source]¶
Run similarity search with score using Clarifai.
Parameters
query (str) – Query text to search for.
k (int) – Number of results to return. Defaults to 4.
filter (Optional[Dict[str, str]]) – Filter by metadata.
None. (Defaults to) – 
Returns
List of documents most similar to the query text.
Return type
List[Document]
Examples using Clarifai¶
Clarifai