Quickstart
Getting started with R2R is easy.
Create an Account
Create an account with SciPhi Cloud. It’s free!
For those interested in deploying R2R locally, please refer here.
Install the SDK or CLI
R2R offers a CLI, as well as a Python and JavaScript SDK to interact with.
Python and CLI
JavaScript
Environment
After signing into SciPhi Cloud, navigate to the homepage and click Create New Key
(for the self-hosted quickstart, refer here):
Next, store your R2R API key in your local CLI, or set the local environment variable R2R_API_KEY
. Be sure to include the entire API key `pk_..
.sk_...
`.
CLI
Python
JavaScript
Ingesting files
When you ingest files into R2R, the server accepts the task, processes and chunks the file, and generates a summary of the document.
CLI
Python
JavaScript
Example output:
Executing a search
Perform a search query:
CLI
Python
JavaScript
The search query will use basic similarity search to find the most relevant documents. You can use advanced search methods like hybrid search or graph search depending on your use case.
Example output:
Additional Features
R2R offers the additional features below to enhance your document management and user experience.
Graphs
R2R provides powerful entity and relationshipo extraction capabilities that enhance document understanding and retrieval. These can leveraged to construct knowledge graphs inside R2R. The system can automatically identify entities, build relationships between them, and create enriched knowledge graphs from your document collection.
Users and Collections
R2R provides a complete set of user authentication and management features, allowing you to implement secure and feature-rich authentication systems or integrate with your preferred authentication provider. Further, collections exist to enable efficient access control and organization of users and documents.
Learn how to implement user registration, login, email verification, and more using R2R’s built-in authentication capabilities.
Discover how to create, manage, and utilize collections in R2R for granular access control and document organization.
Next Steps
Now that you have a basic understanding of R2R’s core features, you can explore more advanced topics:
- Dive into document ingestion and the document reference.
- Learn about search and RAG and the retrieval reference.
- Try advanced techniques like knowledge-graphs and refer to the graph reference.
- Learn about user authentication to secure your application permissions and the users API reference.
- Organize your documents using collections for granular access control.