Repository navigation
perf(retrieval): prune unused fact counts and reuse request embeddings - #542
Merged
Merged
Conversation
fazpu
marked this pull request as ready for review
November 6, 2026 23:25
fazpu
marked this pull request as draft
November 6, 2026 23:27
fazpu
marked this pull request as ready for review
November 6, 2026 23:52
This was referenced Nov 7, 2026
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.
Fact candidate queries spent about 12 seconds in SQL, and claims/sources embedded the identical question twice (combined three times). Retrieval now prunes unrequested evidence counts, checks entity provenance from bounded candidate IDs, follows indexed merge links in both directions, bounds final hydration and removes obsolete join-planner overrides, and embeds identical text once within a request.
Preserve source visibility, latest-unsuperseded decision order, merge/cycle/deployment semantics, temporal eligibility before truncation, final evidence counts and provider-call accounting. Remove the instance-wide vector shortcut. No ingestion generation, extraction key, embedding model/dimensions or document identity changes (D56). Normal setup publishes the changed manifest and revalidates saved SQL under the existing contract.
Validation on an isolated copy of the existing conv-47 store:
Sources: D142 search design, D91 metering design, query engine/operation executor, current and historical authority DDL, existing merge/deletion/temporal tests, archived diagnostic SQL and new RC1 measurements. Operational evidence and the subsequent separately saved conv-47 answer/judge replay are tracked in writeitai/ultimate-memory-cloud#783. The full benchmark remains paused. Autoboard checklist status could not be read because BOARD_API_KEY is not configured.