Performs a similarity search with the specified vector and returns the results along with their scores.
similaritySearchVectorWithScore(
query: number[],
k: number,
filter: TFilterModel
): Promise<[Document<SimilarityModel<TModel, TSelectModel>>, number][]>| Name | Type | Description |
|---|---|---|
query* | number[] | The vector to use for the similarity search. |
k* | number | The number of results to return. |
filter | TFilterModel | The filter to apply to the results. |