← Latest papers
💻 computer science

RAGtio: A Modular Framework for Systematic Evaluation of Hybrid Retrieval-Augmented Generation Pipelines

This paper introduces RAGtio, a modular, open-source framework built on Haystack and Qdrant that enables systematic, reproducible evaluation of hybrid RAG retrieval pipelines in the biomedical domain through dual assessment modes and accessible interfaces for both technical and non-technical users.

Original authors: Annamaria Defilippo, Nicola Procopio, Pietro Hiram Guzzi, Pierangelo Veltri, Patrizia Vizza

Published 2026-08-13
📖 4 min read☕ Coffee break read

Original authors: Annamaria Defilippo, Nicola Procopio, Pietro Hiram Guzzi, Pierangelo Veltri, Patrizia Vizza

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a super-smart robot that can write essays, answer questions, and tell stories. It's like a brilliant student who has read almost every book in the world. But there's a catch: this robot is a bit forgetful about recent news, and sometimes, when it doesn't know the answer, it just makes something up to sound confident. This is a problem if you need the truth, especially in serious places like hospitals or research labs. To fix this, scientists invented a trick called "Retrieval-Augmented Generation" (or RAG for short). Think of it as giving the robot a backpack full of specific textbooks. When you ask a question, the robot doesn't just guess from its memory; it first opens the backpack, finds the right pages, reads them, and then answers. This makes the robot much more reliable. But here's the tricky part: how do you know if the robot is actually finding the right pages? If the backpack is messy, or if the robot is looking for the wrong keywords, it might grab the wrong page and give you a wrong answer. Scientists need a way to test if the "search engine" part of the robot is working perfectly before they let it talk to patients or researchers.

This is exactly what the paper "RAGtio" is all about. The authors, a team from universities in Italy, built a new, open-source tool called RAGtio to act like a rigorous "test drive" for these robot search engines. They realized that while many people are building these RAG systems for medicine and biology, they often skip the hard part: systematically checking if the search is actually good. RAGtio is a modular framework, which you can think of as a giant, customizable Lego set for testing. Instead of building a new test every time, researchers can plug in different "search strategies" (like looking for exact words vs. looking for meaning) and see which one works best on their specific pile of documents.

The tool is clever because it offers two different ways to test the system. The first way, called Mode A, is like a speed run. The system uses a smart AI to automatically invent thousands of questions based on the documents it has, then checks if the search engine can find the answers. It's fast and great for seeing how the system handles a huge volume of data. The second way, Mode B, is the "expert check." Here, a human specialist writes real, tricky questions and marks exactly which pages contain the answers. This is harder to do but gives a much more honest picture of how the system would perform in the real world, where questions might be phrased in ways the documents never used.

The researchers tested RAGtio on four different medical topics: cancer (oncology), diabetes, drugs (pharmacology), and infectious diseases. They tried out four different search methods: looking for exact word matches, looking for similar meanings, a mix of both, and a mix that gets a second opinion from a "re-ranker" to polish the results. Their findings suggest that the "hybrid" approach—combining exact word matching with meaning-based searching, and then giving the top results a quick second look—is usually the strongest performer. In their tests, this method consistently found the right information early in the list of results. For example, in their cancer tests, the system found the correct answer in the top 5 results about 73% of the time when using the automated tests, and even better when checked by human experts.

However, the paper is careful not to claim this is a magic bullet that solves everything. The authors point out that their tests were done on a relatively small number of documents (about 20 papers total across the four topics) and that the human experts who checked the answers were just one person, not a whole team. They also note that while the hybrid method worked well in their specific setup, the tool is designed so that users can swap out the search engines to see what works best for their own specific library of documents. The main takeaway isn't that they found the single "best" search engine for the whole world, but that they built a transparent, easy-to-use workshop where anyone can test and compare their own search engines without needing to be a coding wizard. By making this tool open and free, they hope to help doctors and researchers build more trustworthy AI assistants that don't just sound smart, but actually get the facts right.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →