Skip to main content
POST
/
query
/
autorag
Run AutoRAG agent over all data
curl --request POST \
  --url https://api.datalinks.com/api/v1/query/autorag \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "username": "<string>",
  "namespace": "<string>",
  "query": "What do llamas drink to cool themselves down?",
  "model": "<string>",
  "provider": "<string>"
}'
{
  "response": "<string>",
  "steps": [
    {
      "instruction": "<string>",
      "query": "<string>",
      "data": [
        {}
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Body

application/json
username
string
required
namespace
string
required
query
string
required
Example:
model
string
provider
string

Response

response
string
required
steps
object[]
required