Extractions
Extractive question answering
Extract information from documents with an Isaacus extractive question answering model.
post/extractions/qa
Request body
Example request
{
"model": "kanon-answer-extractor",
"query": "What is the punishment for murder in Victoria?",
"texts": [
"The standard sentence for murder in the State of Victoria is 30 years if the person murdered was a police officer and 25 years in any other case."
]
}Response
The results of extracting answers from texts.
Example response
{
"extractions": [
{
"index": 0,
"answers": [
{
"text": "30 years if the person murdered was a police officer and 25 years in any other case",
"start": 61,
"end": 144,
"score": 0.11460486645671249
}
],
"inextractability_score": 0.0027424068182309302
}
],
"usage": {
"input_tokens": 43
}
}