Business IEA Says Data Center Power Demand Could Double to 1,000 TWh by 2030, With AI Supplying Three Quarters of the Growth Chatbots ChatGPT Now Transcribes as You Talk: OpenAI Removes the 10-Minute Cap and Streams Words Live on Every Plan Business Ex-Alibaba Executive's Everful Raises $48.5 Million to Put AI Agents in Charge of Sourcing From 30,000 Factories AI Agents Google Built a Mirror Dimension of the Internet to Train Its Chrome AI Agents Without Breaking the Real Web Productivity Canva Finally Adds an Off Switch for Its Generative AI Features, and a Filter to Hide AI-Made Templates Business Anthropic Begins Trading Today: 980 Million Shares at $83, a $1.5 Trillion Valuation and the Largest IPO on Record News Google Books Blue Origin New Glenn to Launch TPU-Carrying AI Satellites in Early 2029 Security Hackers Used the AI Penetration Tool ARTEX to Disrupt European Commission Systems for Over Ten Days Business IEA Says Data Center Power Demand Could Double to 1,000 TWh by 2030, With AI Supplying Three Quarters of the Growth Chatbots ChatGPT Now Transcribes as You Talk: OpenAI Removes the 10-Minute Cap and Streams Words Live on Every Plan Business Ex-Alibaba Executive's Everful Raises $48.5 Million to Put AI Agents in Charge of Sourcing From 30,000 Factories AI Agents Google Built a Mirror Dimension of the Internet to Train Its Chrome AI Agents Without Breaking the Real Web Productivity Canva Finally Adds an Off Switch for Its Generative AI Features, and a Filter to Hide AI-Made Templates Business Anthropic Begins Trading Today: 980 Million Shares at $83, a $1.5 Trillion Valuation and the Largest IPO on Record News Google Books Blue Origin New Glenn to Launch TPU-Carrying AI Satellites in Early 2029 Security Hackers Used the AI Penetration Tool ARTEX to Disrupt European Commission Systems for Over Ten Days

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