Latest / AI & agents

Pyversity

github.com · Package · Active

Python library that diversifies retrieval results to reduce redundancy

Visit github.com ↗Share

  • reranking
  • search result diversity
  • mmr reranking python
  • retrieval diversification
  • rag diversity
Stars
504
Forks
26
Open issues
1
Last commit
Releases
3
Found
13 months ago

GitHub figures as of . They are context, not a ranking.

Pyversity is a lightweight Python library that re-ranks search or retrieval results to balance relevance against redundancy. It offers one diversify function covering MMR, MSD, DPP and COVER, with NumPy as its only dependency. It suits retrieval, recommendation and RAG pipelines.

Repository description on GitHub: “Fast Diversification for Search & Retrieval”

What it does

  • Diversifies ranked results with MMR, MSD, DPP and COVER methods
  • One diversify function with NumPy as its only dependency
  • Balances relevance against redundancy when re-ranking

Good for

  • Re-rank search results to reduce near-duplicate items
  • Diversify retrieved chunks before sending them to a model

Suits: Developers building search, recommendation or RAG pipelines.

What you can try

Read the README on GitHub and install from source.

Install

pip install pyversity

Confirmed against the package registry. Read the project’s own instructions before running anything.

Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.

Found vs. released

Kip first saw Pyversity on , when Tananon posted it to Show HN. The oldest published release on GitHub is v0.1.0, dated . Pyversity had been shipping tagged releases for 8 days before it was found. 3 releases have been published in total; the latest is v0.2.0 ().

Day-7 and day-30 updates

Day 7 no new release

  • No tagged release was published in the first 7 days after it was found (GitHub release dates).
  • Show HN discussion at check time: 86 points, 11 comments. API record

Checked , later than day 7 because tracking began after.

Day 30 1 release shipped

  • 1 release in the first 30 days: v0.1.1 (17 Nov 2025)
  • Show HN discussion at check time: 86 points, 11 comments. API record

Checked , later than day 30 because tracking began after.

Release timeline every entry links to its source

Releases per month, last 24 months (3 in total, busiest month 1).
  1. Repository created on GitHub: Pringled/pyversity
  2. Release v0.1.0
  3. Found: Tananon posted it to Show HN. Show HN
  4. Release v0.1.1
  5. Release v0.2.0
  6. Day-7 check recorded by Kip (details)
  7. Day-30 check recorded by Kip (details)

Quick answers

When was Pyversity released?
Its first tagged release on GitHub is dated 11 Oct 2025. Kip found it on Show HN on 19 Oct 2025.
Is Pyversity open source?
Its source is public on GitHub at Pringled/pyversity under the MIT licence.
What does Pyversity run on?
Library.
Is Pyversity free?
It is open source, so the code is free to read and run; check the licence for terms.
Is Pyversity still maintained?
Yes. It had a commit or release in the last 90 days as of the latest check.

Provenance

SourceRecordLast checked
Show HNlisting
official API record
GitHub repositoryPringled/pyversity
REST API record
GitHub Releasesrelease list
REST API record

Stable ID hn-45634310. Summary written by KipFound’s editor.

Share

Similar tools

More in AI & agents

Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.