Extractions
Extractive question answering
Changed onExtract information from documents with an Isaacus extractive question answering model.
post/extractions/qa
Request
- Base URLhttps://api.isaacus.com/v1
- AuthHTTP bearer
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
}
}Changes
- breaking
the
request property const valuekanon-answer-extractorwas added - breaking
removed the enum value
kanon-answer-extractorof the request property - breaking
removed the enum value
kanon-answer-extractor-miniof the request property
- breaking
- info
the
request property's maxLength was increased from5000to10000000
- info