Go to example tasks

Turn a government PDF report into RAG chunks

Split a long public-sector PDF into heading-aware RAG chunks with page numbers, ready for a vector database (Pinecone, Qdrant, pgvector) or LangChain and LlamaIndex pipelines. The example chunks the first pages of the NIST Cybersecurity Framework 2.0, a US government publication; replace it with your own policy, standard or report PDFs.

Try for free
PDF to Markdown & RAG Chunks: Document Parser (DOCX/PPTX/XLSX)
PDF to Markdown & RAG Chunks: Document Parser (DOCX/PPTX/XLSX)lindenwerk/pdf-to-markdown-rag
Source
Format
Status
Title
+8 fields
Text
Number
Boolean
List
Object

Input

Document URLs:https://nvlpubs.nist.gov/nistpubs/CSWP/NIST.CSWP.29.pdf
Output:documents-and-chunks
Page range:1-6
Chunk size (characters):1200
Chunk overlap (characters):120
Remove running headers and footers:true

Output fields

Source
Format
Status
Title
Pages
Charged pages
No text on pages
Tables
Words
Chunks
Charged
Note

How it works

Sign up on Apify or log in

The PDF to Markdown & RAG Chunks: Document Parser (DOCX/PPTX/XLSX) Actor is ready to run with the inputs already set for "Turn a government PDF report into RAG chunks". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Turn a government PDF report into RAG chunks" task

The PDF to Markdown & RAG Chunks: Document Parser (DOCX/PPTX/XLSX) Actor will start running based on the input automatically. You can also change all the input fields, like document urls, output, and more, to match your specific use case.

Receive the "Turn a government PDF report into RAG 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 source, format, status, 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 "Turn a government PDF report into RAG chunks" task via API.

Image

Integrate "Turn a government PDF report into RAG chunks" into your workflow

Connect "Turn a government PDF report into RAG 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