Usage
Our extractive QA API 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).