Skip to content

Clarify /search similarity score wording#232

Merged
user1303836 merged 2 commits intomainfrom
codex/search-score-ui
Mar 8, 2026
Merged

Clarify /search similarity score wording#232
user1303836 merged 2 commits intomainfrom
codex/search-score-ui

Conversation

@user1303836
Copy link
Owner

Summary

  • stop presenting raw zvec scores as percentages in /search
  • label the value as a similarity score instead
  • add a targeted test to lock the wording down

Testing

  • PYTHONPATH=/Users/user1303836/Development/intelstream-codex-search-score-ui/src /Users/user1303836/Development/intelstream/.venv/bin/pytest tests/test_discord/test_search.py -q
  • /Users/user1303836/Development/intelstream/.venv/bin/ruff check src/intelstream/discord/cogs/search.py tests/test_discord/test_search.py
  • /Users/user1303836/Development/intelstream/.venv/bin/ruff format --check src/intelstream/discord/cogs/search.py tests/test_discord/test_search.py

Closes #230

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

Copy link
Owner Author

@user1303836 user1303836 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review

Overall

Clean, minimal, correct change.

The old display was misleading -- zvec cosine similarity scores aren't percentages and can vary outside 0-1 depending on the metric. Showing the raw score with a clear "Similarity score" label is more honest.

Test coverage is good: asserts both the positive case ("Similarity score: 0.95" present) and negative case ("Relevance:" absent).

CI

Lint failure is pre-existing (same 7 unrelated files on main). Tests and type checks pass.

Verdict

Ship it.

@user1303836 user1303836 merged commit 641919b into main Mar 8, 2026
4 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.

[P3] Stop presenting raw zvec scores as percentage relevance

1 participant