Performs a similarity search using a vector query and returns results along with their similarity scores.
similaritySearchVectorWithScore(
query: number[],
k: number,
filter: string | object
): Promise<[DocumentInterface<Record<string, any>>, number][]>| Name | Type | Description |
|---|---|---|
query* | number[] | Vector representing the search query. |
k* | number | Number of similar results to return. |
filter | string | object | Optional filter based on |