Skip to content

feat: update Shimmer's document formula - #430

Merged
Pringled merged 5 commits into
mainfrom
add-sparse-pool-exponent
Dec 5, 2026
Merged

Pringled merged 5 commits into
mainfrom
add-sparse-pool-exponent

Conversation

@Pringled

@Pringled Pringled commented Dec 5, 2026

Copy link
Copy Markdown
Member

This PR updates the sparse document formula for Shimmer. Summed codes are now raised to 0.7 instead of square-rooted, and a document's length is the sum of its tokens' own code values instead of its token count, so frequent tokens with small codes count for less. Results:

Shimmer (old) Shimmer (new)
BEIR-15 42.3 43.0
Decon-BEIR 50.0 50.9
RTEB(eng, beta) 39.3 39.5

@Pringled
Pringled requested a review from stephantul December 5, 2026 10:47
@greptile-apps

greptile-apps Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5RetriggerView in Greptile

[Medium impact] The PR appears safe to merge; the previous pickle compatibility issue is fixed.

Reviews (3) · Last reviewed commit: "fix: rebuild the code diagonal when unpi..." · Reviewed by Greptile

Comment thread model2vec/sparse.py Resolved
@codecov

codecov Bot commented Dec 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
model2vec/sparse.py 100.00% <100.00%> (ø)
model2vec/version.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread model2vec/sparse.py Resolved
@Pringled
Pringled merged commit a6fa396 into main Dec 5, 2026
14 checks passed
@Pringled
Pringled deleted the add-sparse-pool-exponent branch December 5, 2026 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant