My Experience Adding Internal Document Search with an LLM (RAG)
Our team wiki is about 3,000 pages, and the search was so bad that I tried adding an internal chatbot with RAG. Bottom line: I could get it to a level people could actually use, but there was a lot more grunt work than expected.
1. Document collection: I scraped with the Confluence API, but attachments and tables were a problem. Converting tables to Markdown improved answer quality quite a bit.
2. Chunking: Cutting at 500 characters broke the context, so I split by headers. This was the most important part.
3. Evaluation: I built a 50-item answer key and ran it every week. Without it, you can't tell whether you're improving or regressing.
Now it's hooked up as a Slack bot, and about 30 people use it per day. Since I always include source links in answers, trust has gone up.
Next, I plan to add permission-based filtering. My takeaway: operations are harder than RAG itself.
9 answers
Agreed—chunking really is more than half the battle. I also cut things at 500 characters and got weird answers, so I struggled with it for a while.
Oh, I didn't know this. I didn't realize converting tables to Markdown had such a big impact on quality.
How did you create the 50-item answer set? We tried building one, but the whole team got exhausted and eventually gave up lol
Don't underestimate permission filtering. If ACL tagging isn't done in the document metadata, you may have to redesign the ingestion pipeline from scratch at that point. We lost two months because of that.
Source links are absolutely essential. Without them, no one will believe it.
I really relate to header-based chunking. But for that to work, if the wiki documents don’t use headers properly in the first place, it’s useless—so it ends up requiring a document structure standardization campaign too. It wasn’t a technical problem; it was a people problem.
I completely agree with the conclusion that operations are harder than RAG itself. In particular, when documents keep changing, updating the index is a real headache.
Well, I’m not so sure about that. Whether 30 people a day is the entire team or the entire company changes the picture completely, and at a scale of 3,000 pages, the actual usage metrics seem a bit ambiguous. Haven’t you measured things like revisit rate or answer satisfaction?
I'm curious how you set up your evaluation automation. We used to run it manually every week, but anything that relies on manual effort quickly falls by the wayside.