Run similarity search with FalkorDBVector.
similarity_search(
self,
query: str,
k: int = 4,
params: Dict[str, Any] = {},
filter: Optional[Dict[str, Any]] = None,
**kwargs: Any = {}
) -> List[Document]| Name | Type | Description |
|---|---|---|
query* | str | Query text to search for. |
k | int | Default: 4Number of results to return. Defaults to 4. |
params | Dict[str, Any] | Default: {}The search params for the index type. Defaults to empty dict. |
filter | Optional[Dict[str, Any]] | Default: NoneDictionary of arguments(s) to filter on metadata. Defaults to None. |