Skip to main content

Alt text describing the image


RAGOpt is a Python optimization framework that eliminates manual hyperparameter guesswork in your RAG pipelines. It uses Bayesian optimization to systematically tune over 20+ hyperparameters, from chunk size and overlap to model selection and embedding strategies automatically discovering the best configurations for your specific use case

Why RAGOpt?

Optimizing Retrieval-Augmented Generation (RAG) pipelines is complex and highly dependent on configuration choices that impact quality, latency, and cost. Unlike AutoRAG, which relies on grid search, or Ragas, which enforces rigid evaluation frameworks, RAGOpt is partially opinionated: it provides smart defaults while staying flexible with any LangChain-compatible model or provider. RAGOpt helps answer a question like:
What’s the best RAG configuration to minimize cost and latency while maintaining accuracy and safety ?
For example, here’s you can get best RAG configurations in a few iterations using RAGOpt optimizer:
This will give you the optimal RAG configuration for your dataset.

Get Started

Quick Start

Get started with RAGOpt in under 5 minutes.

Main Concepts

Get familiar with the underlying architecture and key design of RAGOpt

Configuration Guide

Learn about the Hyperparameters RAG Configuration file in details

Optimization Workflows

Integrate RAGOpt with your custom RAG pipeline.