Repository navigation
Speed up recall and upgrade knowledge building to GPT-6 Luna - #8
Merged
Merged
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.
Recall now runs the existing MiniLM model through ONNX and fetches concept/evidence bundles in batches. This removes PyTorch/Sentence Transformers startup and repeated graph reads while retaining synthesis and retrieval limits. Upgrades prepare and verify pinned model files; recall loads them lazily and stays offline.
Measured on the production code across eight queries × three paired repeats:
Production won 24/24 pairs, with no failures or timeouts. All pairs retained the same ordered memories and complete synthesis content; only anchor order changed to become deterministic. These timings include process startup but exclude external synthesis and background sync.
Latency validation: 672 tests passed locally and in Linux CI; macOS packaging passed. Numerical checks preserved tokenization on 144 inputs and sampled top-10 rankings for all eight queries. Tests cover repo isolation, shared relations, cross-type evidence IDs, lifecycle history, and upgrade failure readiness. The old backend and version helpers are removed; stale README assertions now match main.
The knowledge builder now uses
gpt-6-lunawith its existingxhighreasoning and Fast service tier. The model switch passes all 27 focused configuration and Codex adapter tests.