R2R Full Installation
This guide will walk you through installing and running R2R using Docker, which is the quickest and easiest way to get started.
Prerequisites
- Docker installed on your system. If you haven’t installed Docker yet, please refer to the official Docker installation guide.
Installation
Set environment variables
Navigate to the env directory and set up your environment variables:
Required Environment Variables
Configuration Selection (choose one)
Set
R2R_CONFIG_NAME=full_ollama
to use local models instead of cloud providers.
LLM API Keys (at least one required)
For Ollama, the default value is
http://host.docker.internal:11434
External Agent Tools (optional)
These environment variables are only required if you plan to use the web_search
or web_scrape
tools with the Agentic RAG functionality. R2R will function without these for local document operations.
When starting R2R with agent tools, include these variables with your launch command:
See the full configuration guide for additional options.
Custom Configuration (Optional)
If you’re using a custom configuration file instead of the built-in options, follow these steps:
- Create a TOML configuration file in the
user_configs
directory:
- Update your
r2r-full.env
file to point to this configuration:
The path in R2R_CONFIG_PATH
must use the container path (/app/user_configs/
), not your local system path.
Make sure the specified configuration file actually exists in the user_configs
directory. The application will fail to start if it cannot find the file at the specified path.
For examples and configuration templates, see the Configuration Guide.
Interact with R2R
Ether install the Python or JS SDK, or navigate to http://localhost:7273 to interact with R2R via the dashboard.
To install the Python SDK:
Next Steps
After successfully installing R2R:
-
Verify Installation: Ensure all components are running correctly by accessing the R2R API at http://localhost:7272/v3/health.
-
Quick Start: Follow our R2R Quickstart Guide to set up your first RAG application.
-
In-Depth Tutorial: For a more comprehensive understanding, work through our R2R Walkthrough.
-
Customize Your Setup: Configuration your R2R system.
If you encounter any issues during installation or setup, please use our Discord community or GitHub repository to seek assistance.