R2R

Stale
GitHub Python MIT

Description

A production-ready Agentic RAG system with RESTful API, featuring multimodal document ingestion, hybrid search, knowledge graph construction, and agent-driven retrieval-augmented generation workflows.

Key Features

  • Production-ready Agentic RAG system with RESTful API for retrieval-augmented generation workflows
  • Multimodal document ingestion supporting .txt, .pdf, .json, .png, .mp3 and more formats
  • Hybrid search combining semantic and keyword search with reciprocal rank fusion
  • Automatic knowledge graph construction with entity and relationship extraction
  • Deep Research API for multi-step reasoning across knowledgebase and internet sources
  • Complete user and access management with authentication and collection-based organization

Use Cases

💡 Building enterprise knowledge management systems with intelligent document retrieval
💡 Creating AI-powered Q&A systems over internal company documents and data
💡 Implementing deep research workflows that combine private data with web sources
💡 Deploying production RAG pipelines with full authentication and access control

Strengths & Limitations

Strengths

  • High community interest (8.0k stars)
  • Permissive open-source license (MIT)
  • Established track record (2 years in production)

⚠️ Limitations

  • No updates in over 10 months

Categories

Quick Start

Install: pip install r2r. Set OPENAI_API_KEY. Run: python -m r2r.serve. Use client = R2RClient(base_url='http://localhost:7272') for API access.

Related Projects

KAG

9.0k · Python
Stale B

KAG is a logical form-guided reasoning and retrieval framework based on OpenSPG engine and LLMs for building logical reasoning and factual Q&A solutions for professional domain knowledge bases, effectively overcoming the limitations of traditional RAG vector similarity models.

knowledge-graphragreasoning +2
  • · Bidirectional knowledge-text indexing: KG nodes cross-reference original text chunks for complete context preservation
  • · Logic form-guided hybrid reasoning: transforms natural language into formal logical inference combining exact match, text retrieval, numerical computation, and semantic reasoning
  • · Schema-constrained knowledge construction: supports both free-form information extraction and structured domain expert knowledge representation

Graphiti

30.5k · Python
Active A+

Graphiti is a temporal knowledge-graph engine for agent memory, helping systems continuously accumulate long-term context.

memoryknowledge-graphrag +1
  • · Temporal fact management — Each fact has a validity window; old facts are invalidated, not deleted. Query what's true now or at any point in time
  • · Provenance & lineage tracking — Every entity and relationship traces back to raw data episodes, full lineage from derived fact to source
  • · Hybrid retrieval — Combines semantic embeddings, keyword BM25, and graph traversal for low-latency high-precision queries without LLM summarization

LanceDB

11.3k · Rust
Active A

An open-source embedded retrieval library for multimodal AI with zero server configuration, using the Lance columnar format for efficient vector search and filtering, ideal for agent memory and RAG applications.

vector-databaseembeddingsretrieval +2
  • · Millisecond vector search with state-of-the-art indexing for billions of vectors
  • · Comprehensive search: vector similarity, full-text search, and SQL queries in one platform
  • · Multimodal support — store and query text, images, videos, point clouds, and more

GraphRAG

35.8k · Python
Active A+

A modular graph-based Retrieval-Augmented Generation system by Microsoft that uses LLMs to extract structured knowledge graphs from text, enabling global and local community summarization queries.

graphragragknowledge-graph +3
  • · Knowledge Graph Construction — Auto-extract entities and relations from unstructured text using LLMs
  • · Community Detection & Summarization — Leiden algorithm-based graph community detection with hierarchical summaries
  • · Global Queries — Answer cross-document reasoning questions via community summaries