Go to example tasks

Split documents into chunks for embeddings

Splits a document into chunks of a set size, with an overlap between neighbouring chunks, so each piece fits an embedding model or a prompt. Each chunk row names its source document and position. Set the chunk size and overlap to match your model. Works on PDF, Word, PowerPoint, Excel, HTML and EPUB. This preset reads the first 5 pages of each document.

Try for free
PDF to Markdown & Document to Text for LLM/RAG, with OCR
PDF to Markdown & Document to Text for LLM/RAG, with OCRtinlark/document-to-markdown
File
Type
Title
Pages
+9 fields
Text
Number
Boolean
List
Object

Input

Document links:https://nvlpubs.nist.gov/nistpubs/CSWP/NIST.CSWP.04162018.pdf
Output format:markdown
Chunking for RAG:by-size
Chunk size (characters):1500
Chunk overlap (characters):150
Max pages per document:5

Output fields

File
Type
Title
Pages
OCR pages
Words
Language
Tables
Chunk
Heading path
Warnings
Source
Status

How it works

Sign up on Apify or log in

The PDF to Markdown & Document to Text for LLM/RAG, with OCR Actor is ready to run with the inputs already set for "Split documents into chunks for embeddings". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Split documents into chunks for embeddings" task

The PDF to Markdown & Document to Text for LLM/RAG, with OCR Actor will start running based on the input automatically. You can also change all the input fields, like document links, output format, and more, to match your specific use case.

Receive the "Split documents into chunks for embeddings" 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, title, 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 documents into chunks for embeddings" task via API.

Image

Integrate "Split documents into chunks for embeddings" into your workflow

Connect "Split documents into chunks for embeddings" 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