Skip to content

feat: source-boost search weighting controls - #244

Merged
hurttlocker merged 2 commits into
mainfrom
xmate/source-boost
Feb 27, 2026
Merged

hurttlocker merged 2 commits into
mainfrom
xmate/source-boost

Conversation

@hurttlocker

Copy link
Copy Markdown
Owner

Implements #242.

What changed

  • Added optional source boost support in search scoring:
    • New search.SourceBoost {prefix, weight}
    • Options.SourceBoosts for passing boosts into ranking
    • Boost is applied at source-weight stage and combined safely via max(weight) for overlapping matches
  • Added CLI support for repeatable source boosts:
    • --source-boost <prefix[:weight]>
    • default weight = 1.15
    • clamp range = 1.0 - 2.0
  • Added MCP support for structured boosts:
    • source_boosts: [{prefix, weight}]
  • Added explainability fields:
    • source_boost_multiplier
    • source_boost_prefix
  • Added verbose no-match warning in CLI when boosts are configured but no result matched.

Safety/behavior

  • No source-boost input => behavior remains unchanged.
  • Source boosting does not alter core retrieval mode/fusion logic.

Validation

  • go test ./... passes.

@hurttlocker
hurttlocker merged commit cc6b8a1 into main Feb 27, 2026
@hurttlocker hurttlocker mentioned this pull request Feb 27, 2026
6 of 9 tasks
@hurttlocker
hurttlocker deleted the xmate/source-boost branch March 1, 2026 17:09
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