Skip to content

feat(core): improve agentic retrieval quality and performance - #165

Merged
jb-thery merged 9 commits into
mainfrom
release/agentic-rag-performance
Aug 19, 2026
Merged

feat(core): improve agentic retrieval quality and performance#165
jb-thery merged 9 commits into
mainfrom
release/agentic-rag-performance

Conversation

@jb-thery

Copy link
Copy Markdown
Member

Release highlights:

  • Diversify scored retrieval results by document while overfetching to preserve the requested result count.
  • Stabilize compound-identifier lexical ranking and retain fuzzy backfill for misspelled identifiers.
  • Accelerate local-hash retrieval and make lexical fallback cover corpora beyond 10,000 chunks.

Release details:

  • Apply shared diversity behavior to CLI search, MCP search, ask, research, and evaluation surfaces.
  • Preserve context radius, path filtering, explanations, compact MCP output, and exact-path fallback behavior.
  • Make benchmark comparisons fail closed on incomplete or incompatible evidence.
  • Refresh compatible dependencies and align public documentation, setup guidance, and landing metadata.

Verification:

  • Run pnpm validate with 633 passing tests, builds, API checks, smokes, package checks, and release artifacts.
  • Run a strict 100-query local-hash quality benchmark with reproducible fingerprints and 100/100 hits.
  • Deploy and verify v4.2.0-rc.1 on https://staging.ragmir.jcode.works in English and French.

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
- Targeted research, diversity, and ranking tests: 20 passed
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
Release highlights:
- Keep compound-identifier retrieval deterministic when broad lexical matches saturate the FTS pool.

Release details:
- Require an exact identifier anchor before contextual scoring and retain fuzzy and broad backfill.
- Cover bounded exact candidates, typo recovery, and distractor-heavy retrieval.

Verification:
- Run the reproducible S local-hash quality benchmark with 100 of 100 cases passing.
- Run pnpm validate.
Release highlights:
- Keep lexical retrieval coverage reliable on constrained CI runners.

Release details:
- Reduce identifier and path fallback fixtures while preserving candidate-bound assertions.

Verification:
- Run the full Core coverage suite with 546 passing tests.
@jb-thery
jb-thery merged commit 12fe858 into main Aug 19, 2026
15 checks passed
@jb-thery
jb-thery deleted the release/agentic-rag-performance branch August 19, 2026 15:18
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 4.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant