Searches for vectors in the Chroma database that are similar to the
provided query vector. The search can be filtered using the provided
filter object or the filter property of the Chroma instance.
similaritySearchVectorWithScore(
query: number[],
k: number,
filter: Where
): Promise<[Document<Record<string, any>>, number][]>| Name | Type | Description |
|---|---|---|
query* | number[] | The query vector. |
k* | number | The number of similar vectors to return. |
filter | Where | Optional. A |