Voice & Audio Sesame Ends Its Free Preview: $20 a Month for Two Hours of Talk Time a Day, $100 for Ten Opinion 93% of Developers Have Merged AI Code They Did Not Fully Understand, and Only 13% of Teams Have a Plan for When It Breaks Coding Assistants Penn State Tested 5 Coding Agents Patch by Patch: 38% to 82% of Successful Runs Were Already Correct on the First Edit Microsoft Copilot Microsoft Will Turn Claude On by Default for Every UK Copilot Tenant on Dec. 9, and the Data Is Still Processed in the US Business SMIC's Revenue Jumps 34 Percent to $3.19 Billion as AI-Adjacent Chip Orders Push Its Fabs to 97.3 Percent Utilization Business SoftBank Leads $500 Million Into Agile Robots at an $8.5 Billion Valuation, With Nvidia and Hitachi in the Round News Claude Read 1,009 Pages of Gödel's Obsolete Shorthand in Days: 663 Theorems, About 400 Verified in Coq Security The FAA's $875 Million AI Air-Traffic Assistant Went Live at All 22 Centers. Three Days Later the Country Was Grounded. Voice & Audio Sesame Ends Its Free Preview: $20 a Month for Two Hours of Talk Time a Day, $100 for Ten Opinion 93% of Developers Have Merged AI Code They Did Not Fully Understand, and Only 13% of Teams Have a Plan for When It Breaks Coding Assistants Penn State Tested 5 Coding Agents Patch by Patch: 38% to 82% of Successful Runs Were Already Correct on the First Edit Microsoft Copilot Microsoft Will Turn Claude On by Default for Every UK Copilot Tenant on Dec. 9, and the Data Is Still Processed in the US Business SMIC's Revenue Jumps 34 Percent to $3.19 Billion as AI-Adjacent Chip Orders Push Its Fabs to 97.3 Percent Utilization Business SoftBank Leads $500 Million Into Agile Robots at an $8.5 Billion Valuation, With Nvidia and Hitachi in the Round News Claude Read 1,009 Pages of Gödel's Obsolete Shorthand in Days: 663 Theorems, About 400 Verified in Coq Security The FAA's $875 Million AI Air-Traffic Assistant Went Live at All 22 Centers. Three Days Later the Country Was Grounded.

Building a Retrieval Index for Your Own Documents

Building a Retrieval Index for Your Own Documents

Chunking strategy decides most of your answer quality. Here is a workable approach for PDFs, Markdown and web pages.

Retrieval systems live or die on how documents are split. Get chunking right and a modest model performs well; get it wrong and no amount of prompt tuning recovers it.

Chunking rules that work

  • Split on structure, not character count. Headings, list boundaries and paragraph breaks are natural units.
  • Keep headings with their content. Prefix each chunk with the heading path so a retrieved passage carries its context.
  • Overlap slightly. A small overlap prevents answers that straddle a boundary from being cut in half.
  • Never split a table. Convert it to a compact textual form or keep it whole, even if the chunk grows.

Choosing a size

Aim for chunks in the range of one to three paragraphs. Smaller chunks retrieve more precisely but lose surrounding explanation; larger chunks retrieve noise. Test both on your own question set — the right answer depends on your documents.

Metadata is not optional

Store source file, section title, last-modified date and a URL with every chunk. You need it for citations, for filtering by recency, and for deleting stale content when source documents change.

Refresh on a schedule

An index that is not refreshed slowly becomes wrong. Tie reindexing to your source system's update events, or rebuild nightly if events are unavailable.

Comments (0)

Log in to join the discussion

Log In

No comments yet