Commit 5867797
committed
fix(search): nobody types the sigil, so lastSeg should not require it
`lte` ranked 27th for `FilterInput.$lte` behind 26 titles that merely contain
those three letters inside aLTErnative and fiLTEr: /compare/ at 700,
FilteredChannels 565, FILTER_OPS 550, against the target's 438. The same shape as
"rate" leading with generate_client.
The cause was not the matcher. W.lastSeg exists for exactly this query — "send"
for RedisQueue.send, 700 points, the strongest applicable signal — but the last
segment of `filterinput.$lte` folds to `$lte`, which never equals `lte`. The
record fell through to W.substring at 320 and lost to containment. The sigil is
TypeScript's, not the reader's. Comparing sigil-insensitively covers `$lte`,
`$gte`, `$in` and `_default`: 77 of 1,152 API records have a sigil-prefixed last
segment.
Two grading attempts came first and are recorded because both looked right and
neither worked. Grading scanFor so `\blte\b` outscores `[a-z]lte[a-z]` moved it
only 27 -> 14 and cost natural macro 0.1. Grading W.substring the same way did
nothing at all: `direct` is a Math.max over the element score, and for a long
title the element score already exceeds 320, so the substring weight was never
what decided it. The lever was a signal that was missing, not one that was
mis-weighted.
master after
recall@6 (agents) 97.2% 99.5%
regressions vs MCP 69 0
natural micro/macro 94.0/88.9 94.0/88.9 0 queries better, 0 worse
artificial 89.9/94.5 91.2/95.4 376 better, 1 worse
artificial #1 exact 73.8% 77.6%
Zero: the site ranker now matches or beats rankEntries on every one of the 3,657
agent-shaped queries.
One judgement call for review: "default" now returns async-logger's `_default`
first, which the user previously said was less useful than what it returned
before. No natural query moved, so nothing real regressed, but the behaviour is
deliberate and worth a second opinion.1 parent 9ef7619 commit 5867797
1 file changed
Lines changed: 11 additions & 1 deletion
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
415 | 420 | | |
416 | 421 | | |
417 | 422 | | |
| |||
875 | 880 | | |
876 | 881 | | |
877 | 882 | | |
878 | | - | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
879 | 889 | | |
880 | 890 | | |
881 | 891 | | |
| |||
0 commit comments