Skip to content

fix(metrics): raise position-factor support to 20 mentioned answers - #585

Merged
gkhngyk merged 1 commit into
mainfrom
fix/position-support-20
Aug 3, 2026
Merged

gkhngyk merged 1 commit into
mainfrom
fix/position-support-20

Conversation

@gkhngyk

@gkhngyk gkhngyk commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Calibration follow-up to #584. At POSITION_SUPPORT_ANSWERS = 10, a competitor named first in 6 answers (24h score 5.9) still edged out one mentioned 25 times in mid positions (5.5) — presence should win that comparison.

Raise the support constant to 20 (position term reaches half strength at 20 mentioned answers):

  • The 24h ordering flips to match actual visibility: the 25-mention entity (4.5) now ranks above the 6-mention one (3.7).
  • High-volume entities remain untouched — a 445-mention competitor moves 29.7 → 29.6.
  • One constant in both score-module mirrors; test expectations updated.

Related issue

Follow-up to #584 (customer report, no tracked issue).

Type of change

  • fix — Bug fix

How to test

  1. On the 24h Insights view, competitors with a handful of first-place mentions rank below competitors that are mentioned several times more often in mid positions.
  2. Top-of-leaderboard scores are visually unchanged.
  3. yarn test (web) and yarn vitest run (server) pass.

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/)
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR

At K=10 a competitor named first in 6 answers (score 5.9) still edged
out one mentioned 25 times in mid positions (5.5) on the 24h view —
presence should win that comparison. Half strength now requires 20
mentioned answers; the 24h ordering flips to match actual visibility
(25-mention entity 4.5 > 6-mention entity 3.7) while high-volume
entities stay untouched (a 445-mention competitor moves 29.7 → 29.6).
@gkhngyk
gkhngyk merged commit 14cfb35 into main Aug 3, 2026
5 checks passed
@gkhngyk
gkhngyk deleted the fix/position-support-20 branch August 3, 2026 07:47
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