You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
design(atlas): chunk-boundary policy v2 — structural-first splitting per source type #6037
RAG chunking evidence: fixed-size 256–512 tokens with 10–20% overlap is the baseline, but structural splitting (markdown headings, code definitions, log-entry boundaries) beats fixed and semantic splitting on technical corpora — authors already segmented the text. Recursive (paragraph→sentence→token) is the strong cheap default; semantic chunking costs an extra embedding pass, over-fragments, and benchmarks below recursive in comparison guides. Overlap past ~20% is mostly waste (index inflation + near-duplicate hits deduped at retrieval anyway). Sources: https://dev.to/dishant_sethi/rag-pipeline-chunking-strategies-split-documents-for-better-retrieval-aoe
Overlap defaults per type (structural boundaries need less), and how policy interacts with span reuse (a policy change re-chunks → which spans survive?).
Done looks like
A policy table per source type with splitter, size targets, overlap, and the migration note for existing chunks.
Not already done: the atlas search crate exists on main (pkgs/atlas-search/), but no chunk-boundary policy v2 doc or per-source-type policy table was found in the repo — chunk search hits are generic/unrelated code. The research finding in the body (structural > fixed/semantic on technical corpora; recursive as cheap default; overlap past ~20% mostly waste) has not been turned into a policy yet.
Input verified present: the cited research source ~/workspace/scratch/atlas-ingestion-brief-2026-11-04/prior-art-research.md exists in the workspace, with its statement inventory and wave-2 map alongside.
Scoped deliverable (single design pass): the policy table the body asks for — per source type (markdown/docs by headings, code by definition boundaries, logs by entry boundaries, chat/session stores by message/turn boundaries, fixed-window fallback) with splitter, size targets, overlap defaults (lower at structural boundaries), plus the migration note for existing chunks. Done = that table recorded on this issue or in a doc/ record linked from it.
Decision: split by authored structure first (headings/paragraphs, code definitions, log records, and chat turns), aiming for 256–512 embedder tokens (aim 384, cap 512). Structural splitters use a 0–5% whole-unit overlap cap; the unstructured fixed-window fallback uses 10%. Do not default above 20%. The 10% fixed-window value is supported by #6039's experiment (200-word fixed windows, BM25, provisional golden set); 20% added about 12% index/embed cost over 10% without measured coverage gain. The lower structural cap, and code/chat size/overlap values, are proposals pending source-specific evaluation.
Migration: keep current chunks immutable, build/evaluate a new generation before cutover, and do not assume old chunks/spans survive a policy change. #6038 supports vector reuse only when the full embedding-window text is byte-identical. Span identity, version anchoring, and old-to-new span mapping remain provisional pending open parent #6028 (and #6035); this record does not settle them.
The cited scratch research brief was unavailable; the qualitative prior-art finding is preserved from this issue's body, with measured claims taken from landed #6038/#6039 reports. No chunker code or live data was changed.
Triaged — already resolved: queue task 18429 (bulk-intake triage of issue #6037), Muse lane code-b, 2026-11-17.
Fresh verification this shift: issue #6037 OPEN with status/triaged (triage of record already exists; no status/needs-triage, no hard-stop labels). Its deliverable — the chunk-boundary policy v2 design record (per-source-type policy table, migration note, span-reuse flagged provisional against parent #6028) — was produced by task 13045 and landed in PR #7902, MERGED 2026-11-14T21:43:42Z. Parent issue #6028 is now CLOSED, so the provisional flag's gate has also resolved on its own track.
Verdict: the design work this issue asked for is done and merged; no follow-on packet is needed from this triage. Closing issue #6037 as completed with this evidence.
Activity
developing-today commentedon Nov 5, 2026
CODE-1702
dezren39 commentedon Nov 5, 2026
🤖 Agent note · done
Triage findings (verified fresh 2026-11-05)
pkgs/atlas-search/), but no chunk-boundary policy v2 doc or per-source-type policy table was found in the repo — chunk search hits are generic/unrelated code. The research finding in the body (structural > fixed/semantic on technical corpora; recursive as cheap default; overlap past ~20% mostly waste) has not been turned into a policy yet.~/workspace/scratch/atlas-ingestion-brief-2026-11-04/prior-art-research.mdexists in the workspace, with its statement inventory and wave-2 map alongside.doc/record linked from it.71 remaining items
dezren39 commentedon Nov 9, 2026
🤖 Agent note · design record added
The policy proposal is recorded in the dated design document and PR #7902.
Decision: split by authored structure first (headings/paragraphs, code definitions, log records, and chat turns), aiming for 256–512 embedder tokens (aim 384, cap 512). Structural splitters use a 0–5% whole-unit overlap cap; the unstructured fixed-window fallback uses 10%. Do not default above 20%. The 10% fixed-window value is supported by #6039's experiment (200-word fixed windows, BM25, provisional golden set); 20% added about 12% index/embed cost over 10% without measured coverage gain. The lower structural cap, and code/chat size/overlap values, are proposals pending source-specific evaluation.
Migration: keep current chunks immutable, build/evaluate a new generation before cutover, and do not assume old chunks/spans survive a policy change. #6038 supports vector reuse only when the full embedding-window text is byte-identical. Span identity, version anchoring, and old-to-new span mapping remain provisional pending open parent #6028 (and #6035); this record does not settle them.
The cited scratch research brief was unavailable; the qualitative prior-art finding is preserved from this issue's body, with measured claims taken from landed #6038/#6039 reports. No chunker code or live data was changed.
Merge pull request #7902 from developing-today/queue/13045-6037-atlas…
dezren39 commentedon Nov 17, 2026
Triaged — already resolved: queue task 18429 (bulk-intake triage of issue #6037), Muse lane code-b, 2026-11-17.
Fresh verification this shift: issue #6037 OPEN with
status/triaged(triage of record already exists; nostatus/needs-triage, no hard-stop labels). Its deliverable — the chunk-boundary policy v2 design record (per-source-type policy table, migration note, span-reuse flagged provisional against parent #6028) — was produced by task 13045 and landed in PR #7902, MERGED 2026-11-14T21:43:42Z. Parent issue #6028 is now CLOSED, so the provisional flag's gate has also resolved on its own track.Verdict: the design work this issue asked for is done and merged; no follow-on packet is needed from this triage. Closing issue #6037 as completed with this evidence.