Ask a question to get started
Enter to sendā¢Shift+Enter new line
Return docs most similar to query with score.
similarity_search_with_score( self, query: str, k: int = 4, filter: Optional[Dict[str, Any]] = None ) -> List[Tuple[Document, float]]
query
str
Query to look up documents similar to.
k
int
4
Number of Documents to return. Defaults to 4.
filter
Optional[Dict[str, Any]]
None
Filter on the metadata to apply.