KG API

Ask a question to specified Knowledge Graphs.

post/v1/graphs/question

Request

  • Base URL
    https://api.writer.com
  • URL
    https://api.writer.com/v1/graphs/question
  • Auth
    HTTP bearer

Request body

graph_idsstring[] required

The unique identifiers of the Knowledge Graphs to query.

subqueriesboolean

Specify whether to include subqueries.

questionstring required

The question to answer using the Knowledge Graph.

streamboolean

Determines 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

questionstring required

The question that was asked.

answerstring required

The answer to the question.

Changes

    • info

      added the new optional request property

    • info

      added the optional property / to the response with the status (media type: text/event-stream)

    • info

      added the optional property to the response with the status (media type: application/json)

    • info

      the request property became optional

    • info

      the request property became optional

    • info

      the request property default value false was added

    • info

      the request property default value false was added