Create a specialized RAG agent less than 5 Minutes
/datastores
endpoint with the following command:
$API_KEY
with your key. You can rename the datastore if
you want.id
of the newly created datastore will be returned to you. Be sure to save this id
as you will need it in subsequent steps!
{datastore_id}
in the url path with the datastore id from the previous step$API_KEY
with your API key{file_path}
with the path to the document on your machineid
of the uploaded document will be returned to you. The time required to upload documents depends partly on their length and features. Some documents may require a few minutes to fully process after upload.
To check the status of documents uploaded into the datastore, use this command:
{datastore_id}
in the url path with the id
from the previous step$API_KEY
with your API keyingestion_job_status
.
/agents
endpoint to create your first agent.
$API_KEY
with your API keydatastore_ids
list field with the datastore id
from aboveagent_id
of the newly created agent will be returned to you. You’ll need this to query your agent in the next step.
/query
endpoint to send messages:
{agent_id}
in the url path with the agent_id from the previous step$API_KEY
with your API keycontent
field with a question that is relevant to the document(s) you uploaded