Show HN: RAG-chunk – A tool to choose optimal chunk sizes for RAG
medium.com·1d·
Discuss: Hacker News
Flag this post

4 min readJust now

Press enter or click to view image in full size

Building a Retrieval-Augmented Generation (RAG) pipeline is exciting — until you hit the dreaded “chunking” step.

You’ve got your documents, your embedding model, and your vector database ready. But then you have to decide: How do I split my text?

  • Is chunk_size=512 better than chunk_size=1000?
  • Should I use a 50-token overlap or 200?
  • Is splitting by paragraph smarter than splitting by arbitrary length?

For most of us, the answer is a guess. We pick a default value, run the pipeline, and hope the LLM gets the right context. If the answers are bad, we randomly tweak the numbers and try again.

This is engineering by feeling. And in the world of AI, engineering by feeling is expensive and ineffici…

Similar Posts

Loading similar posts...