Repository navigation
perf(memory): remove structured identifier matching - #1227
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Member
Author
|
this is entirely done out of perf. im not sure we need it, and if we do we're gonna have to build a search index which i dont wanna do. |
This branch was successfully deployed
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.
Memory search now ranks lexical candidates solely through the existing indexed PostgreSQL full-text path and fuses them with vector candidates using the existing reciprocal-rank fusion. This removes the exact structured-identifier priority, including the per-memory tokenization and cross-product over every identifier in the query that made long session-extraction searches disproportionately expensive.
This intentionally returns retrieval to the simpler hybrid-search contract; automatic recall still uses the memory-owned relevance model to admit directly useful candidates. There is no schema migration or compatibility path. In the local reproduction with 261 identifiers, removing the matcher reduced the lexical query portion from roughly 596 ms to 21 ms per 1,000 candidate rows. The full memory package suite, package typecheck and lint, and the repository pre-push policy checks pass.