feat(core): diversify and accelerate agentic retrieval - #162
Closed
jb-thery wants to merge 7 commits into
Closed
Conversation
Release highlights: - Keep supported dependencies current without raising the Node 22 runtime floor. Release details: - Upgrade TypeScript, html-to-text, Lucide, Commander, and Node type ranges conservatively. - Keep LanceDB and Arrow on their validated compatibility set and add HTML parsing coverage. Verification: - pnpm install --frozen-lockfile - pnpm check
Release highlights: - Keep the local TTS validation reliable on slower machines. Release details: - Extend the bounded readiness-marker wait without changing production behavior. Verification: - pnpm --filter @jcode.labs/ragmir-tts test -- src/index.test.ts
Release highlights: - Return trustworthy retrieval candidates faster, including when the FTS index is unavailable. Release details: - Cache local-hash features per call and overlap lexical and vector candidate acquisition. - Scan fallback rows in batches and preserve scored exact-path matches beyond the vector pool. Verification: - pnpm --filter @jcode.labs/ragmir test -- src/embeddings.test.ts src/query.test.ts - Core test suite: 55 files and 545 tests passed
Release highlights: - Use the top-k window for broader document evidence while still returning the requested count. Release details: - Apply a predictable per-document cap after ranking with non-overlapping backfill. - Reapply diversity after multi-query research fusion and preserve evidence span metadata. Verification: - pnpm --dir packages/ragmir-core exec vitest run src/research.test.ts - pnpm --dir packages/ragmir-core exec vitest run src/retrieval-diversity.test.ts src/ranking.test.ts
Release highlights: - Keep compact MCP answers lean and evaluation hits faithful to the requested top-k. Release details: - Avoid context hydration for compact MCP search and ask responses while retaining full mode. - Limit hit and citation matching to top-k while preserving independent recall-at-10 metrics. Verification: - pnpm --dir packages/ragmir-core exec vitest run src/evaluate.test.ts src/mcp.test.ts
Release highlights: - Prevent incomplete or ineligible benchmark reports from producing false quality passes. Release details: - Validate both runs, suite eligibility, workload identity, and bounded metric domains. - Separate measured fingerprints from workload identity and report fixed-cap document diversity. Verification: - pnpm --dir packages/ragmir-core exec vitest run src/benchmark-comparison.test.ts - Quality benchmark self-comparison passed with 22 required metrics
Release highlights: - Explain Ragmir as a private, bounded evidence layer for agentic RAG in English and French. Release details: - Align the setup prompt, READMEs, API limits, Context7 metadata, and machine-readable copy. - Correct localized canonical, hreflang, social metadata, and visible FAQ contracts. Verification: - pnpm --filter @jcode.labs/ragmir-landing test - pnpm public:smoke - Browser proof completed for English, French, and mobile layouts
Member
Author
|
Superseded by #163 to correct a commit-message line-length failure. The replacement branch has the identical Git tree and seven locally verified signed commits. |
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
Improve Ragmir retrieval quality and latency by diversifying the final evidence window, keeping lexical fallback available beyond 10,000 chunks, and removing avoidable context and embedding work. The public surface now presents Ragmir consistently as a private, bounded evidence layer for agentic RAG.
Changes
Added
Changed
Fixed
How to Test
pnpm validate.rgr search "<query>" --top-k 25and inspect unique documents in the first 10 results.Verification
pnpm validate: passed.