similaritySearch(
query: string,
k: number = 4,
filter: CouchbaseSearchVectorStoreFilter = {}
): Promise| Name | Type | Description |
|---|---|---|
query* | string | |
k | number | Default: 4 |
filter | CouchbaseSearchVectorStoreFilter | Default: {} |
Return documents that are most similar to the query.
Query to look up for similar documents
The number of similar documents to return. Defaults to 4.
Optional search filter that are passed to Couchbase search. Defaults to empty object.
fields: Optional list of fields to include in the
metadata of results. Note that these need to be stored in the index.
If nothing is specified, defaults to all the fields stored in the index.searchOptions: Optional search options that are passed to Couchbase search. Defaults to empty object.