Local system
R2R Local System Installation
This guide will walk you through installing and running R2R on your local system without using Docker. This method allows for more customization and control over individual components.
Prerequisites
Before starting, ensure you have the following installed and/or available in the cloud:
- Python 3.12 or higher
- pip (Python package manager)
- Git
- Postgres + pgvector
Install the R2R CLI and extra dependencies
First, install the R2R CLI with the additional light
dependencies:
The core
and ingestion-bundle
dependencies, combined with a Postgres database, provide the necessary components to deploy a user-facing R2R application into production.
If you need advanced features like orchestration or parsing with Unstructured.io
then refer to the full installation .
Environment Setup
R2R requires connections to various services. Set up the following environment variables based on your needs:
Running R2R
After setting up your environment, you can start R2R using the following command:
For local LLM usage:
Python Development Mode
For those looking to develop R2R locally:
-
Install Poetry: Follow instructions on the official Poetry website.
-
Clone and install dependencies:
-
Setup environment: Follow the steps listed in the Environment Setup section above. Additionally, you may introduce a local .env file to make development easier, and you can customize your local
r2r.toml
to suit your specific needs. -
Start your server:
Next Steps
After successfully installing R2R:
-
Verify Installation: Ensure all components are running correctly by accessing the R2R API at http://localhost:7272/v2/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: Configure R2R components with the Configuration Guide.
If you encounter any issues during installation or setup, please use our Discord community or GitHub repository to seek assistance.