Skip to main content
POST
https://exec.protoml.io
/
qa
/
qa-openai
curl --location 'https://exec.protoml.io/qa/qa-openai' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <TOKEN>' \
--data '{
  "question": "What are the benefits of retirement saving plan?",
  "project_id": "fa8ca5e2-3b3a-4767-a647-7ac0523f7ca3",
  "document_id": "f0c68672-b4b4-46ba-84b6-2dc007e04214",
  "collection_name": "fa8ca5e2-3b3a-4767-a647-7ac0523f7ca3_18734516-475c-4985-ba8d-457b0f291f87"
}'

Body

question
string
This is Question being asked
project_id
string
This is the project id
document-id
string
This is the document id
collection_name
string
This is the collection name
curl --location 'https://exec.protoml.io/qa/qa-openai' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <TOKEN>' \
--data '{
  "question": "What are the benefits of retirement saving plan?",
  "project_id": "fa8ca5e2-3b3a-4767-a647-7ac0523f7ca3",
  "document_id": "f0c68672-b4b4-46ba-84b6-2dc007e04214",
  "collection_name": "fa8ca5e2-3b3a-4767-a647-7ac0523f7ca3_18734516-475c-4985-ba8d-457b0f291f87"
}'