R2R (RAG to Riches) is the most advanced AI retrieval system, supporting Retrieval-Augmented Generation (RAG) with production-ready features. Built around a containerized RESTful API, R2R offers multimodal content ingestion, hybrid search functionality, configurable GraphRAG, and comprehensive user and document management.
For a more complete view of R2R, check out the full documentation.
- 📁 Multimodal Ingestion: Parse
.txt
,.pdf
,.json
,.png
,.mp3
, and more. - 🔍 Hybrid Search: Combine semantic and keyword search with reciprocal rank fusion for enhanced relevancy.
- 🔗 Knowledge Graphs: Automatically extract entities and relationships and build knowledge graphs.
- 📊 GraphRAG: Cluster and summarize communities with over your created graphs for even richer insights.
- 🗂️ User Management: Efficiently manage documents and user roles within R2R.
- 🔭 Observability: Observe and analyze your RAG engine performance.
- 🧩 Configuration: Setup your application using intuitive configuration files.
- 🖥️ Dashboard: An open-source React+Next.js admin dashboard to interact with R2R via GUI.
-
Release 3.3.0 December 3, 2024
Warning: These changes are breaking!
The recommended way to get started with R2R is by using our CLI.
pip install r2r
You may run R2R directly from the python package, but additional dependencies like Postgres+pgvector must be configured and the full R2R core is required:
# export OPENAI_API_KEY=sk-...
# export POSTGRES...
pip install 'r2r[core,ingestion-bundle]'
r2r --config-name=default serve
Alternatively, R2R can be launched alongside its requirements inside Docker:
# export OPENAI_API_KEY=sk-...
r2r serve --docker --full
The command above will install the full
installation which includes Hatchet for orchestration and Unstructured.io for parsing.
- Installation: Quick installation of R2R using Docker or pip
- Quickstart: A quick introduction to R2R's core features
- Setup: Learn how to setup and configure R2R
- API & SDKs: API reference and Python/JS SDKs for interacting with R2R
-
Advanced RAG Pipelines
- RAG Agent: R2R's powerful RAG agent
- Hybrid Search: Introduction to hybrid search
- Advanced RAG: Advanced RAG features
-
Orchestration
- Orchestration: R2R event orchestration
-
User Management
- Web Development: Building webapps using R2R
- User Auth: Authenticating users
- Collections: Document collections
- Analytics & Observability: End-to-end logging and analytics
- Web Application: Connecting with the R2R Application
Join our Discord server to get support and connect with both the R2R team and other developers in the community. Whether you're encountering issues, looking for advice on best practices, or just want to share your experiences, we're here to help.
We welcome contributions of all sizes! Here's how you can help:
- Open a PR for new features, improvements, or better documentation.
- Submit a feature request or bug report