@@ -617,9 +617,13 @@ def blend(
617617class MMR :
618618 """Define MMR (Maximal Marginal Relevance) diversity selection.
619619
620+ Not supported for multi-vector indexes.
621+
620622 Args:
621- limit: Optional number of candidates to consider for diversification.
622- balance: Optional MMR lambda in [0.0, 1.0] — 1.0 is pure relevance, 0.0 is pure diversity.
623+ limit: Number of objects to select. The server requires it: it must be at least 1 and
624+ no larger than the query's own `limit` when one is set.
625+ balance: Optional MMR lambda in [0.0, 1.0]. 1.0 ranks purely by relevance to the query,
626+ 0.0 purely by dissimilarity to the objects already selected.
623627 """
624628
625629 limit : Optional [int ] = None
@@ -636,9 +640,13 @@ def __init__(self) -> None:
636640 def mmr (limit : Optional [int ] = None , balance : Optional [float ] = None ) -> MMR :
637641 """Maximal Marginal Relevance diversity selection.
638642
643+ Not supported for multi-vector indexes.
644+
639645 Args:
640- limit: Number of candidates to consider for diversification.
641- balance: MMR lambda in [0.0, 1.0] — 1.0 pure relevance, 0.0 pure diversity.
646+ limit: Number of objects to select. The server requires it: it must be at least 1
647+ and no larger than the query's own `limit` when one is set.
648+ balance: MMR lambda in [0.0, 1.0]. 1.0 ranks purely by relevance to the query,
649+ 0.0 purely by dissimilarity to the objects already selected.
642650 """
643651 return MMR (limit = limit , balance = balance )
644652
0 commit comments