Skip to content

Fix: Rust cosine metric docstring#734

Open
l1x wants to merge 1 commit intounum-cloud:mainfrom
l1x:fix/rust-cosine-docstring
Open

Fix: Rust cosine metric docstring#734
l1x wants to merge 1 commit intounum-cloud:mainfrom
l1x:fix/rust-cosine-docstring

Conversation

@l1x
Copy link
Copy Markdown

@l1x l1x commented Mar 22, 2026

Summary

  • Corrected "Cosine Similarity" to "Cosine Distance" in the Rust MetricKind::Cos docstring to match the actual formula
  • Fixed mismatched parentheses in the formula: each sqrt now has its own closing paren

Test plan

  • Verify cargo doc renders the formula correctly
  • No code changes, docstring-only fix

🤖 Generated with Claude Code

Correct "Cosine Similarity" to "Cosine Distance" and fix mismatched
parentheses in the formula.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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