Knowledge Graph API
Question
Ask a question to specified Knowledge Graphs.
POST
/
v1
/
graphs
/
question
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
graph_ids
string[]
requiredThe unique identifiers of the Knowledge Graphs to be queried.
subqueries
boolean
requiredSpecify whether to include subqueries.
question
string
requiredThe question to be answered using the Knowledge Graph.
stream
boolean
requiredDetermines whether the model's output should be streamed. If true, the output is generated and sent incrementally, which can be useful for real-time applications.
Response
200 - application/json
question
string
requiredThe question that was asked.
answer
string
requiredThe answer to the question.
sources
object[]
requiredsubqueries
object[]