Introducing the Answers endpoint
The OpenAI Answers endpoint is specifically designed for question-answering tasks. It provides more control than the Completions endpoint by enabling the use of a source of truth for the answers. For our GPT Answers app, that source of truth will be a knowledge base that will be used for answering questions. The knowledge base (that is, documents) can be provided along with the endpoint request or by referencing a pre-uploaded file containing the data.
The URL for the Answers endpoint is https://api.openai.com/v1/answers and the endpoint accepts an HTTP POST request and a number of input parameters. The following is a brief description of the available input parameters, but for more complete details, see the OpenAI docs for the Answers endpoint located at https://beta.openai.com/docs/api-reference/answers.
Here are the required parameters:
model
(required, string) – The ID of the model that will be used for completions.
...