Welcome to the R2R API

R2R (RAG to Riches) is a powerful library that offers both methods and a REST API for document ingestion, Retrieval-Augmented Generation (RAG), evaluation, and additional features like observability, analytics, and document management. This API documentation will guide you through the various endpoints and functionalities R2R provides.

This API documentation is designed to help developers integrate R2R’s capabilities into their applications efficiently. Whether you’re building a search engine, a question-answering system, or a document management solution, the R2R API has you covered.

Key Features

R2R API offers a wide range of features, including:

  • Document Ingestion and Management
  • AI-Powered Search (Vector, Hybrid, and Knowledge Graph)
  • Retrieval-Augmented Generation (RAG)
  • User Auth & Management
  • Observability and Analytics

R2R GitHub Repository

View the R2R source code and contribute

Getting Started

To get started with the R2R API, you’ll need to:

  1. Install R2R in your environment
  2. Run the server python -m r2r.main.execution serve, or customize your FastAPI for production settings.

For detailed installation and setup instructions, please refer to our Installation Guide.