Go to example tasks

Split Markdown docs into embedding-ready chunks

Splits a Markdown documentation page on its # / ## / ### headers, caps oversized sections at 512 tokens, and moves headers into metadata so each chunk embeds cleanly. Works with any README, docs page or GitHub raw URL.

Try for free
Markdown RAG Chunker: Document Text Splitter
Markdown RAG Chunker: Document Text Splittercodepoetry/markdown-rag-chunker
Chunk index
Header path
Token count
Content
+2 fields
Text
Number
Boolean
List
Object

Input

Document URL:https://raw.githubusercontent.com/yel-hadd/markdown-rag-chunker/main/README.md
Headers to split on:#+2
Move headers to metadata:true

Output fields

Chunk index
Header path
Token count
Content
Chunk ID
Source

How it works

Sign up on Apify or log in

The Markdown RAG Chunker: Document Text Splitter Actor is ready to run with the inputs already set for "Split Markdown docs into embedding-ready chunks". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Split Markdown docs into embedding-ready chunks" task

The Markdown RAG Chunker: Document Text Splitter Actor will start running based on the input automatically. You can also change all the input fields, like document url, headers to split on, and more, to match your specific use case.

Receive the "Split Markdown docs into embedding-ready chunks" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as chunk index, header path, token count, and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Split Markdown docs into embedding-ready chunks" task via API.

Image

Integrate "Split Markdown docs into embedding-ready chunks" into your workflow

Connect "Split Markdown docs into embedding-ready chunks" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay