similaritySearchWithScore(
query: string,
k: number = 4,
filter: CouchbaseQueryVectorStoreFilter = {}
): Promise| Name | Type | Description |
|---|---|---|
query* | string | |
k | number | Default: 4 |
filter | CouchbaseQueryVectorStoreFilter | Default: {} |
Return documents that are most similar to the query with their scores.
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 query. Defaults to empty object.
where: Optional WHERE clause conditions for the SQL++ queryfields: Optional list of fields to include in the results