r/FunMachineLearning • u/Worldly-Working-4944 • Dec 25 '25
How should KB documents be chunked for RAG when tenants upload anything?
I’m building a multi-tenant SaaS KB system (Zendesk-like) using Qdrant + LLMs.
Tenants can upload anything:
PDFs (policies, regulatory docs)
FAQs
Manuals
Mixed / messy OCR text
I’m stuck on chunking strategy.
I’ve tried:
Fixed token chunks → too broad, mixed answers
Paragraph chunks → inconsistent size
Semantic / sentence chunking → better, but heuristic-heavy
FAQ-style chunking → only works for FAQs
Everything feels like a tradeoff.
Core question:
Specifically:
Should chunks be small & atomic or structure-preserving?
How much logic belongs in ingestion vs retrieval?
Should a chunk be “answer-sized” or just “meaningful text”?
How do real systems handle long docs where answers span sections?
Looking for real-world patterns, not theory.
Thanks.
1
u/KYDLE2089 Dec 25 '25
I didn't use any premade chucking. In my application I self the content to a fast model like Gemini flash and have it properly chuck that makes sense
1
u/[deleted] Dec 25 '25
hi, if you mean by kb knoweldge bases, I dont think it should be chunked ! kb is made for querying. However, if there are any heavy files, docs associated with nodes, or links it may be chunked. Plz, correct me if missed any piece.