Engineering
Preserve document structure when chunking skill references
Keep headings, table meanings, and source locations attached to retrieved excerpts.
Splitting a reference into equal token blocks can detach a paragraph from the heading that explains its scope. A model may read an exception without seeing the rule it modifies. Structure-aware retrieval keeps the excerpts compact while carrying the context needed to use them.
Use meaningful boundaries
Split at headings, list groups, paragraph clusters, or table rows where possible. Store parent heading paths and version information with each excerpt. Attach nearby labels when they determine meaning. Limit overlap so identical sentences do not occupy every result slot or skew a ranking.
Handle structured evidence deliberately
A table row without column headers may become meaningless. A glossary term without its definition can be misleading. Preserve those relationships in the index or recover them during follow-up. Keep a path to reread a larger source span when the result needs more context.
Measure retrieved sufficiency
Test whether relevant excerpts include the necessary qualifiers, source positions, and applicable date. A top-ranked result should count as useful only when it supports the intended inference. Use diagnostic examples where a high-scoring excerpt is present but lacks the boundary that makes it accurate.