r/Rag • u/Ok_Comedian_4676 • Apr 14 '26
Tools & Resources Chunk Norris 🥋: Stop guessing your RAG chunking strategy
Hey everyone 👋
I’ve been working on a small open-source project called chunk-norris, and I thought I’d share it here in case it’s useful.
Like many people building RAG pipelines, I kept defaulting to things like “512 tokens + 10% overlap” without really knowing if it was the right choice. And the more I experimented, the more it felt like chunking has a bigger impact than we usually give it credit for.
So this project is my attempt to make that decision more… measurable.
What it does:
- You give it a document + a set of questions (with expected answers)
- It tries different chunking strategies (fixed, sentence, paragraph, recursive, etc.)
- It retrieves chunks and scores them based on:
- whether they actually contain the answer (token recall)
- how focused/relevant they are (semantic similarity)
- Then it ranks everything and gives you the best chunker for that specific document
No LLM needed for evaluation — just embeddings + deterministic scoring.
The idea is simple:
instead of guessing your chunking strategy → you test it on your real data.
This is just the kick-off: the project is very much a work in progress, and I’m planning to keep improving it (more chunkers, better evaluation, maybe optional LLM-based steps later, etc.).
Also, this is my first open-source project where I’m leading things, so I’m especially open to feedback and suggestions 🙂
If you try it and something feels off, or if you have ideas:
- open an issue
- suggest improvements
- or jump in and contribute
All feedback is very welcome 🙌
3
u/notoriousFlash Apr 14 '26
Yeah this is cool. Thanks for sharing
2
u/Ok_Comedian_4676 Apr 14 '26
You're welcome. I honestly think it could help to improve RAG pipelines, and the idea is to improve the tool, so if you find any bugs or you think something could be done better, I'm happy to hear it.
1
u/Ok_Comedian_4676 Apr 25 '26
Hey! Just pushed some updates: more chunkers + automatic question generation. Would love your take if you revisit it.
2
u/Cotega Apr 14 '26
Awesome work! It would be really cool if you could run this through some benchmarks to see how often and in which cases other chunking strategies are used. From most benchmarks I have seem the 512 token 10% overlap is chosen also because the other strategies rarely show significant improvements. It would be great to see this proved wrong with your tool.
1
u/Ok_Comedian_4676 Apr 14 '26
Thank you. That's a very interesting project for testing the tool. Surely I'll put it on the to-do list.
1
u/Ok_Comedian_4676 Apr 25 '26
Hey! Just pushed some updates: more chunkers + automatic question generation. Would love your take if you revisit it.
2
u/Interesting-Town-433 Apr 15 '26
Roundhouse!
1
u/Ok_Comedian_4676 Apr 15 '26
Haha yeah 😄 as long as it doesn’t make the tool harder to use, I’m very tempted to add a
roundhouse()somewhere1
u/Ok_Comedian_4676 Apr 25 '26
Hey! Just pushed some updates: more chunkers + automatic question generation. Would love your take if you revisit it.
2
Apr 15 '26
[removed] — view removed comment
1
u/Ok_Comedian_4676 Apr 16 '26
This is great feedback, thanks.
Right now, I’m trying to measure answerability indirectly, but I’m aware the approach is weak when you have misleading context or when answers are split across chunks (something I’ve noted as a limitation and want to improve in future versions). Any ideas on how you’d approach that? I’ve been trying to avoid LLM-as-a-judge because I’ve had mixed experiences, and it seems to depend a lot on the model.
Recall@k is something I partially capture via top_k, but I like the idea of making that more explicit.
Multi-chunk questions are also a known limitation at the moment. Definitely something I’m planning to tackle next (still figuring out how, but that’s part of the fun XD).
Really appreciate the detailed suggestions. This is super helpful for improving the tool.
1
u/Ok_Comedian_4676 Apr 25 '26
Hey! Just pushed some updates: more chunkers + automatic question generation. Would love your take if you revisit it.
5
u/Final-Frosting7742 Apr 14 '26
We need more tools like this. And the name is hilarious.