Hugging Face · Example Payload

Hugging Face Questionanswering Example

Hugging Face Questionanswering Example is an example object payload from Hugging Face, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathsummaryrequestExamplesresponseExamples

Example Payload

Raw ↑
{
  "operationId": "questionAnswering",
  "method": "POST",
  "path": "/models/{model_id}/question-answering",
  "summary": "Question Answering Inference",
  "requestExamples": [
    {
      "contentType": "application/json",
      "name": "QuestionansweringRequestExample",
      "example": {
        "inputs": {
          "question": "example_value",
          "context": "example_value"
        }
      }
    }
  ],
  "responseExamples": [
    {
      "status": "200",
      "contentType": "application/json",
      "name": "Questionanswering200Example",
      "example": {
        "answer": "example_value",
        "score": 42.5,
        "start": 10,
        "end": 10
      }
    }
  ]
}