| Name | Type | Description |
|---|---|---|
query* | str | The query text for which to find similar documents. |
k | int | Default: 4The number of documents to return. Default is 4. |
filter | InMemoryDBFilterExpression | Default: NoneOptional metadata filter. Defaults to None. |
return_metadata | bool | Default: True |
distance_threshold | Optional[float] | Default: None |
Run similarity search
Whether to return metadata. Defaults to True.
Maximum vector distance between selected documents and the query vector. Defaults to None.