SuperAPI AI Directory

AutoRAG

Open source AutoML tool for RAG. Optimize the RAG answer quality automatically. From generation evaluation datset to deploying optimized RAG pipeline.

Open website

About this tool

AutoRAG is an open-source AutoML tool for RAG (retrieval-augmented generation), with the goal of automatically optimizing RAG answer quality, from generating evaluation datasets to deploying the optimized RAG pipeline. The original Python version of AutoRAG can be installed via pip install AutoRAG; it is currently in maintenance mode, continuing to fix bugs, update dependencies, and publish PyPI releases, and its documentation can be found in the README in the repository's legacy/ directory.

This repository now mainly hosts AutoRAG 2.0, namely AutoRAG Agent: a self-evolving retrieval agent based on the Pi agent framework, in which a single configuration model handles retrieval, direct reading, and answer organization. It supports multiple retrieval methods: BM25 keyword retrieval based on MinSync, semantic vector retrieval with a built-in embedding gateway, hybrid retrieval fused via RRF, Jikji fast discovery, and filename retrieval via Everything on Windows and fsearch-cli on macOS/Linux; it can also perform federated retrieval across configured external data sources. The agent directly opens files via bash (cat, grep, find) to verify facts, and the [eN] citations in the final answer are resolved into numbered results with sources; evidence that is judged to actually support the answer is stored in ~/.autorag/memory.json for reference in subsequent retrieval.

Regarding installation, AutoRAG Agent is published as @autorag/librarian and requires Node.js ≥ 24 or Bun. On first run, MinSync is automatically downloaded to <workspace>/.autorag/bin; on Windows, the built-in Everything is extracted and only the configured search root directories are indexed; on macOS/Linux, fsearch-cli must be installed separately, otherwise filename retrieval degrades to slower filesystem traversal. Document parsing is done in-process via kordoc, with no need for Java. OCR is disabled by default; only after enabling parserOptions.ocr.enabled can images and scanned PDFs be retrieved, and some languages require Tesseract.

For usage, first run autorag init to initialize and index, then retrieve via autorag search; on first run, you need to log in in the TUI and select a model, or use autorag models list --available to find the provider/model id and write it into the configuration, then run autorag health. The CLI TUI is autorag tui, supporting commands such as /login, /model, and /resume. A TypeScript API is also provided, allowing steer() to correct or stop a search while it is running. Limitations: video content is not yet retrievable, .bmp and .tiff are not parsed, and remote reranking models are an optional additional configuration.