Chunk Tuner

Chunk Tuner benchmarks document chunking strategies for RAG and recommends a configuration through a CLI, Python library, or MCP server.

github.com/shantanu-deshmukh/chunktuner
Chunk Tuner homepage screenshot

About Chunk Tuner

Chunk Tuner is an open-source tool that automates the selection of optimal document chunking strategies for retrieval-augmented generation (RAG) pipelines. It solves the common problem where document chunking approach directly impacts RAG retrieval quality, removing the need for manual trial-and-error testing of different chunking setups.

The tool ingests documents from local files, URLs, or repositories, then tests a range of built-in chunking strategies including fixed-token windows, recursive character splitting, semantic splitting, PDF structural chunking, and AST-based code chunking. Each strategy is evaluated against real retrieval metrics such as token recall, MRR, and NDCG, with optional generation metrics including RAGAS faithfulness and answer relevancy. After benchmarking all configurations against a baseline, it outputs a recommended setup saved as a .autochunk.yaml file.

Chunk Tuner is accessible via a command-line interface (CLI), Python library for programmatic pipeline integration, and MCP server for use with tools like Claude Desktop. It supports zero-cost offline testing with dummy embeddings, and provides a dry-run cost estimate before running evaluations that require paid embedding API calls. It is suited for developers and teams building or optimizing RAG systems who want to improve retrieval performance without manual configuration work.

Key features

  • Benchmarks multiple RAG document chunking strategies.
  • Scores configs against retrieval and optional generation metrics.
  • Available as CLI, Python library, and MCP server.
  • Provides free dry-run cost estimates before paid calls.
  • Supports zero-cost offline testing with dummy embeddings.
  • Outputs recommended config as .autochunk.yaml.
Best for: It is most beneficial for developers and teams building RAG pipelines that need to automate optimal chunking configuration selection.
Good for
  • Open-source with no mandatory costs for initial testing.
  • Supports multiple integration interfaces for different workflows.
  • Tests a wide range of common chunking strategies.
  • Provides clear ranked results with baseline performance comparison.
Watch out for
  • Real embedding and generation metric evaluation may require paid third-party API calls.
  • Requires technical familiarity to integrate into existing RAG workflows.

Chunk Tuner at a glance

Type
Open-source project
Pricing
Free
Platforms
Windows
Open source
Yes · Source code
Language
English
Last checked
Oct 5, 2026 · Online when checked
Listed
Oct 5, 2026

Chunk Tuner alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in AI Infrastructure & MLOps

Well-known listings from the same topic.

All 341

Chunk Tuner FAQ

Is Chunk Tuner free to use?
The tool itself is open-source and free to use; only optional real embedding and generation metric evaluations may incur third-party API costs.
What interfaces does Chunk Tuner offer?
It provides a command-line interface (CLI), Python library for programmatic use, and an MCP server for MCP-compatible tools like Claude Desktop.
What metrics are used to evaluate chunking strategies?
It scores strategies against retrieval metrics including token recall, MRR, and NDCG, plus optional RAGAS generation metrics like faithfulness and answer relevancy.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing