Skip to content

Add with_top_k to CosineSimilarity#332

Merged
Mec-iS merged 14 commits intosmartcorelib:developmentfrom
tuned-org-uk:main
Oct 9, 2025
Merged

Add with_top_k to CosineSimilarity#332
Mec-iS merged 14 commits intosmartcorelib:developmentfrom
tuned-org-uk:main

Conversation

@Mec-iS
Copy link
Copy Markdown
Collaborator

@Mec-iS Mec-iS commented Oct 9, 2025

add with_top_k to CosineSimilarity to speed up computation limiting results to top-k rankings

Checklist

  • My branch is up-to-date with development branch.
  • Everything works and tested on latest stable Rust.
  • Coverage and Linting have been applied

Current behaviour

CosineSimilarity computes on all the pairs

New expected behaviour

CosineSimilarity computes only on the top-k pairs

@Mec-iS Mec-iS merged commit 63f86f7 into smartcorelib:development Oct 9, 2025
11 checks passed
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