Performs a similarity search with the specified query and returns the results along with their scores.
similaritySearchWithScore(
query: string,
k: number,
filter: TFilterModel
): Promise<[DocumentInterface<Record<string, any>>, number][]>| Name | Type | Description |
|---|---|---|
query* | string | The query to use for the similarity search. |
k | number | The number of results to return. |
filter | TFilterModel | The filter to apply to the results. |