Ask a question to get started
Enter to sendā¢Shift+Enter new line
Perform a similarity search using the given query.
similarity_search( self, query: str, k: int = 4, filter: Optional[dict] = None, **kwargs: Any = {} ) -> List[Document]
query
str
The query string.
k
int
4
The number of results to retrieve. Defaults to 4.
filter
Optional[dict]
None
A filter to apply to the search results.
kwargs
Any
{}
Additional keyword arguments.