Skip to content

fix(run-evals): match clipped forms to long forms in the stemmer (#660) - #734

Closed
ihsieh31 wants to merge 1 commit into
addyosmani:mainfrom
ihsieh31:fix-660-stemmer-clipped-forms
Closed

ihsieh31 wants to merge 1 commit into
addyosmani:mainfrom
ihsieh31:fix-660-stemmer-clipped-forms

Conversation

@ihsieh31

Copy link
Copy Markdown

A small alias map expands the shorthand developers write (auth, docs, config, deps, spec, impl, info, repo, env) to the long form before stripping, and -ation lands in the suffix list (and once more after the -s strip, for plural long forms), so a prompt in either register shares a term with the descriptions it ranks against.

Issue #660's table, before -> after, scored against all 25 skills:
Add authentication to our API endpoints #3 -> #6
Add auth to our API endpoints #21 -> #6
Our documentation is out of date #1 -> #1
Our docs are out of date #18 -> #1

Both registers now rank identically. Across all 143 trigger prompts in evals/cases, no positive prompt's rank-1 moved (91/91 still rank their skill first); the two negative prompts whose top-1 changed both route to the skill that owns them now. Verified with the CI gates: node scripts/run-evals.js --min-rank1 95 and node --test scripts/run-evals-test.js (57 tests).

…yosmani#660)

A small alias map expands the shorthand developers write (auth, docs,
config, deps, spec, impl, info, repo, env) to the long form before
stripping, and -ation lands in the suffix list (and once more after
the -s strip, for plural long forms), so a prompt in either register
shares a term with the descriptions it ranks against.

Issue addyosmani#660's table, before -> after, scored against all 25 skills:
  Add authentication to our API endpoints   addyosmani#3 -> addyosmani#6
  Add auth to our API endpoints            addyosmani#21 -> addyosmani#6
  Our documentation is out of date          addyosmani#1 -> addyosmani#1
  Our docs are out of date                 addyosmani#18 -> addyosmani#1

Both registers now rank identically. Across all 143 trigger prompts
in evals/cases, no positive prompt's rank-1 moved (91/91 still rank
their skill first); the two negative prompts whose top-1 changed both
route to the skill that owns them now. Verified with the CI gates:
node scripts/run-evals.js --min-rank1 95 and node --test
scripts/run-evals-test.js (57 tests).
@addyosmani

Copy link
Copy Markdown
Owner

Thanks for this. #668 tackled #660 first and just merged with the same alias-map approach, so I'm closing this as superseded. If a clipped form you listed (spec, impl, env) still misroutes on main, a PR adding that entry plus an eval case is welcome.

@addyosmani addyosmani closed this Oct 29, 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.

2 participants