Answers quoted from your text
The answer is an exact span pulled from your context — never paraphrased or invented.
Send a question and a context passage, and get back the exact span of text in that
Learn more about Question AnsweringResults show up here
The sample input is ready — just hit Run.
Send a question and a context passage, and get back the exact span of text in that passage that answers it. The response includes the answer, a confidence score, the start and end character offsets of the answer in the context, and an is_confident flag. Because the answer is quoted directly from your text, there's no hallucination. Responses are synchronous — one request, one result.
The answer is an exact span pulled from your context — never paraphrased or invented.
start and end give the exact position of the answer in your context string, ready for highlighting.
is_confident is a simple boolean you can use to decide when to show the answer or fall back.
Question and context can be in many languages, not just English.
Document QA
Let users ask questions over a retrieved document chunk or article.
FAQ from passages
Match questions to policy text, help articles, or product documentation.
Support automation
Retrieve the right passage first (with Semantic Search), then extract the precise answer here.
input
A question and a context passage.
output
The answer span, a confidence score, start/end offsets, and an is_confident flag.
question and a context passage, and the service finds the span of the context that answers it.start and end character offsets — handy for highlighting in your UI.is_confident (or the score) to decide whether to show the answer or fall back to "I don't know".is_confident will be false and the score will be low. Show a fallback message instead of the extracted span.questionrequiredstringThe question to answer.
contextrequiredstringThe passage that should contain the answer. Send a single passage per request.
answerstringThe exact answer span, quoted from your context.
scorenumberConfidence in the answer, from 0 to 1.
startintegerStart character offset of the answer in the context.
endintegerEnd character offset of the answer in the context.
is_confidentbooleanTrue when the answer is reliable — a convenient flag for deciding when to show it.
Billed per request.
| Service | Unit | Price |
|---|---|---|
| Question Answering | item | $0.006/request |