Method to search for vectors that are similar to a given query vector, but with the results selected using the maximal marginal relevance.
maxMarginalRelevanceSearch(
query: string,
options: MaxMarginalRelevanceSearchOptions<WhereClause>
): Promise<Document<Record<string, any>>[]>| Name | Type | Description |
|---|---|---|
query* | string | The query string. |
options* | MaxMarginalRelevanceSearchOptions<WhereClause> |