**kwargs – kwargs to be passed to similarity search. Should include:
score_threshold: Optional, a floating point value between 0 to 1 to
filter the resulting set of retrieved docs
Returns
List of Tuples of (doc, similarity_score)
similarity_search_with_score(query: str, k: int = 5) → List[Tuple[Document, float]][source]¶
Return LLMRails documents most similar to query, along with scores.
Parameters
query – Text to look up documents similar to.
k – Number of Documents to return. Defaults to 5 Max 10.
alpha – parameter for hybrid search .
Returns
List of Documents most similar to the query and score for each.