Repository navigation
fix(code): name the default embedder and demote catalog noise (#1504) - #1603
Merged
Merged
Conversation
Field report #1504: hybrid/semantic said "vector over N of M" and the caller guessed the vectors were neural. The default embedder is lexical feature-hashing. The mode line now says that, and names --embed-mode neural, only when a vector leg actually ran. It does not claim the running node is on the default — the client cannot see the flag. The same report: lang/*.php catalogs, values*/strings.xml, *.lproj strings, gettext, and minified bundles outranked the implementing file. Those paths stay in the result, stable-partitioned behind every other hit, so a fetched source file fills the page first. A page that is only catalogs keeps its order. Co-authored-by: xerj-org <xerj-org@users.noreply.github.com>
|
Thanks for this contribution — we'd like to merge it. Before we can, we need a signed Contributor License Agreement from: @cursoragent It is a one-time thing per contributor, not per pull request. Read CLA.md, then open a small pull request adding your GitHub username to Once it is merged, comment |
Owner
Author
|
@cla-bot check |
|
Re-checking the CLA status for every commit author on this pull request… |
This was referenced Oct 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes, and why
Field report #1504, two of the suggestions that are still open after #1508 (per-line journalctl and vsftpd records).
The vector leg did not say which embedder it was.
xerj code --mode hybridand--mode semanticprintvector over N of M. The default embedder is lexical feature-hashing. A caller who read that line guessed neural. When a vector leg actually ran, the mode line now continues:It does not claim the running node is on that default. The client cannot see
--embed-mode. BM25-only notes are unchanged.Translation catalogs and minified bundles outranked the implementing file.
lang/*.php,values/values-*/strings.xml,*.lproj/*.strings,*.po/*.pot, and*.min.js/*.min.mjs/*.min.cssare stable-partitioned behind every other hit before the per-file and per-index caps. They stay in the result. A page that is only catalogs keeps its order. A PHP service file outsidelang/is not treated as a catalog.Not in this PR: suggestion 2 (a defs boost or
--code-only— that moves the measured BM25 ranking) and suggestion 5 (phrase-first log queries — that changesmatchsemantics the ES-YAML suite pins). Suggestion 4 landed in #1508.Evidence
New tests:
semantic_mode_names_the_default_embedder_and_bm25_does_not(semantic note containslexical feature-hashingand--embed-mode neural; the BM25 answer does not) andcatalog_and_minified_hits_rank_behind_source(the implementing.kt, a service.php, and a doc fill a k=3 page ahead oflang/en.php,jssip.min.js,values-da/strings.xml,Localizable.strings, and gettext). The existing hybrid assertions still match: the hint is appended after thevector over N of Mtext they already check.Checks
cargo +1.97.1 fmt --all -- --check--profile quickcargo +1.97.1 test --profile quick -p xerj-common --lib -- xccode::— 84 passedcargo +1.97.1 clippy --profile quick -p xerj-common --all-targets -- -D warnings— cleanNot run: a release-profile build; a live
xerj codeagainst the AiPBX corpus from the report (the demotion is unit-tested on those path shapes).Provenance
xccode::run, clippy-D warningsonxerj-common.--embed-mode neuralis set; the mode line would be wrong if that default changed and this string did not.Refs #1504