Skip to content

perf(memory): remove structured identifier matching - #1227

Merged
dcramer merged 1 commit into
mainfrom
codex/remove-memory-identifier-matching
Aug 4, 2026
Merged

dcramer merged 1 commit into
mainfrom
codex/remove-memory-identifier-matching

Conversation

@dcramer

@dcramer dcramer commented Aug 4, 2026

Copy link
Copy Markdown
Member

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.

@vercel

vercel Bot commented Aug 4, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview Aug 4, 2026 5:43pm

Request Review

@dcramer
dcramer marked this pull request as ready for review August 4, 2026 17:44
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Aug 4, 2026
@dcramer
dcramer merged commit dc5f67c into main Aug 4, 2026
32 checks passed
@dcramer
dcramer deleted the codex/remove-memory-identifier-matching branch August 4, 2026 17:48
@dcramer

dcramer commented Aug 4, 2026

Copy link
Copy Markdown
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

1 active deployment
Preview – junior-docs — 9a2c00c2 Deployed Aug 4, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant