Performs a similarity search based on vector comparison and returns documents along with their similarity scores and vectors.
similaritySearchWithScoreAndVectorByVector(
embedding: number[],
k: number,
filter: Filter
): Promise<[Document<Record<string, any>>, number, number[]][]>| Name | Type | Description |
|---|---|---|
embedding* | number[] | The vector representation of the query for similarity comparison. |
k* | number | The number of top similar documents to return. |
filter | Filter | Optional filter criteria to apply to the search query. |