Skip to main content

SciPhi R2R

Project description

Docs Discord Github Stars Commits-per-week License: MIT

R2R Answer Engine

Build, scale, and manage user-facing Retrieval-Augmented Generation applications in production.

About

R2R was designed to bridge the gap between local LLM experimentation and scalable, production-ready Retrieval-Augmented Generation (RAG) applications. R2R provides a the latest techniques in RAG and is built around a RESTful API for ease of use.

For a more complete view of R2R, check out the full documentation.

Key Features

  • 📁 Multimodal Support: Ingest files ranging from .txt, .pdf, .json to .png, .mp3, and more.
  • 🔍 Hybrid Search: Combine semantic and keyword search with reciprocal rank fusion for enhanced relevancy.
  • 🔗 Graph RAG: Automatically extract relationships and build knowledge graphs.
  • 🗂️ App Management: Efficiently manage documents and users with full authentication.
  • 🔭 Observability: Observe and analyze your RAG engine performance.
  • 🧩 Configurable: Provision your application using intuitive configuration files.
  • 🔌 Extensibility: Develop your application further with easy builder + factory pattern.
  • 🖥️ Dashboard: Use the R2R Dashboard, an open-source React+Next.js app with optional authentication, to interact with R2R via GUI.

Install with pip

The recommended way to get started with R2R is by using our CLI.

pip install r2r

Then, after installing R2R, it is recommended to launch with Docker, if possible:

# export OPENAI_API_KEY=sk-...
r2r serve --docker

Alternatively, you may run R2R directly from the python package, but additional dependencies like Postgres+pgvector must be configured:

# export OPENAI_API_KEY=sk-...
# export POSTGRES...
r2r --config-name=default serve

Quickstart

After installing, the R2R Quickstart is your go to for a step-by-step guide to get up and running with R2R in minutes. The guide demonstrates R2R's Retrieval-Augmented Generation (RAG) system by ingesting sample documents and then showcasing features for search, RAG, logging, analytics, and document management.

Getting Started

To get started with R2R, we recommend starting with the quickstart and then moving on to specific cookbooks.

API & SDKs

Auth & Admin Features

  • User Auth: A cookbook showing how to authenticate users using R2R.
  • Analytics & Observability: A cookbook showing R2Rs end to end logging and analytics.
  • Dashboard: A how-to guide on connecting with the R2R Admin/User Dashboard.

RAG Cookbooks

  • Multiple LLMs: A simple cookbook showing how R2R supports multiple LLMs.
  • Hybrid Search: A brief introduction to running hybrid search with R2R.
  • Multimodal RAG: A cookbook on multimodal RAG with R2R.
  • Knowledge Graphs: A walkthrough of automatic knowledge graph generation with R2R.
  • Advanced Graphs: A walkthrough of R2Rs advanced RAG features.
  • Local RAG: A quick cookbook demonstration of how to run R2R with local LLMs.
  • Reranking: A short guide on how to apply reranking to R2R results.

Community

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.

Contributing

We welcome contributions of all sizes! Here's how you can help:

Our Contributors

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kense_r2r-0.2.85.tar.gz (4.2 MB view details)

Uploaded Source

Built Distribution

kense_r2r-0.2.85-py3-none-any.whl (4.3 MB view details)

Uploaded Python 3

File details

Details for the file kense_r2r-0.2.85.tar.gz.

File metadata

  • Download URL: kense_r2r-0.2.85.tar.gz
  • Upload date:
  • Size: 4.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.9.19 Linux/6.5.0-1025-azure

File hashes

Hashes for kense_r2r-0.2.85.tar.gz
Algorithm Hash digest
SHA256 a7d0870082837d417c5a54b53bb3d2bc4101e9fffddd0d391e02c984c230c2dc
MD5 4fab03017b12f309cc65a594d8c5dba4
BLAKE2b-256 f06e855d0137ad8e1f85019882174da8fa6b78691d8b8cd902cf5a18ab53491d

See more details on using hashes here.

File details

Details for the file kense_r2r-0.2.85-py3-none-any.whl.

File metadata

  • Download URL: kense_r2r-0.2.85-py3-none-any.whl
  • Upload date:
  • Size: 4.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.9.19 Linux/6.5.0-1025-azure

File hashes

Hashes for kense_r2r-0.2.85-py3-none-any.whl
Algorithm Hash digest
SHA256 cc25241388ab7cdf136591270a32e1ae6e65b2399cbbb01af39a717da4eb875d
MD5 49a4f8913ab05b3bf0cb11aed4f7ae78
BLAKE2b-256 b31c1f3b0b564c0f02472183a646276670ad525d64a67b1e41960e6cb94ce86e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page