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