Sphere
Log in Join
☆ 10

My RAG bot answers from the wrong document chunks

I split documents into 2000-character chunks with no overlap. Answers are confidently wrong and cite the wrong section. Is chunking the problem or the model?

⚑ Report

3 replies

☆ 0
H Hana ·2026-10-07#1

2000 characters is large for an 8B model and without overlap you cut sentences in half. Try 500 characters with 100 overlap.

⚑ Report
☆ 0
D Dmitri ·2026-10-07#2

I changed chunk size and it is better but still mixes two similar documents.

⚑ Report
☆ 0
J Jonas ·2026-10-07#3

Add metadata filters and include the document title in each chunk. Most RAG errors are retrieval errors, not generation errors.

⚑ Report
Log in to reply.