Repository

daly2211/autoretrieval

autoretrieval

AI agent autonomously optimizing RAG retrieval pipelines against your own documents

90stars

Open github.com

daly2211/autoretrieval

autoretrieval

An AI agent framework that autonomously optimizes RAG retrieval pipelines against evaluation datasets by running experiments.

Visit project

Show me a random project

First shared
Jul 21, 2026
HN activity
32

Show HN@Daly_chebbiJul 21, 2026

Show HN: Autoretrieval – Autoresearch for RAG Pipelines

Hi, inspired by Andrej Karpathy's autoresearch, I built autoretrieval, a small framework that lets an AI agent improve a RAG pipeline by running experiments against an evaluation dataset. The agent edits the retrieval pipeline, runs an eval, checks whether the F-beta score improved, keeps or discards the change, and repeats. It can try different chunking strategies, chunk sizes, the number of retrieved chunks, embedding models, keyword retrieval, and more, while keeping a log of every experiment. The repo also includes a script that generates question and reference-highlight pairs from any document collection. This makes it possible to optimize a RAG pipeline for domain-specific data. On one of my own RAG pipelines, it more than doubled the F3 score after a few hours of running experiments. I'd love to hear any feedback or ideas.

Community

Hacker News discussion

Loading the thread…