Run similarity search with Neo4jVector.
similarity_search(
self,
query: str,
k: int = 4,
params: Dict[str, Any] = {},
filter: Optional[Dict[str, Any]] = None,
effective_search_ratio: int = 1,
**kwargs: Any = {}
) -> List[Document]Returns:
List of Document objects most similar to the query.
| Name | Type | Description |
|---|---|---|
query* | str | Query text to search for. |
k | int | Default: 4Number of results to return. |
params | Dict[str, Any] | Default: {}The search params for the index type. |
filter | Optional[Dict[str, Any]] | Default: NoneDictionary of argument(s) to filter on metadata. |
effective_search_ratio | int | Default: 1Controls the candidate pool size
by multiplying |