ragcreator
Guide
Chunking strategies for RAG
A chunking strategy is the rule that cuts a document into passages before it is searched. Fixed-size chunking cuts every set number of words or characters. Recursive chunking tries the biggest breaks first, paragraphs, then lines, then spaces, so passages end where the text does. Semantic chunking starts a new passage where the meaning changes. Where it cuts decides what can be found.
See it run on a real handbook
Fixed size: every 12 words, no overlap
12 chunks, 10 stop mid-sentence
Section 2.1 Onboarding. New hires receive a laptop on day one. ITsets up every account before the first morning. Your manager books awelcome lunch in the first week. Section 2.3 Equipment returns. Equipment mustbe returned within 5 business days of your last day. Returns goto the front desk, not to IT. Bring the charger and thebadge with the laptop. Section 2.4 Reissue. Laptops are wiped before reissue.A wiped laptop is held for 30 days before it goes toa new hire. Section 3.1 Time off. Full time staff get 20days of paid time off a year. Requests go to your managerat least two weeks ahead. Section 3.2 Remote work. You may workremotely up to two days a week. Tell your team which daysin the shared calendar.
Recursive: up to 200 characters, 40 overlap, biggest breaks first
5 chunks, 0 stop mid-sentence
Section 2.1 Onboarding. New hires receive a laptop on day one. IT sets up every account before the first morning. Your manager books a welcome lunch in the first week.Section 2.3 Equipment returns. Equipment must be returned within 5 business days of your last day. Returns go to the front desk, not to IT. Bring the charger and the badge with the laptop.Section 2.4 Reissue. Laptops are wiped before reissue. A wiped laptop is held for 30 days before it goes to a new hire.Section 3.1 Time off. Full time staff get 20 days of paid time off a year. Requests go to your manager at least two weeks ahead.Section 3.2 Remote work. You may work remotely up to two days a week. Tell your team which days in the shared calendar.
Recursive, too big: up to 400 characters: two chunks, each mixing topics
2 chunks, 0 stop mid-sentence
Section 2.1 Onboarding. New hires receive a laptop on day one. IT sets up every account before the first morning. Your manager books a welcome lunch in the first week.
Section 2.3 Equipment returns. Equipment must be returned within 5 business days of your last day. Returns go to the front desk, not to IT. Bring the charger and the badge with the laptop.Section 2.4 Reissue. Laptops are wiped before reissue. A wiped laptop is held for 30 days before it goes to a new hire.
Section 3.1 Time off. Full time staff get 20 days of paid time off a year. Requests go to your manager at least two weeks ahead.
Section 3.2 Remote work. You may work remotely up to two days a week. Tell your team which days in the shared calendar.
A chunk that stops mid-sentence cannot be the whole receipt for it. Try your own text in the splitter.
The sample is the free X-ray's handbook, 5 short pages. Nothing here is typed in by hand: the page runs the X-ray's own search and the free text splitter's own cuts.
Which to start with
Fixed-size chunking: Pinecone recommends starting there in most cases, and it is the cut the free text splitter draws first, by words. Its second cut, by characters, is recursive. Move to semantic chunking only when a measured miss comes from a passage that mixes two topics.
How you know it worked
Ask a real question and read the passage that comes back. If the answer is half in one passage and half in the next, the cut is wrong, whatever the strategy is called.
Sources
Keep going
Build the whole pipeline on your documents
Works with the AI you already use: Claude, ChatGPT, any. We do not make the model smarter. We make your pipeline visible.