Go to example tasks

Split PDFs into chunks for RAG and vector databases

Converts documents to Markdown and splits them into overlapping chunks ready for embeddings and a vector database.

Try for free
PDF to Markdown API [$2/1k] - Word, PowerPoint, Excel & OCR
PDF to Markdown API [$2/1k] - Word, PowerPoint, Excel & OCRkadi_bence/document-to-markdown
URL
File
Type
Title
+6 fields
Text
Number
Boolean
List
Object

Input

Document URLs:https://arxiv.org/pdf/2401.18059
RAG chunk size (characters):1000
Chunk overlap (characters):200

Output fields

URL
File
Type
Title
Pages
Converted
Words
Tables
OCR
Error

How it works

Sign up on Apify or log in

The PDF to Markdown API [$2/1k] - Word, PowerPoint, Excel & OCR Actor is ready to run with the inputs already set for "Split PDFs into chunks for RAG and vector databases". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Split PDFs into chunks for RAG and vector databases" task

The PDF to Markdown API [$2/1k] - Word, PowerPoint, Excel & OCR Actor will start running based on the input automatically. You can also change all the input fields, like document urls, RAG chunk size (characters), and more, to match your specific use case.

Receive the "Split PDFs into chunks for RAG and 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 URL, file, type, 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 PDFs into chunks for RAG and vector databases" task via API.

Image

Integrate "Split PDFs into chunks for RAG and vector databases" into your workflow

Connect "Split PDFs into chunks for RAG and 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

Frequently asked questions

The "Split PDFs into chunks for RAG and vector databases" task returns one row per chunk with its text, position and source document.

The "Split PDFs into chunks for RAG and vector databases" task costs $2 per 1,000 documents on the base plan, plus a tiny start fee. Higher Apify plans pay less.

The "Split PDFs into chunks for RAG and vector databases" task can run on any Apify schedule, and the results can go to Google Sheets, Slack, a webhook or the API.