Skip to main content
Markdown chunking is a method of splitting documents into smaller chunks of a specified size, with optional overlap between chunks. This is useful when you want to process large documents in smaller, manageable pieces.
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

ParameterTypeDefaultDescription
chunk_sizeint5000The maximum size of each chunk.
overlapint0The number of characters to overlap between chunks.