Skip to content

feat: add search --intent pre-filter buckets - #252

Merged
hurttlocker merged 1 commit into
mainfrom
xmate/search-intent
Feb 27, 2026
Merged

hurttlocker merged 1 commit into
mainfrom
xmate/search-intent

Conversation

@hurttlocker

Copy link
Copy Markdown
Owner

Implements #251.

What shipped

  • Added new search intent bucket option in core search engine:
    • intent=memory|import|connector|all
    • validation via normalizeIntent(...)
  • Added intent pre-filtering before metadata/class/ranking stages in Engine.Search.
  • Added source classification helper for memory sources.
  • CLI support:
    • cortex search "query" --intent <memory|import|connector|all>
    • defaults to all.
  • MCP support:
    • Added intent enum parameter to cortex_search and wires to search options.
  • Added tests:
    • internal/search/intent_test.go for intent normalization and filtering behavior.

Notes

  • This is a convenience wrapper that filters source buckets before scoring.
  • Existing --source and --source-boost behavior remains intact.

Validation

  • go test ./... ✅

@hurttlocker
hurttlocker merged commit ccdd48d into main Feb 27, 2026
4 checks passed
@hurttlocker hurttlocker mentioned this pull request Feb 27, 2026
6 of 9 tasks
@hurttlocker
hurttlocker deleted the xmate/search-intent 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