☆ 10 r/localai ·by Dmitri ·2026-10-07 My RAG bot answers from the wrong document chunks 399 views 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? ⧉ Copy link⚑ Report
☆ 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. ⧉ Copy link⚑ Report
☆ 0 D Dmitri ·2026-10-07#2 I changed chunk size and it is better but still mixes two similar documents. ⧉ Copy link⚑ 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. ⧉ Copy link⚑ Report
3 replies