AutoML for RAG: let the framework grid-search your pipeline
AutoRAG automatically evaluates combinations of retrievers, prompt makers, and generators against your own documents to find the optimal pipeline for your use case.

What it does
AutoRAG treats RAG pipeline construction as an AutoML search problem. You provide a corpus and a QA evaluation set, define candidate modules in a YAML configuration, and the framework benchmarks combinations of parsing, chunking, retrieval, and generation strategies against your data. It returns a ranked summary of which pipeline performed best, grounded in metrics like retrieval_f1 and rouge rather than vibes.
The interesting bit
Instead of assuming a one-size-fits-all stack, AutoRAG lets you pit lexical retrieval against vector search and hybrid RRF within the same trial, then chains the winner through prompt makers and LLM generators. It also includes data-creation utilities that parse raw documents, chunk them, and synthesize QA pairs using an LLM—so you can bootstrap evaluation data if you don’t already have it.
Key highlights
- Benchmarks modules against your own corpus and questions, not generic leaderboards
- Supports multiple retrieval nodes (
bm25, vector DB, hybrid RRF), custom LLMs, and custom embedding models - Includes end-to-end data creation: parsing, chunking, and synthetic QA generation with filtering
- Exposes both a Python
EvaluatorAPI and a CLI for running trials - Results are summarized in a
summary.csvfile that identifies the best-performing pipeline
Caveats
- Running multiple parse modules simultaneously requires spawning “a new process for each parsed result,” which adds operational overhead
- If you mix chunking strategies, you must manually remap retrieval ground truth to the QA dataset to keep evaluations consistent
- Local model support requires installing a separate
gpuextra; the default path assumes cloud LLM access
Verdict
Data teams drowning in chunk-size and retriever options but lacking evidence for which works on their documents will get the most value. If your current RAG setup is already good enough and you don’t need reproducible benchmarks, skip it.
Frequently asked
- What is Marker-Inc-Korea/AutoRAG?
- AutoRAG automatically evaluates combinations of retrievers, prompt makers, and generators against your own documents to find the optimal pipeline for your use case.
- Is AutoRAG open source?
- Yes — Marker-Inc-Korea/AutoRAG is an open-source project tracked on heatdrop.
- What language is AutoRAG written in?
- Marker-Inc-Korea/AutoRAG is primarily written in TypeScript.
- How popular is AutoRAG?
- Marker-Inc-Korea/AutoRAG has 4.9k stars on GitHub.
- Where can I find AutoRAG?
- Marker-Inc-Korea/AutoRAG is on GitHub at https://github.com/Marker-Inc-Korea/AutoRAG.