POST
/
ragc
/
{version}
curl --request POST \
  --url https://api.ragbuddy.ai/ragc/{version} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'helvia-rag-buddy-token: <helvia-rag-buddy-token>' \
  --data '{
  "remote_llm_url": "<string>",
  "user_message": "<string>",
  "system_intro": "<string>",
  "system_instructions": "<string>",
  "articles": [
    {
      "ID": "<string>",
      "content": "<string>"
    }
  ]
}'
{
  "id": "<string>",
  "choices": [
    {
      "finish_reason": "stop",
      "index": 123,
      "message": {
        "content": "<string>",
        "role": "<any>",
        "function_call": {
          "arguments": "<string>",
          "name": "<string>"
        },
        "tool_calls": [
          {
            "id": "<string>",
            "function": {
              "arguments": "<string>",
              "name": "<string>"
            },
            "type": "<any>"
          }
        ]
      }
    }
  ],
  "created": 123,
  "model": "<string>",
  "object": "<any>",
  "system_fingerprint": "<string>",
  "usage": {
    "completion_tokens": 123,
    "prompt_tokens": 123,
    "total_tokens": 123
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

helvia-rag-buddy-token
string
required

Path Parameters

version
string
required

Version of the API to use

Allowed value: "v1"

Body

application/json
remote_llm_url
string
required
user_message
string
required
system_intro
string
required
articles
object[]
required
system_instructions
string | null

Response

200
application/json
Successful Response
id
string
required
choices
object[]
required
created
integer
required
model
string
required
object
any
required
system_fingerprint
string | null
usage
object | null