Performs a similarity search using query type specified in configuration. If the query type is not specified, it defaults to similarity hybrid search.
similaritySearchWithScore(
query: string,
k: number = 4,
filter: AzureAISearchFilterType | undefined = undefined
): Promise<[Document<Record<string, any>>, number][]>| Name | Type | Description |
|---|---|---|
query* | string | Query text for the similarity search. |
k | number | Default: 4 |
filter | AzureAISearchFilterType | undefined | Default: undefinedOptional filter options for the documents. |