Show HN: Built a tool solve the nightmare of chunking tables in PDF vs. Markdown

40 minutes ago 1

Stop using static chunk sizes. A lightweight, production-ready RAG ingestion toolkit that uses smart heuristics for optimal, layout-aware chunking.

Extracted from a battle-tested, production RAG platform.


✨ Love this tool? This is just the beginning.

This toolkit is a core component of a much larger, private-by-design AI platform I'm building. It's designed to be the central, searchable brain for all your data, running entirely on your own hardware.

If you're tired of generic AI solutions and believe in the power of data privacy, follow the journey.

➡️ Get early access and join the Private AI Lab here ⬅️


Standard RAG pipelines use a "one-size-fits-all" approach with static chunk sizes. This works okay for simple text, but fails miserably with complex documents like PDFs with tables, source code, or structured Markdown. The result: poor context and bad answers.

This kit fixes that by being smart about the ingestion process.

  • Layout-Aware Parsing: Uses Docling to understand the structure of your documents. Tables, titles, and lists are treated as what they are.
  • Smart Chunking Heuristics: Applies different chunking strategies for different file types. Code is chunked differently than a research paper.
  • Production-Ready & Lightweight: No complex dependencies. Just a simple, effective toolkit to improve your RAG pipeline.
  • Preserves Table Structure: Solves the nightmare of tables in PDFs by converting them to Markdown before chunking, keeping the relational data intact.

(Coming soon - I'm working on making this a pip-installable package!)

This is a new open-source project and I'm open to any ideas or contributions. Feel free to open an issue or a pull request.

Read Entire Article