ChatDOC
  1. Questions
ChatDOC
  • Documents
    • Upload Document
      POST
    • Upload Document
      POST
    • Get Document
      GET
    • Delete Document
      DELETE
    • Download Document
      GET
  • Collections
    • Create Collection
      POST
    • Clone Document To Collection
      POST
  • Questions
    • Get Suggested Questions
      GET
    • Ask Question
      POST
    • Get Question
      GET
    • Ask Question With Multiple Documents
      POST
  • Users
    • Get Quota
      GET
  1. Questions

Get Suggested Questions

Develop Env
https://dev.your-api-server.com
Develop Env
https://dev.your-api-server.com
GET
/questions/suggested
Suggested questions for a document, defaults to 5 questions.
Response example:
[
    "What is the name of the author?",
    "What is the name of the book?",
    "When was the book published?",
    "What is the name of the publisher?",
    "Where is the book published?"
]
Only when analysis of the document has succeeded(status=300), can questions be generated.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://dev.your-api-server.com/questions/suggested?upload_id'
Response Response Example
200 - Example 1
[
    "string"
]

Request

Query Params
upload_id
string 
Upload Id
required
document id or collection id, created by POST /documents/upload or POST /collections APIs accordingly.
>= 36 characters<= 36 characters

Responses

🟢200Successful Response
application/json
Body
array[string]
Response Get Suggested Questions Questions Suggested Get
optional
🟠422Validation Error
Modified at 2024-07-26 06:57:23
Previous
Clone Document To Collection
Next
Ask Question
Built with