RAGOpt provides an end-to-end framework for optimizing RAG (Retrieval-Augmented Generation) pipelines using Multi-Objective Bayesian Optimization. The framework automatically tunes hyperparameters to find Pareto-optimal configurations that balance multiple objectives like cost, latency, and quality metrics.Documentation Index
Fetch the complete documentation index at: https://ragopt.aboneda.com/llms.txt
Use this file to discover all available pages before exploring further.
Framework Architecture
- Dataset Generation - Create synthetic question-answer pairs from your documents
- Search Space - Define the hyperparameter space to explore
- BO Input Encoder - Encode the RAG hyperparameter from and to pytorch tensors
- Sampler - Sampling choices from search space using SOBOL sampler by default
- RAG Manager - Orchestrate component loading and configuration sampling
- Evaluation - Measure performance across multiple metrics
- Optimization - Find optimal configurations using Bayesian Optimization