POST
/
query
{
  "completion": "<string>",
  "usage": {},
  "finish_reason": "<string>",
  "sources": [],
  "metadata": {}
}

Headers

authorization
string

Body

application/json

Request model for completion generation

query
string
required
Minimum length: 1
filters
object | null
k
integer
default:4
Required range: x > 0
min_score
number
default:0
use_reranking
boolean | null
use_colpali
boolean | null
graph_name
string | null

Name of the graph to use for knowledge graph-enhanced retrieval

hop_depth
integer | null
default:1

Number of relationship hops to traverse in the graph

Required range: 1 <= x <= 3
include_paths
boolean | null
default:false

Whether to include relationship paths in the response

folder_name
string | null

Optional folder scope for the operation

end_user_id
string | null

Optional end-user scope for the operation

max_tokens
integer | null
temperature
number | null
prompt_overrides
object | null

Optional customizations for entity extraction, resolution, and query prompts

schema

Schema for structured output, can be a Pydantic model or JSON schema dict

Response

200
application/json
Successful Response

Response from completion generation

completion
required
usage
object
required
finish_reason
string | null
sources
object[]

Source information for a chunk used in completion

metadata
object | null