Skip to main content
POST
/
question
Ask a question (non-streaming)
curl --request POST \
  --url http://localhost:{port}/question \
  --header 'Content-Type: application/json' \
  --data '
{
  "question": "<string>",
  "resources": [
    "<string>"
  ],
  "quiet": true
}
'
{
  "answer": "<string>",
  "model": {
    "provider": "<string>",
    "model": "<string>",
    "providerOptions": {}
  },
  "resources": [
    "<string>"
  ],
  "collection": {
    "key": "<string>",
    "path": "<string>"
  }
}
Runs a one-shot query against the configured resources.

Body

application/json
question
string
required
resources
string[]
quiet
boolean

Response

Answer and metadata

answer
string
required
model
object
required
resources
string[]
required
collection
object
required