Method to perform a similarity search on the stored vectors in the Weaviate index. It returns the top k most similar documents and their similarity scores.
similaritySearchVectorWithScore(
query: number[],
k: number,
filter: FilterValue
): Promise<[Document<Record<string, any>>, number][]>| Name | Type | Description |
|---|---|---|
query* | number[] | The query vector. |
k* | number | The number of most similar documents to return. |
filter | FilterValue | Optional filter to apply to the search. |