Skip to main content
Markdown chunking is a method of splitting Markdown documents into smaller chunks based on structure like headers, paragraphs, and sections. Set split_on_headings to split on heading boundaries, or leave it off for size-based chunking with optional overlap.
1

Create a Python file

markdown_chunking.py
2

Set up your virtual environment

3

Install dependencies

4

Run PgVector

5

Run the script

Markdown Chunking Params