Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/pyversity/pyversity.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def diversify(
embeddings: np.ndarray,
scores: np.ndarray,
k: int,
strategy: Strategy | str = Strategy.MMR,
strategy: Strategy | str = Strategy.DPP,
diversity: float = 0.5,
**kwargs: Any,
) -> DiversificationResult:
Expand All @@ -21,7 +21,7 @@ def diversify(
:param scores: Scores (relevances) of the items to be diversified.
:param k: The number of items to select for the diversified result.
:param strategy: The diversification strategy to apply.
Supported strategies are: 'mmr' (default), 'msd', 'cover', 'dpp', and 'ssd'.
Supported strategies are: 'dpp' (default), 'mmr', 'msd', 'cover', and 'ssd'.
:param diversity: Diversity parameter (range of [0, 1]). Higher values prioritize diversity and lower values prioritize relevance.
:param **kwargs: Additional keyword arguments passed to the specific strategy function.
:return: A DiversificationResult containing the selected item indices,
Expand Down