Repository navigation
Add BEAM memory benchmarks and improve ingestion and retrieval - #3219
Merged
Hillary Mutisya (hillary-mutisya) merged 13 commits intoOct 24, 2026
Merged
Conversation
Add a TypeScript CLI and durable memory-service bridge for pinned datasets, isolated imports, scoring, resumable runs, and explicit question-failure reporting. Enforce lossless document chunking within extraction and embedding token budgets, reject oversized embedding inputs and content-filtered responses, and skip empty semantic terms. Include offline regression coverage and runbooks.
Reconcile token-safe imports and BEAM benchmarking with upstream durable extraction, embedding windows, and timing instrumentation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Coalesce and defer autonomous maintenance, support bounded bulk publication and committed-revision recovery, bound candidate work, and reuse query embeddings within requests. Record processing policy and preserve cold-ingestion timings across benchmark resumes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Partition hosted index embedding work into ordered 8K-token subbatches. Match the outer embedding deadline to the hosted 180-second request budget so Azure 60-second quota waits do not spawn overlapping retries. Correct character-limit forwarding and add deadline, token-bound and cardinality regressions. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Report target failures without blocking family continuation, keep unresolved outcomes visible, and preserve existing infrastructure failure and retry limits. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Balance query coverage across sources and retrieve adjacent conversation turns for ordering questions. Add one scoped, bounded refinement round for missing evidence, merging nonoverlapping fragments and preserving diagnostics. Strengthen grounded recommendation guidance and add regression coverage.
Integrate indexed retrieval coverage, conversation-neighbor context, and bounded answer refinement while retaining latency and maintenance fixes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Integrate local Nemotron speech recognition and regenerate the pnpm lockfile from merged workspace manifests, retaining memory benchmark dependencies and retrieval improvements. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Load production token validation and batching dependencies in the source-level timing test, compare returned vectors by value, and cover oversized input rejection before provider work. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Drain maintenance before privacy checks enumerate segment files so deferred reclamation cannot race the filesystem assertions. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Recycle the single memory-service Jest worker after its idle heap exceeds 1 GB to prevent accumulated ESM state from exhausting Node 22 heap and causing late-suite timeouts. Keep local defaults and test timeouts unchanged, and verify the package-specific CI configuration. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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
Adds reproducible BEAM evaluation against the durable memory service and addresses ingestion, background-maintenance and retrieval issues encountered when processing long conversations.
This is not a benchmark-only change: the token-safety, scheduling and indexed-answer improvements also apply to production memory clients.
Changes
1. TypeScript BEAM evaluation
2. Token-safe long-document ingestion
3. Coalesced maintenance and bounded ingestion publication
4. Retrieval efficiency and indexed-answer coverage
noAnswer: at most two focused searches, retaining the original source scope, temporal context and request budget.Behavior and compatibility notes
Validation
main.Benchmark limitation: that live replay used commit
0b8232a6d, before the latest indexed-answer refinements. It is not a score for the final merged HEAD. Maintenance was deferred rather than drained, and the complete cross-tier/provider matrix has not been run.