By Anant MishraDesign study
Six fictional chunks, three authored selection policies and fifteen local boundary assertions executed offline. No corpus, vector search, model output, relevance judgments, token consumption, latency or cost measurement.
Design feature 01
6 fictional chunks
Design feature 02
3 offline policies
Design feature 03
15 boundary checks
Executive Summary
An offline reference compares flat selection and two per-parent caps on six fictional chunks, preserving the distinction between source counts and answer evidence.
Architectural Deep Dive
Design study — authored candidates, offline selection only. This study compares flat selection with two per-parent caps on the same fictional candidate list. It asks how a three-chunk context limit changes the represented source identifiers. No model, vector database, retrieval service or client system was contacted. The byline is Anant Mishra.
The boundary being isolated
The candidate list contains six distinct chunk identifiers in an authored order: A1, A2, A3, B1, C1 and D1. The first three have parent DEMO-A; the remaining chunks have parents DEMO-B, DEMO-C and DEMO-D. These labels identify fictional objects. They establish neither relevant content nor independent sources, and no text passages or similarity scores are supplied.
The local reference treats list order as the selection order. It validates explicit chunk and parent strings, then scans candidates until it fills the overall chunk limit or exhausts the list. A per-parent cap, when enabled, limits how many selected chunks may share one parent. The program records selected identifiers and parent counts; it does not rank, rerank, deduplicate text or optimize evidence quality.
Primary-source context
Microsoft’s index-projection guide distinguishes a chunk’s search-document key from a parent association in one-to-many indexing. Qdrant’s v1.20.x query-groups reference describes payload grouping, group limits and maximum hits per group. Both sources were reviewed on 29 November 2026.
The local Python reference is not an implementation of either service. Qdrant’s group-limit semantics differ from this reference’s global three-chunk limit, and the API permits multiple grouping values for a point. The fixture instead requires exactly one nonempty parent string per chunk. Its stricter local contract keeps the worked example unambiguous without claiming feature equivalence or service compatibility.
Three authored policies and observed selections
With no per-parent cap, the three-slot policy selected A1, A2 and A3. All selected chunks belonged to DEMO-A, so the represented-parent count was one. This is expected software behavior on the supplied order, not evidence that a real retrieval system concentrates results incorrectly.
With a per-parent cap of one, the reference selected A1, B1 and C1. The global limit remained three chunks, while the represented-parent count became three. With a cap of two, the reference selected A1, A2 and B1, representing two parents. Each selection matched a hand-declared expected identifier list.
The different counts establish only that the policies selected different authored candidates. They do not show that the broader set supports a better answer. In particular, the one-per-parent policy excludes A2. If an actual question required A1 and A2 together, that exclusion would need review. No relevance labels, question judgments or answer-quality scores were collected in this study.
Reproduce the limited execution
Save the fictional fixture, Python reference and reproduction guide together. The actual execution record retains UTC run time, Python version, results, named boundary assertions and code/input hashes. The program uses the standard library and needs no credentials or network.
An independent local rerun compared results, boundary-check names and hashes with the retained record. Boundary assertions cover invalid limits and caps, duplicate chunk identifiers, missing or malformed parent associations, an empty candidate set and a zero overall limit. These assertions check the local software contract, not search-service behavior, permission enforcement or retrieval effectiveness.
Candidate depth is another boundary. If a production adapter supplies only A1, A2 and A3, a one-per-parent selector cannot discover B1 or C1 outside that supplied list. A named boundary assertion confirms that this restricted input yields only A1. An underfilled context must remain visible rather than being described as evidence that no other sources exist. Compare candidate generation and final context selection separately when planning an actual search experiment.
What a future RAG experiment needs
A useful evaluation would preserve authorized source/version identifiers and freeze the corpus, questions, retrieval configuration and candidate output. Apply alternative selection policies to the same candidates, then retain the rendered prompt and actual answer output. Review whether the evidence required by each question survived selection. Parent-count differences should be reported alongside those judgments rather than replacing them.
Measure actual context tokens and provider usage separately. This reference models chunk slots, not token lengths, prompt serialization, cache behavior, inference latency or monetary cost. It cannot establish savings from grouping. It also excludes access-control filters, content extraction, mutable source versions, multi-parent grouping, pagination and distributed execution.
Before operational use, document how missing parent metadata is handled and verify that version associations and permissions remain correct through selection. Different parent identifiers can represent copied material, so a higher count should not be described as independent corroboration. An accountable reviewer must determine what evidence is usable for the actual task.
Read the companion essay for the architecture decisions and the inference cost calculator for separate assumption-based arithmetic. The concrete deliverable is a reproducible selection reference with explicit limits. No database deployment, measured answer improvement, cost reduction, DGX experiment, peer review or scholarly release is claimed.
Proposed approach
- Scope
- Authored candidate order and local source caps
- Evidence
- Fixture, Python reference, actual execution record and hashes
Sources
- Query points groups — displayed v1.20.x — Qdrant; checked 29 November 2026
- Index projections for one-to-many indexing — Microsoft; checked 29 November 2026
Related reading
Read the publishing standards or suggest a correction.