Introduction
R2R offers a flexible configuration system that allows you to customize your Retrieval-Augmented Generation (RAG) applications. This guide introduces the key concepts and methods for configuring R2R.Configuration Levels
R2R supports two main levels of configuration:- Server Configuration: Define default server-side settings.
- Runtime Configuration: Dynamically override settings when making API calls.
Server Configuration
The default settings for alight
R2R installation are specified in the r2r.toml
file.
When doing a full
installation the R2R CLI uses the full.toml
to override some of the default light default settings with those of the added providers.
To create your own custom configuration:
- Create a new file named
my_r2r.toml
in your project directory. - Add only the settings you wish to customize. For example:
my_r2r.toml
- Launch R2R with the CLI using your custom configuration: