Method for performing a similarity search in the RedisVectorStore. It returns the documents and their scores.
similaritySearchVectorWithScore(
query: number[],
k: number,
filter: RedisVectorStoreFilterType
): Promise<[Document<Record<string, any>>, number][]>| Name | Type | Description |
|---|---|---|
query* | number[] | The query vector. |
k* | number | The number of nearest neighbors to return. |
filter | RedisVectorStoreFilterType | Optional filter to apply to the search. |