Prepare traceable passages from source documents
Parse by format, remove noise and persist stable, permission-aware chunk records.
Prepare traceable passages from source documents
Work through the decision
A retrieval index contains hundreds of nearly identical pages titled “Operations Manual.” Search finds the footer repeatedly while the exception clause appears on a separate page. What should change before choosing a larger model?
Check your reasoning
Compare the parser’s output with the rendered PDF. Separate repeated headers and footers from meaningful labels, preserve heading hierarchy and table units, and keep each exception linked to its rule. Preserve document, revision, location and access metadata in the governed chunk table.
Compare the choices
- Format-aware parsing
- Choose a parser or OCR approach appropriate to source format and validate reading order, tables and lost characters.
- Boilerplate filtering
- Remove repeated noninformative material after confirming it carries no meaningful conditions. Preserve source offsets or other citation metadata.
- Structure-aware chunking
- Split at meaningful headings, clauses or units while respecting token budgets. Keep closely related exceptions and context together.
- Governed Delta chunk table
- Persist stable keys, text, document revision, provenance and access metadata. Support refresh, deletion and reproducible evaluation.
Test the decision
Use a held-out question with an exception and a question whose answer appears in a table. Inspect the text and citations both after parsing and after chunking. If the evidence is absent at either stage, prompt tuning cannot restore it.
Practice the guide skills
- Choose document chunk boundaries for manuals with conditional exceptions. Watch 21:37 · Continue at 22:45
Check your answer
Preserve headings, clauses, neighboring exceptions and source IDs. Check the embedding model’s token limit and the generation context budget, then measure retrieval on questions that span a boundary.
- Repeated headers dominate search results. Watch 18:03
Check your answer
Remove verified boilerplate and navigation after parsing, while retaining headings, units and qualifying conditions. Recheck both the cleaned text and the cited source offsets.
- Select a Python parser for selectable PDFs, scans and HTML pages. Watch 17:09
Check your answer
Use a text-capable PDF parser such as pypdf for embedded text, an OCR pipeline for image-only pages and an HTML parser for structured pages. Verify tables, reading order and encoding on samples.
- Keep chunks traceable across document revisions. Watch 25:09 · Continue at 25:34
Check your answer
Land originals, parse and normalize, split into stable chunk IDs, then persist text, document ID, version, location and access metadata in a governed Delta table. Plan how updates and deleted passages reach the index.
Official objectives for this lesson
Related lesson · Data sources
Prepare traceable passages from source documents quiz
Answer 3 questions. Check each answer for an explanation.