Performs a similarity search and returns documents along with their scores.
similaritySearchWithScore(
query: string,
k: number,
filter: VectaraFilter
): Promise<[Document<Record<string, any>>, number][]>| Name | Type | Description |
|---|---|---|
query* | string | The query string for the similarity search. |
k | number | Optional. The number of results to return. Default is 10. |
filter | VectaraFilter | Optional. A VectaraFilter object to refine the search results. |