Discover and explore top open-source AI tools and projects—updated daily.
PringledFast library for retrieval result diversification
New!
Top 74.8% on SourcePulse
Fast, lightweight retrieval diversification library addressing redundancy in search results. Pyversity offers a unified API for popular strategies like MMR, MSD, DPP, and Cover, enabling users to surface relevant yet less redundant items. It targets applications from e-commerce and news search to RAG/LLM contexts, improving user experience and exploration by balancing relevance with variety.
How It Works
Pyversity re-ranks retrieval results by implementing several diversification strategies. These algorithms select items not only based on their relevance to a query but also on their novelty relative to already selected items. This approach encourages a broader coverage of topics or styles within the results. The library's core advantage lies in its efficiency, lightweight dependency on NumPy, and a clear, unified interface for these distinct diversification techniques.
Quick Start & Requirements
pip install pyversityHighlighted Details
n.diversity parameter (0.0 to 1.0) allows tuning the trade-off between relevance and diversity.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
3 weeks ago
Inactive