Ask a question to get started
Enter to send•Shift+Enter new line
Async return docs most similar to query using a specified search type.
asearch( self, query: str, search_type: str, **kwargs: Any = {} ) -> list[Document]
query
str
Input text.
search_type
Type of search to perform.
Can be 'similarity', 'mmr', or 'similarity_score_threshold'.
'similarity'
'mmr'
'similarity_score_threshold'
**kwargs
Any
{}
Arguments to pass to the search method.