Ask a question to get started
Enter to sendā¢Shift+Enter new line
Run similarity search with Chroma.
similarity_search( self, query: str, k: int = DEFAULT_K, filter: Optional[Dict[str, str]] = None, **kwargs: Any = {} ) -> List[Document]
query
str
Query text to search for.
k
int
DEFAULT_K
Number of results to return. Defaults to 4.
filter
Optional[Dict[str, str]]
None
Filter by metadata. Defaults to None.