Grounding
Fewer made-up answers
Responses are built from your documents, not the model's memory, which cuts down on confident fabrication.
Retrieval-augmented generation, built in the open
RagXGen is a working RAG system. Upload a PDF or text file, ask a question, and see which passages were retrieved, how closely they matched, and where the answer came from.
What is the refund window for digital products?
Digital products can be refunded within 14 days of purchase. Physical items have a 30-day window. Either way, requests go through the support portal.
01 — The pipeline
The same steps run behind every question in the demo.
Drop in a PDF or text file. It is split into overlapping chunks so no idea is cut off at a boundary.
RecursiveCharacterTextSplitter · 1000 chars
Each chunk becomes a vector that captures its meaning, stored in an index built for similarity search.
text-embedding-3-small · FAISS
Your question is embedded the same way, and the closest chunks come back with their similarity scores.
Cosine similarity · K = 4 default
The model answers using only the retrieved passages, and the answer lists which documents it drew on.
GPT-4o-mini · temperature 0.1
02 — Why retrieval
Grounding
Responses are built from your documents, not the model's memory, which cuts down on confident fabrication.
Freshness
Ask about last week's release notes or a private policy file. Retrieval reaches past the training cutoff.
Attribution
Retrieved chunks, their scores and source files are visible, so an answer can be checked, not just trusted.
03 — Built with
Every piece is swappable; the trade-offs are written up in the About page.
04 — Read further
Upload a PDF or TXT file and question it. Every answer comes with the chunks it was built from.