Extractive question answering or answer extraction is the process of extracting answers to questions from documents, for example, “what is the governing law of this contract?” or “who is the defendant in this case?”. Extractive QA can be used to solve a diverse range of information extraction problems whether it’s as simple as pulling out key dates from a contract or as complex as highlighting legal doctrines relied upon in a judgment. Because answers are taken directly and exclusively from users’ inputs, extractive QA can often prove faster, more precise and more cost-effective than generative QA. Isaacus offers the Kanon Answer Extractor extractive QA model, available through our extractive QA endpoint. For a complete specification of the parameters and response format of our extractive QA endpoint, please refer to the API reference documentation.Documentation Index
Fetch the complete documentation index at: https://docs.isaacus.com/llms.txt
Use this file to discover all available pages before exploring further.
Usage
Our extractive QA endpoint accepts a question and one or more documents and returns answers to the question extracted from the documents. If our answer extractors do not think that there is an answer to the question that can be extracted from any of the documents, it will not return any answers. You can override that behavior by setting theignore_inextractability parameter to true, which you will want to do if you are already using one of our reranking models to identify documents that answer questions.
The code snippet below demonstrates how you could use our extractive QA endpoint to extract the governing law of a contract (please consult our quickstart guide first if you haven’t set up your Isaacus account and API client).