microsoft/rag-experiment-accelerator

The RAG Experiment Accelerator is a versatile tool designed to expedite and facilitate the process of conducting experiments and evaluations using Azure Cognitive Search and RAG pattern.

What it solves

The RAG Experiment Accelerator helps developers and data scientists systematically test and improve Retrieval-Augmented Generation (RAG) systems. It removes the guesswork from optimizing search strategies and OpenAI responses by allowing users to compare different configurations, document processing methods, and search parameters in a controlled, repeatable way.

How it works

The tool is configuration-driven, meaning you define your experimental variables—such as chunk sizes, search types, and prompt instructions—in a JSON file. It automates the end-to-end RAG lifecycle: indexing documents, generating question-answer pairs, performing searches, and evaluating results using metrics like semantic similarity and retrieval performance. It integrates with Azure AI Search, Azure OpenAI, and Azure Machine Learning to provide detailed reports and visualizations of your experiment outcomes.

Who it’s for

This tool is designed for researchers, data scientists, and developers working within the Azure ecosystem who need to fine-tune RAG applications, optimize search index performance, or validate the quality of AI-generated responses against ground-truth data.

Highlights

  • Comprehensive Testing: Supports multiple search types including hybrid, vector, and cross-vector search.
  • Automated Evaluation: Calculates end-to-end metrics and uses LLMs as judges to assess retrieval and generation quality.
  • Intelligent Data Sampling: Clusters data to create representative samples, allowing for faster, cost-effective experimentation on large datasets.
  • Advanced Document Loading: Includes a custom loader for Azure Document Intelligence that cleans and formats complex documents like tables for better LLM readability.
  • Report Generation: Automatically produces charts and reports to help visualize and share findings.
  • Flexible Deployment: Supports local execution via development containers or full-scale deployment on Azure Machine Learning pipelines.

Related

  • Project
  • Project
  • Project
  • Project