Skip to content

fix: apply similarity threshold on raw cosine before normalization - #22

Merged
malekhavasi merged 3 commits into
devfrom
fix-similarity
Sep 8, 2026
Merged

fix: apply similarity threshold on raw cosine before normalization#22
malekhavasi merged 3 commits into
devfrom
fix-similarity

Conversation

@yugalkaushik

@yugalkaushik yugalkaushik commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator
  • The similarity threshold is now checked on the raw cosine score before normalization, so normalization can no longer stretch a weak pair to 1.0 and let it pass. Floor, normalize, and tag/link/temporal bonuses are kept, but they only rank pairs that already passed.
  • Replaces absolute similarity threshold with a relative cutoff
  • Keeps SEMANTIC_FLOOR (0.3) as absolute guard for tiny vaults

Comment thread src/services/similarity/ThresholdPresets.ts
@yugalkaushik
yugalkaushik changed the base branch from master to dev September 8, 2026 17:44
@malekhavasi
malekhavasi merged commit 76746fa into dev Sep 8, 2026
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.

3 participants