Ask a question to get started
Enter to sendā¢Shift+Enter new line
Return the top-k documents most similar to a text query, with scores.
similarity_search_with_score( self, query: str, k: int = 4, filter: dict[str, Any] | None = None, **kwargs: Any = {} ) -> list[tuple[Document, float]]
query
str
Natural-language query to embed and search with
k
int
4
Number of results to return
filter
dict[str, Any] | None
None
Filter by metadata
kwargs
Any
{}
Additional keyword args