Show HN: Autoretrieval – Autoresearch for RAG Pipelines

Daly_chebbi1 pts0 comments

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.

pipeline autoretrieval autoresearch pipelines agent running

Related Articles