Ask a question to get started
Enter to send•Shift+Enter new line
similarity_search( self, query: str, k: int = 4, **kwargs: Any
Similarity search for a query string using the configured index.
:param query: Query text to embed and search. :type query: str :param k: Number of most similar documents. :type k: int
:return: Top-k documents. :rtype: list[Document]