Go to example tasks

Split PDF into RAG chunks for vector databases

Convert PDFs to Markdown and split them into chunks with their nearest heading — ready for embeddings, vector databases and LLM retrieval (RAG).

Try for free
Document to Markdown for AI: PDF, OCR, Word, Excel, PowerPoint
Document to Markdown for AI: PDF, OCR, Word, Excel, PowerPointai_admin/document-to-markdown
Document
Format
Text pages
OCR pages
+3 fields
Text
Number
Boolean
List
Object

Input

Document URLs(required)
url:https://api.apify.com/v2/key-value-stores/FloomuI2DrQCJazY8/records/text-3p-en.pdf
RAG chunk size (characters):1000

Output fields

Document
Format
Text pages
OCR pages
Characters
Markdown
Error

How it works

Sign up on Apify or log in

The Document to Markdown for AI: PDF, OCR, Word, Excel, PowerPoint Actor is ready to run with the inputs already set for "Split PDF into RAG chunks for vector databases". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Split PDF into RAG chunks for vector databases" task

The Document to Markdown for AI: PDF, OCR, Word, Excel, PowerPoint Actor will start running based on the input automatically. You can also change all the input fields, like document urls and RAG chunk size (characters), to match your specific use case.

Receive the "Split PDF into RAG chunks for vector databases" 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 document, format, text pages, 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 PDF into RAG chunks for vector databases" task via API.

Image

Integrate "Split PDF into RAG chunks for vector databases" into your workflow

Connect "Split PDF into RAG chunks for vector databases" 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