Performs a similarity search in the database and returns the documents and their scores.
similaritySearchWithScore(
query: string,
k: number
): Promise<[Document<Record<string, any>>, number][]>| Name | Type | Description |
|---|---|---|
query* | string | The query string. |
k* | number | The number of results to return. |