R2R
Self-hostable retrieval engine with agentic RAG, hybrid search, and knowledge graphs behind a REST API.
About
R2R packages a full retrieval-augmented generation backend behind a RESTful API, aimed at teams that want production features rather than a notebook demo. Ingestion handles text, PDFs, images, audio, and JSON, feeding hybrid search that combines semantic vectors with keyword matching, and the engine can automatically build knowledge graphs with entity and relationship extraction to support graph-augmented retrieval. A Deep Research API runs multi-step agentic reasoning that fetches evidence before answering, and the server includes authentication plus user and collection management, so multi-tenant deployments need no extra plumbing. A lightweight mode installs with pip install r2r, while the full stack deploys through Docker Compose with PostgreSQL and pgvector handling both relational data and vectors; Python and JavaScript SDKs cover both modes. LLM and embedding providers are pluggable, including locally hosted models, which keeps the whole system self-hostable on private infrastructure. The code is MIT licensed and the SciPhi-AI repository holds around 7,900 stars, though commit activity has slowed since late 2025.
Should you use R2R?
Pick it when
Choose R2R when you want a self-hosted RAG backend behind a REST API with hybrid search, knowledge graphs, auth, and multi-tenant collections already built, and your stack is comfortable with Postgres and pgvector.
Look elsewhere when
Skip it if long-term maintenance matters to you, since commit activity has slowed since late 2025, or if you want an end-user UI first; RAGFlow or Onyx ship complete apps, and LlamaIndex lets you assemble your own backend.
Alternatives to R2R
- RAGFlow
Ships a full web UI with deep document parsing and chunk citations, better for end users, while R2R is API-first for developers.
- LightRAG
Lighter graph plus vector retrieval with incremental indexing and backends from Postgres to Neo4j, while R2R bundles user and collection management for multi-tenant apps.
- GraphRAG
Answers corpus-wide theme questions through community summaries, but indexing is LLM-heavy and it is a pipeline with no server or user management.
- Cognita
Similar production-minded modular design with a no-code frontend, but explicitly no longer maintained, so weaker as a base.
Reviews (0)
Leave a Review
No reviews yet. Be the first to review!
Details
- Category
- RAG & Document Retrieval
- Price
- Free
- Platform
- Local/Desktop
- Difficulty
- Intermediate (3/5)
- License
- MIT
- Added
- Jul 29, 2026