Extractive QA
The answer is a verbatim span from the context — no hallucination, no paraphrasing.
Extract a verbatim answer from a context passage with confidence and offsets
You send a `question` and a `context` passage. The service finds the span of text in the context that answers the question (extractive QA) and returns the answer text, a confidence score, the start/end character offsets in the context, and an `is_confident` flag. Synchronous.
The answer is a verbatim span from the context — no hallucination, no paraphrasing.
`start` and `end` give the exact span in the original context string for highlighting.
`is_confident` is a boolean derived from the model's threshold — useful for triage.
Backed by a multilingual QA model — question and context can be in non-English.
Let users ask questions over a retrieved document chunk or article.
Match questions to policy text, help articles, or product documentation.
Retrieve context first (semantic search) then extract the precise answer with this endpoint.
Input
question (string) + context (string)
Output
answer, score, start, end, is_confident
Prerequisites
POST a question + context passage. The service returns the answer span with offsets.
{
"question": "Where was Apple founded?",
"context": "Apple Inc. was founded in Cupertino California in 1976 by Steve Jobs and Steve Wozniak."
}Response
{
"status": "success",
"data": {
"answer": "Cupertino California",
"score": 0.9666,
"start": 26,
"end": 46,
"is_confident": true
}
}Extract a verbatim answer span from a context passage. Returns answer, score, character offsets and an is_confident flag.
/v1/proxy/text-qa
Billed per request.
| Service | Unit | Price |
|---|---|---|
| Question Answering | item | $0.006/request |
A: Check `is_confident`. If false, do not surface `answer` as the response — show a fallback or ask for more context.
A: The verified shape is single-string `context`. For multi-passage QA, retrieve the best passage with text-search first, then send it here.
A: Yes — extractive QA returns a substring of `context` defined by `start` and `end`.
1.2 (2026-04-29)
1.1 (2026-02-23)
1.0 (2026-01-26)