feat: add opt-in Jev memory reranking - #704
Open
Koimiao-zz wants to merge 3 commits into
Open
Koimiao-zz wants to merge 3 commits into
Koimiao-zz wants to merge 3 commits into
Conversation
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.
Summary
JevRerankedMemoryBackendthat wraps the existing agentic memory backend without changingMemoryServiceor storage contracts/v1/systemonewith typed Noul questions to rerank retrieved memory candidatesMEMU_RETRIEVAL_RERANKER=jev; without that flag, current behavior is unchangedWhy this shape
The integration sits outside the current composition root and wraps
AgenticMemoryBackend, so it does not add an LLM/chat call toMemoryService, does not change any repository protocol, and requires no inmemory/sqlite/postgres migration. Scope filtering and candidate generation happen in memU before Jev receives candidates.Validation
POST https://api.typesafe.ai/v1/systemonereturned200 OKjev-1.13.0, 10 measured runs after 2 warmups, 5 candidates:ruff check .ruff format --check .deptry srcuv lock --lockedNotes
The live test remains credential-gated with
MEMU_RUN_LIVE_JEV=1plusTYPESAFE_API_KEY, so normal CI does not require a TypeSafe account. API credentials are never committed.