Skip to content

fix: reject out-of-range embedding-similarity thresholds - #43

Merged
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
sharadvc:cursor/fix-embedding-threshold-e6f4
Sep 12, 2026
Merged

royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
sharadvc:cursor/fix-embedding-threshold-e6f4

Conversation

@sharadvc

Copy link
Copy Markdown
Contributor

Summary

The embedding-similarity scorer now rejects invalid threshold values (NaN, negative, or above 1) instead of silently mis-scoring.

Test plan

  • npm test — covers NaN, negative, and above-1 thresholds

Fixes #34

Fixes AgentPostmortem#34

Co-authored-by: Sharad. <sharadvc@users.noreply.github.com>
@royalpinto007
royalpinto007 merged commit 611f4fc into AgentPostmortem:main Sep 12, 2026
9 checks passed
@github-actions

Copy link
Copy Markdown

Merged, @sharadvc. Thank you for taking the time.

Evalgate gets better every time someone outside the repo digs in like this.

If you find Evalgate useful, consider dropping a star. It helps more people find it.

Happy to see more from you whenever you have the time.

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.

embedding-similarity accepts out-of-range threshold

2 participants