Add semantic and hybrid modes to mail_search #44
Labels
No labels
bug
enhancement
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:go
svd:hold
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/mail-mind-mcp#44
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #9. Decision: ADR 0005 §6 and §8.
What to build
mail_searchgainsmode: Literal["keyword", "semantic", "hybrid"] = "keyword"andsimilar_to: message id | None.keywordis today's behaviour, unchanged.semanticranks the rows that pass the SQL filters by cosine similarity to the query vector.hybridmerges the FTS rank and the semantic rank by reciprocal rank fusion (k = 60) over the top 100 of each.similar_touses that message's stored vector as the query, excludes the message itself, and needs noquery.[embed], the semantic modes andsimilar_toanswerError: code=invalid_argumentwith a message that says embeddings are off.totalis the number of candidates that have a vector.[embed]config row. SECURITY.md says the query text stays on the host.config.example.tomlgets a commented[embed].syncandapimemory limits in the base rise by 256 Mi each.Acceptance
hybridreturns rows from both rankings, andsimilar_toexcludes its own message.Blocked by