VectorStoreMMRSearch class

Maximal Marginal Relevance (MMR) search .

Maximal marginal relevance optimizes for similarity to query AND diversity among selected documents.

Inheritance

Constructors

VectorStoreMMRSearch({int k = 4, Map<String, dynamic>? filter, int fetchK = 20, double lambdaMult = 0.5})
Maximal Marginal Relevance (MMR) search .
const

Properties

fetchK int
The number of documents to pass to MMR algorithm.
final
filter Map<String, dynamic>?
The filter to apply to the search.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
k int
The number of documents to return.
finalinherited
lambdaMult double
Number between 0 and 1 that determines the degree of diversity among the results with 0 corresponding to maximum diversity and 1 to minimum diversity.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited