Skip to content

Inverted index - #41

Merged
johnlees merged 31 commits into
mainfrom
johanna_dev
Apr 4, 2025
Merged

johnlees merged 31 commits into
mainfrom
johanna_dev

Conversation

@johnlees

@johnlees johnlees commented Mar 26, 2025 •

Copy link
Copy Markdown
Member

Adds an inverted subcommand which stores hashes as dictionary keys, and samples they are present in as a bitvector. Adds support for info on this file.

First step towards #21. Next steps:

  • Add queries/distances against this index
  • Make a full two-step distance command which does inverted queries first, then full queries

TODO:

  • Add tests
  • Add a function for number of bins which deals with sketch size, bbits, inverted etc

@codecov

codecov Bot commented Mar 26, 2025 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 88.50267% with 43 lines in your changes missing coverage. Please review.

Project coverage is 70.11%. Comparing base (5bc9c40) to head (d2838ab).
Report is 32 commits behind head on main.

Files with missing lines Patch % Lines
src/inverted.rs 89.44% 17 Missing ⚠️
src/io.rs 87.34% 10 Missing ⚠️
src/cli.rs 50.00% 7 Missing ⚠️
src/lib.rs 93.84% 4 Missing ⚠️
src/multisketch.rs 75.00% 4 Missing ⚠️
src/jaccard.rs 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #41      +/-   ##
==========================================
+ Coverage   67.36%   70.11%   +2.75%     
==========================================
  Files          15       16       +1     
  Lines        1921     2252     +331     
==========================================
+ Hits         1294     1579     +285     
- Misses        627      673      +46     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread src/multisketch.rs Resolved
Comment thread src/sketch.rs Resolved
Comment thread src/sketch.rs Resolved
Comment thread src/sketch.rs Resolved
Comment thread src/sketch.rs Resolved
Comment thread tests/inverted.rs Resolved
Comment thread src/sketch.rs Resolved
Comment thread src/sketch.rs Resolved
@johnlees
johnlees marked this pull request as ready for review April 1, 2025 09:57
@johnlees
johnlees merged commit d5311f1 into main Apr 4, 2025
@johnlees
johnlees deleted the johanna_dev branch April 4, 2025 15:42
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.

2 participants