Go to example tasks

Split PDFs into RAG chunks for vector databases

Split PDF text into overlapping chunks with the pages each one came from, ready for embeddings in Pinecone, Weaviate, Chroma, Qdrant or any vector database. This example uses IRS Form W-9 with 1,000-character chunks and 150 characters of overlap.

Try for free
PDF Extractor All-in-One: Text, Tables & OCR
PDF Extractor All-in-One: Text, Tables & OCRt800solutions/pdf-extractor
Source
Status
Pages
Pages extracted
+23 fields
Text
Number
Boolean
List
Object

Input

📄 PDF URLs:https://www.irs.gov/pub/irs-pdf/fw9.pdf
🧾 Output format:chunks
🧩 RAG chunk size (characters):1000
🔁 RAG chunk overlap (characters):150

Output fields

Source
Status
Pages
Pages extracted
OCR pages
Title
Author
Characters
Words
Text
Markdown
Page
Chunk
From page
To page
Subject
Creator
Producer
Created at
Modified at
Protected
Size (MB)
Source type
File type
Error code
Note or error
Processed at

How it works

Sign up on Apify or log in

The PDF Extractor All-in-One: Text, Tables & OCR Actor is ready to run with the inputs already set for "Split PDFs 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 PDFs into RAG chunks for vector databases" task

The PDF Extractor All-in-One: Text, Tables & OCR Actor will start running based on the input automatically. You can also change all the input fields, like 📄 pdf urls, 🧾 output format, and more, to match your specific use case.

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

Image

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

Connect "Split PDFs 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

Frequently asked questions

500 to 1,500 characters with 10 to 20% overlap works for most embedding models. Each chunk keeps the pages it came from, for citations.

Yes. Load the rows as documents with the Apify integrations for LangChain and LlamaIndex, or call the API from your code.