About this Snippet
Chunking by markdown headers is a popular method for retrieval augmented generation pipelines. Use this script to easily setup your chunking logic. It allows you to easily update your chunk size so you can refine your chunking strategy in a way that optimizes for your use case and data sets.