Developer Quickstart
Getting started with SciPhi Cloud
This guide shows developers how to:
- Ingest files into your SciPhi Cloud
- Search over the ingested files
- Request or stream a RAG (Retrieval-Augmented Generation) response
- Use the RAG Agent for more complex, interactive queries
Be sure to complete the deployment instructions before continuing with this guide. If you would prefer to start interacting with your deployment from the cloud, then refer here.
Installing the R2R CLI &/or SDK
PyPi is currently the primary supported method for installing the R2R client. Similarly, the javascript client can be installed through npm, though this does not yet include a CLI.
We are actively working on building more lightweight CLI options. Refer to the dedicated documentation sections for further information about the currently available options:
The remainder of this quickstart will proceed with CLI commands, but all of these commands are easily reproduced inside of the Javascript or Python SDK.
Set your environment variable
Start by clicking the copy icon next to your deployed pipeline URL (https://sciphi-9ab60cab-0ff5-4cea-9d41-80f6d7607c3e-qwpin2swwa-ue.a.run.app
in the image below) and then exporting this into your local environment variable:
Next, check that you are able to communicate with the deployment from your command line:
Ingesting file(s)
The following command ingests a default sample file r2r/examples/data/aristotle.txt
:
To ingest your own files, replace the file path with your desired file or directory:
Executing a search
Perform a search query:
RAG Response
Generate a RAG response:
Stream a RAG Response
Stream a RAG response:
Using the RAG Agent
The RAG Agent provides a more interactive and intelligent way to query your knowledge base. Here’s an example of how to use it:
This example shows how to use the RAG Agent for a multi-turn conversation about Aristotle’s contributions to philosophy.
Remember to replace $SCIPHI_CLOUD_URL
with your actual deployed pipeline URL in all examples.