ragcreator

ragcreator

Guide

How to build a RAG system

To build a RAG system, load your documents, cut them into chunks, embed each chunk so it can be searched by meaning, retrieve the chunks closest to each question, and hand them to the AI with an instruction to answer only from them and cite each sentence. Build it in that order, and test every step on a real question before the next.

See it run on a real handbook

Load: 5 handbook pages. Chunk: 5 chunks of up to 40 words, 8 words of overlap.

Embed: the free X-ray searches by matching words, so it skips this step. Embedding the chunks so a search can find them by meaning is the Embed station.

Retrieve: for "How long do I have to return my laptop?" the search returns page 6:

handbook.pdf, page 6 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.

Answer: the AI is handed that passage and the rules in a prompt of 72 words, and writes only from it.

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.

Test each step before the next

Most failed RAG systems fail early and quietly: a chunk that cuts a rule in half, or a search that returns the wrong passage. Ask a real question after chunking and read what comes back before you add anything else.

Then check the answers

A RAG system that answers is not yet one that answers from your documents. Check that every sentence points at a passage that says it.

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.