r2r-3.6.6
3.6.6
3.6.5
3.6.4
3.6.3
3.6.2
3.6.1
3.6.0
3.5.9
3.5.8
3.5.7
3.5.6
3.5.5
3.5.4
3.5.3
3.5.2
3.5.19
3.5.18
3.5.17
3.5.16
3.5.15
3.5.14
3.5.13
3.5.12
3.5.11
3.5.10
3.5.1
3.5.0
3.4.6
3.4.5
3.4.4
3.4.3
3.4.2
3.4.1
3.4.0
3.3.9
3.3.8
3.3.7
3.3.6
3.3.5
3.3.41
3.3.40
3.3.4
3.3.32
3.3.31
3.3.3
3.3.29
3.3.28
3.3.27
3.3.24
3.3.23
3.3.22
3.3.21
3.3.2
3.3.19
3.3.18
3.3.17
3.3.16
3.3.15
3.3.13
3.3.11
3.3.10
3.3.1
3.3.0
3.2.9
3.2.8
3.2.6
3.2.5
3.2.41
3.2.40
3.2.4
3.2.39
3.2.38
3.2.37
3.2.36
3.2.35
3.2.34
3.2.33
3.2.32
3.2.31
3.2.30
3.2.3
3.2.2
3.2.17
3.2.16
3.2.15
3.2.14
3.2.13
3.2.12
3.2.11
3.2.10
3.2.1
3.2.0
3.1.53
3.1.52
3.1.51
3.1.50
3.1.48
3.1.47
3.1.46
3.1.45
3.1.44
3.1.43
3.1.42
3.1.41
3.1.40
3.1.38
3.1.37
3.1.36
3.1.35
3.1.34
3.1.33
3.1.32
3.1.31
3.1.30
3.1.29
3.1.28
3.1.27
3.1.26
3.1.25
3.1.24
3.1.23
3.1.22
3.1.21
3.1.20
3.1.2
3.1.19
3.1.17
3.1.16
3.1.14
3.1.13
3.1.12
3.1.1
3.1.0
3.0.8
3.0.7
3.0.6
3.0.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.85
0.2.84
0.2.83
0.2.82
0.2.81
0.2.80
0.2.79
0.2.78
0.2.77
0.2.76
0.2.75
0.2.74
0.2.73
0.2.72
0.2.71
0.2.70
0.2.69
0.2.68
0.2.67
0.2.66
0.2.65
0.2.64
0.2.62
0.2.61
0.2.60
0.2.59
0.2.58
0.2.57
0.2.56
0.2.55
0.2.54
0.2.53
0.2.52
0.2.51
0.2.50
0.2.49
0.2.47
0.2.46
0.2.45
0.2.43
0.2.42
0.2.41
0.2.40
0.2.4
0.2.39
0.2.38
0.2.37
0.2.36
0.2.35
0.2.33
0.2.32
0.2.31
0.2.3
0.2.22
0.2.21
0.2.20
0.2.2
0.2.19
0.2.18
0.2.17
0.2.16
0.2.15
0.2.12
0.2.11
0.2.1
0.2.0
0.1.35
0.1.34
0.1.33
0.1.32
0.1.31
0.1.29
0.1.28
0.1.27
0.1.26
0.1.25
0.1.24
0.1.23
0.1.22
0.1.21
0.1.2
0.1.1
0.1.0
3.6.6
3.6.5
3.6.4
3.6.3
3.6.2
3.6.1
3.6.0
3.5.9
3.5.8
3.5.7
3.5.6
3.5.5
3.5.4
3.5.3
3.5.2
3.5.19
3.5.18
3.5.17
3.5.16
3.5.15
3.5.14
3.5.13
3.5.12
3.5.11
3.5.10
3.5.1
3.5.0
3.4.6
3.4.5
3.4.4
3.4.3
3.4.2
3.4.1
3.4.0
3.3.9
3.3.8
3.3.7
3.3.6
3.3.5
3.3.41
3.3.40
3.3.4
3.3.32
3.3.31
3.3.3
3.3.29
3.3.28
3.3.27
3.3.24
3.3.23
3.3.22
3.3.21
3.3.2
3.3.19
3.3.18
3.3.17
3.3.16
3.3.15
3.3.13
3.3.11
3.3.10
3.3.1
3.3.0
3.2.9
3.2.8
3.2.6
3.2.5
3.2.41
3.2.40
3.2.4
3.2.39
3.2.38
3.2.37
3.2.36
3.2.35
3.2.34
3.2.33
3.2.32
3.2.31
3.2.30
3.2.3
3.2.2
3.2.17
3.2.16
3.2.15
3.2.14
3.2.13
3.2.12
3.2.11
3.2.10
3.2.1
3.2.0
3.1.53
3.1.52
3.1.51
3.1.50
3.1.48
3.1.47
3.1.46
3.1.45
3.1.44
3.1.43
3.1.42
3.1.41
3.1.40
3.1.38
3.1.37
3.1.36
3.1.35
3.1.34
3.1.33
3.1.32
3.1.31
3.1.30
3.1.29
3.1.28
3.1.27
3.1.26
3.1.25
3.1.24
3.1.23
3.1.22
3.1.21
3.1.20
3.1.2
3.1.19
3.1.17
3.1.16
3.1.14
3.1.13
3.1.12
3.1.1
3.1.0
3.0.8
3.0.7
3.0.6
3.0.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.85
0.2.84
0.2.83
0.2.82
0.2.81
0.2.80
0.2.79
0.2.78
0.2.77
0.2.76
0.2.75
0.2.74
0.2.73
0.2.72
0.2.71
0.2.70
0.2.69
0.2.68
0.2.67
0.2.66
0.2.65
0.2.64
0.2.62
0.2.61
0.2.60
0.2.59
0.2.58
0.2.57
0.2.56
0.2.55
0.2.54
0.2.53
0.2.52
0.2.51
0.2.50
0.2.49
0.2.47
0.2.46
0.2.45
0.2.43
0.2.42
0.2.41
0.2.40
0.2.4
0.2.39
0.2.38
0.2.37
0.2.36
0.2.35
0.2.33
0.2.32
0.2.31
0.2.3
0.2.22
0.2.21
0.2.20
0.2.2
0.2.19
0.2.18
0.2.17
0.2.16
0.2.15
0.2.12
0.2.11
0.2.1
0.2.0
0.1.35
0.1.34
0.1.33
0.1.32
0.1.31
0.1.29
0.1.28
0.1.27
0.1.26
0.1.25
0.1.24
0.1.23
0.1.22
0.1.21
0.1.2
0.1.1
0.1.0
توضیحات
SciPhi R2R
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | r2r-3.6.6 |
| نام | r2r |
| نسخه کتابخانه | 3.6.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Owen Colegrove <owen@sciphi.ai> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/r2r/ |
| مجوز | MIT |
<img width="1217" alt="Screenshot 2025-03-27 at 6 35 02 AM" src="https://github.com/user-attachments/assets/10b530a6-527f-4335-b2e4-ceaa9fc1219f" />
<h3 align="center">
The most advanced AI retrieval system.
Agentic Retrieval-Augmented Generation (RAG) with a RESTful API.
</h3>
<div align="center">
<div>
<a href="https://r2r-docs.sciphi.ai/"><strong>Docs</strong></a> ·
<a href="https://github.com/SciPhi-AI/R2R/issues/new?assignees=&labels=&projects=&template=bug_report.md&title="><strong>Report Bug</strong></a> ·
<a href="https://github.com/SciPhi-AI/R2R/issues/new?assignees=&labels=&projects=&template=feature_request.md&title="><strong>Feature Request</strong></a> ·
<a href="https://discord.gg/p6KqD2kjtB"><strong>Discord</strong></a>
</div>
<br />
<p align="center">
<a href="https://r2r-docs.sciphi.ai"><img src="https://img.shields.io/badge/docs.sciphi.ai-3F16E4" alt="Docs"></a>
<a href="https://discord.gg/p6KqD2kjtB"><img src="https://img.shields.io/discord/1120774652915105934?style=social&logo=discord" alt="Discord"></a>
<a href="https://github.com/SciPhi-AI"><img src="https://img.shields.io/github/stars/SciPhi-AI/R2R" alt="Github Stars"></a>
<a href="https://github.com/SciPhi-AI/R2R/pulse"><img src="https://img.shields.io/github/commit-activity/w/SciPhi-AI/R2R" alt="Commits-per-week"></a>
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-purple.svg" alt="License: MIT"></a>
</p>
</div>
# About
R2R is an advanced AI retrieval system supporting Retrieval-Augmented Generation (RAG) with production-ready features. Built around a RESTful API, R2R offers multimodal content ingestion, hybrid search, knowledge graphs, and comprehensive document management.
R2R also includes a **Deep Research API**, a multi-step reasoning system that fetches relevant data from your knowledgebase and/or the internet to deliver richer, context-aware answers for complex queries.
# Usage
```python
# Basic search
results = client.retrieval.search(query="What is DeepSeek R1?")
# RAG with citations
response = client.retrieval.rag(query="What is DeepSeek R1?")
# Deep Research RAG Agent
response = client.retrieval.agent(
message={"role":"user", "content": "What does deepseek r1 imply? Think about market, societal implications, and more."},
rag_generation_config={
"model": "anthropic/claude-3-7-sonnet-20250219",
"extended_thinking": True,
"thinking_budget": 4096,
"temperature": 1,
"top_p": None,
"max_tokens_to_sample": 16000,
},
)
```
## Getting Started
```bash
# Quick install and run in light mode
pip install r2r
export OPENAI_API_KEY=sk-...
python -m r2r.serve
# Or run in full mode with Docker
# git clone git@github.com:SciPhi-AI/R2R.git && cd R2R
# export R2R_CONFIG_NAME=full OPENAI_API_KEY=sk-...
# docker compose -f compose.full.yaml --profile postgres up -d
```
For detailed self-hosting instructions, see the [self-hosting docs](https://r2r-docs.sciphi.ai/self-hosting/installation/overview).
## Demo
https://github.com/user-attachments/assets/173f7a1f-7c0b-4055-b667-e2cdcf70128b
## Using the API
### 1. Install SDK & Setup
```bash
# Install SDK
pip install r2r # Python
# or
npm i r2r-js # JavaScript
```
### 2. Client Initialization
```python
from r2r import R2RClient
client = R2RClient(base_url="http://localhost:7272")
```
```javascript
const { r2rClient } = require('r2r-js');
const client = new r2rClient("http://localhost:7272");
```
### 3. Document Operations
```python
# Ingest sample or your own document
client.documents.create(file_path="/path/to/file")
# List documents
client.documents.list()
```
## Key Features
- **📁 Multimodal Ingestion**: Parse `.txt`, `.pdf`, `.json`, `.png`, `.mp3`, and more
- **🔍 Hybrid Search**: Semantic + keyword search with reciprocal rank fusion
- **🔗 Knowledge Graphs**: Automatic entity & relationship extraction
- **🤖 Agentic RAG**: Reasoning agent integrated with retrieval
- **🔐 User & Access Management**: Complete authentication & collection system
## Community & Contributing
- [Join our Discord](https://discord.gg/p6KqD2kjtB) for support and discussion
- Submit [feature requests](https://github.com/SciPhi-AI/R2R/issues/new?assignees=&labels=&projects=&template=feature_request.md&title=) or [bug reports](https://github.com/SciPhi-AI/R2R/issues/new?assignees=&labels=&projects=&template=bug_report.md&title=)
- Open PRs for new features, improvements, or documentation
### Our Contributors
<a href="https://github.com/SciPhi-AI/R2R/graphs/contributors">
<img src="https://contrib.rocks/image?repo=SciPhi-AI/R2R" />
</a>
نیازمندی
| مقدار | نام |
|---|---|
| - | aiofiles<25.0.0,>=24.1.0 |
| - | alembic<2.0.0,>=1.13.3 |
| - | fastapi<0.116.0,>=0.115.11 |
| - | httpx>=0.27.0 |
| - | openai>=1.99.0 |
| - | python-dotenv<2.0.0,>=1.0.1 |
| - | psycopg-binary<4.0.0,>=3.2.3 |
| - | requests<3.0.0,>=2.31.0 |
| - | tiktoken<0.9.0,>=0.8.0 |
| - | toml<0.11.0,>=0.10.2 |
| - | types-requests<3.0.0,>=2.31.0 |
| - | types-aiofiles<25.0.0,>=24.1.0.20240626 |
| - | typing-extensions<5.0.0,>=4.12.2 |
| - | pydantic>=2.10.6 |
| - | python-json-logger>=3.2.1 |
| - | filetype>=1.2.0 |
| xtr | aiohttp<4.0.0,>=3.10.10; |
| xtr | aioshutil<2.0,>=1.5; |
| xtr | aiosqlite<0.21.0,>=0.20.0; |
| xtr | anthropic>=0.49.0; |
| xtr | apscheduler<4.0.0,>=3.10.4; |
| xtr | asyncpg<0.30.0,>=0.29.0; |
| xtr | azure-ai-inference<2.0.0,>=1.0.0b8; |
| xtr | azure-ai-ml<2.0.0,>=1.24.0; |
| xtr | bcrypt<5.0.0,>=4.1.3; |
| xtr | beautifulsoup4<5.0.0,>=4.12.3; |
| xtr | boto3<2.0.0,>=1.35.17; |
| xtr | colorlog<7.0.0,>=6.9.0; |
| xtr | docutils<0.22.0,>=0.21.2; |
| xtr | epub<0.6.0,>=0.5.2; |
| xtr | firecrawl-py>=1.13.5; |
| xtr | fsspec<2025.0.0,>=2024.6.0; |
| xtr | future<2.0.0,>=1.0.0; |
| xtr | google-auth<3.0.0,>=2.37.0; |
| xtr | google-auth-oauthlib<2.0.0,>=1.2.1; |
| xtr | google-genai<0.7.0,>=0.6.0; |
| xtr | gunicorn<22.0.0,>=21.2.0; |
| xtr | hatchet-sdk==0.47.0; |
| xtr | litellm>=1.69.3; |
| xtr | markdown<4.0,>=3.6; |
| xtr | mistralai>=1.5.2; |
| xtr | msg-parser>=1.2.0; |
| xtr | networkx<4.0,>=3.3; |
| xtr | numpy<1.29.0,>=1.22.4; |
| xtr | olefile<0.48,>=0.47; |
| xtr | ollama<0.4.0,>=0.3.1; |
| xtr | openpyxl<4.0.0,>=3.1.2; |
| xtr | orgparse<0.5.0,>=0.4.20231004; |
| xtr | pdf2image>=1.17.0; |
| xtr | pillow<12.0.0,>=11.1.0; |
| xtr | pillow-heif<0.22.0,>=0.21.0; |
| xtr | psutil<7.0.0,>=6.0.0; |
| xtr | pydantic[email]<3.0.0,>=2.8.2; |
| xtr | pyjwt<3.0.0,>=2.8.0; |
| xtr | pynacl<2.0.0,>=1.5.0; |
| xtr | pypdf<5.0.0,>=4.2.0; |
| xtr | pypdf2<4.0.0,>=3.0.1; |
| xtr | python-docx<2.0.0,>=1.1.0; |
| xtr | python-multipart<0.0.19,>=0.0.9; |
| xtr | python-pptx<2.0.0,>=1.0.1; |
| xtr | pyyaml<7.0.0,>=6.0.1; |
| xtr | sendgrid<7.0.0,>=6.11.0; |
| xtr | mailersend<0.6.0,>=0.5.6; |
| xtr | sentry-sdk<3.0.0,>=2.20.0; |
| xtr | sqlalchemy<3.0.0,>=2.0.30; |
| xtr | striprtf<0.0.29,>=0.0.28; |
| xtr | supabase<3.0.0,>=2.15.0; |
| xtr | tokenizers==0.19; |
| xtr | unstructured-client==0.34.0; |
| xtr | uvicorn<0.28.0,>=0.27.0.post1; |
| xtr | vecs<0.5.0,>=0.4.0; |
| xtr | xlrd<3.0.0,>=2.0.1; |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| <3.13,>=3.10 | Python |
نحوه نصب
نصب پکیج whl r2r-3.6.6:
pip install r2r-3.6.6.whl
نصب پکیج tar.gz r2r-3.6.6:
pip install r2r-3.6.6.tar.gz