Compare chunking strategies side-by-side

Drop a file or paste into the editor to compare how two algorithms split the same source. This tab extracts PDF and Word to text first, and nothing is uploaded. Those same strategy names are one pip install away in Python.

Document

A

B

How it works

1

Drop a file or paste

Files stay in this tab. Nothing is uploaded. Type, paste, or drop a file, including PDF and Word. The chunks update from the text the browser extracted.

2

Compare strategies

Two algorithms, same source. Click a chunk to underline its range. Link copies A vs B and the knobs, never your file.

3

Copy the pip command

The snippet on the left is already Python, with the same strategy names and knobs. Grey names in the dropdowns ship in the library, not this tab.

Where chunking sits in RAG

Retrieval can only be as good as the pieces you embed. This lab is that first cut: before vectors, before the index, before the model.

Chunking is the first cut. Bad windows here become bad retrieval later.

Use it in your pipeline

The browser lab caps at 150 MB. It extracts PDF and Word to text here. The Python library streams from disk, with the same strategy names, 40+ algorithms, unlimited file size, plus layout, images, OCR, and directories. N-way compare and a custom strategy are pip; the docs cover both.