Go to example tasks

Convert a PDF to Markdown chunks for RAG

Convert a PDF (here the 'Attention Is All You Need' paper) into clean Markdown split into chunks by heading, with page numbers and heading paths as metadata, ready to embed into a vector database for RAG. Replace the link with your own PDF, Word, PowerPoint or Excel files, or point it at a whole list of documents.

Try for free
Document to Markdown for AI & RAG
Document to Markdown for AI & RAGegra_van/document-to-markdown
File
Type
Chunk
Page from
+7 fields
Text
Number
Boolean
List
Object

Input

Document URLs
url:https://arxiv.org/pdf/1706.03762
Dataset URL field:url
Output format:markdown
Chunking:heading
Chunk size:800
Chunk size unit:tokens
Chunk overlap:100
Insert page markers:true
Include PowerPoint speaker notes:true
OCR scanned pages:false
OCR languages:eng
Max pages per document:0
Max documents:1000
Max file size (MB):100

Output fields

File
Type
Chunk
Page from
Page to
Section
Tokens
Text
Full Markdown
Status
Error

How it works

Sign up on Apify or log in

The Document to Markdown for AI & RAG Actor is ready to run with the inputs already set for "Convert a PDF to Markdown chunks for RAG". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Convert a PDF to Markdown chunks for RAG" task

The Document to Markdown for AI & RAG Actor will start running based on the input automatically. You can also change all the input fields, like document urls, dataset url field, and more, to match your specific use case.

Receive the "Convert a PDF to Markdown chunks for RAG" 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 file, type, chunk, 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 "Convert a PDF to Markdown chunks for RAG" task via API.

Image

Integrate "Convert a PDF to Markdown chunks for RAG" into your workflow

Connect "Convert a PDF to Markdown chunks for RAG" 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