Skip to content

Deduplicate RAG chunks across embedding batches - #4

Merged
Soundcreates merged 8 commits into
mainfrom
codex/rag-cross-batch-dedup
Oct 2, 2026
Merged

Soundcreates merged 8 commits into
mainfrom
codex/rag-cross-batch-dedup

Conversation

@Soundcreates

@Soundcreates Soundcreates commented Oct 1, 2026 •

Copy link
Copy Markdown
Owner

Change

Deduplicate normalized document content across Chroma ingestion batches while bounding the cross-batch fingerprint set.

Verification

  • Regression tests cover duplicate chunks spanning two 100-document batches and the configured signature cap.
  • Synthetic 100,000-chunk benchmark with 50,000 repeated documents: Chroma inputs fell from 100,000 to 50,000 (50% fewer); batches remained capped at 100 documents and the cross-batch signature set at 50,000.
  • tracemalloc peak was 9.55 MiB of traced auxiliary allocation, excluding the preloaded input corpus.

The benchmark uses a fake vector collection and prebuilt input documents; it measures deduplication-path allocations and submissions, not real embedding/network latency or production OOM rates. Beyond the signature cap, deduplication remains batch-local.

@vercel

vercel Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
curriculum-os Ready Ready Preview Oct 1, 2026 7:14pm UTC

@Soundcreates
Soundcreates marked this pull request as ready for review October 2, 2026 15:09
@Soundcreates
Soundcreates merged commit 93d1e16 into main Oct 2, 2026
6 checks passed

This branch was successfully deployed

1 active deployment
Preview — 1b8b60ca Deployed Oct 1, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant