POST
/
v1
/
chat
/
completions
"event:AI_MESSAGE_ID\ndata:e56c0756-b791-4bd6-831e-1dec2827dda1\n\nid:24f99642-d673-4082-8370-8b7910989e6e\nevent:TASK\ndata:{\"id\":\"24f99642-d673-4082-8370-8b7910989e6e\",\"model\":\"\",\"choices\":[{\"delta\":{\"content\":{\"name\":\"Analyze\",\"id\":\"24f99642-d673-4082-8370-8b7910989e6e\",\"status\":\"running\",\"stage\":\"Analyze\",\"properties\":{}}},\"index\":0}],\"created\":1726129903}\n\nid:4020d1e8-5969-4ad3-8dd8-8ba08404735e\nevent:MESSAGE\ndata:{\"id\":\"4020d1e8-5969-4ad3-8dd8-8ba08404735e\",\"model\":\"\",\"choices\":[{\"delta\":{\"content\":\"- **Product quality and accuracy**: Mentioned 87 times.\\n\"},\"index\":0}],\"created\":1726129929}\n\nid:4020d1e8-5969-4ad3-8dd8-8ba08404735e\nevent:MESSAGE\ndata:{\"id\":\"4020d1e8-5969-4ad3-8dd8-8ba08404735e\",\"model\":\"\",\"choices\":[{\"delta\":{\"content\":\"- **Reducing packaging waste**: Mentioned 90 times.\\n\"},\"index\":0}],\"created\":1726129929}\n\nid:4020d1e8-5969-4ad3-8dd8-8ba08404735e\nevent:MESSAGE\ndata:{\"id\":\"4020d1e8-5969-4ad3-8dd8-8ba08404735e\",\"model\":\"\",\"choices\":[{\"delta\":{\"content\":\"- **Other areas**: \\\"Add more familiar brands to the list\\\" and \\\"I have no problem with Amazon yet. But others tell me about the refund issues\\\" were mentioned once each.\\n\\n\"},\"index\":0}],\"created\":1726129930}\n\nid:4020d1e8-5969-4ad3-8dd8-8ba08404735e\nevent:MESSAGE\ndata:{\"id\":\"4020d1e8-5969-4ad3-8dd8-8ba08404735e\",\"model\":\"\",\"choices\":[{\"delta\":{\"content\":\"#### Male, Prefer not to say, and Others\\n\"},\"index\":0}],\"created\":1726129931}\n\nid:4020d1e8-5969-4ad3-8dd8-8ba08404735e\nevent:MESSAGE\ndata:{\"id\":\"4020d1e8-5969-4ad3-8dd8-8ba08404735e\",\"model\":\"\",\"choices\":[{\"delta\":{\"content\":\"\"},\"index\":0}],\"created\":1726129931}\n\nid:4020d1e8-5969-4ad3-8dd8-8ba08404735e\nevent:MESSAGE\ndata:{\"id\":\"4020d1e8-5969-4ad3-8dd8-8ba08404735e\",\"model\":\"\",\"choices\":[{\"delta\":{\"content\":\"\\n\"},\"index\":0}],\"created\":1726129931}\n\nid:4020d1e8-5969-4ad3-8dd8-8ba08404735e\nevent:TABLE\ndata:{\"id\":\"4020d1e8-5969-4ad3-8dd8-8ba08404735e\",\"model\":\"\",\"choices\":[{\"delta\":{\"content\":{\"name\":\"gender_improvement_areas_count.csv\",\"url\":\"s3://powerdrill-s3/tmp_datasource_cache/code_result/clvl506oq00ey01l1yq495j49/fa732497-927c-4915-b324-3eb3d934e763.csv\"}},\"index\":0}],\"created\":1726129931}\n\nid:4020d1e8-5969-4ad3-8dd8-8ba08404735e\nevent:MESSAGE\ndata:{\"id\":\"4020d1e8-5969-4ad3-8dd8-8ba08404735e\",\"model\":\"\",\"choices\":[{\"delta\":{\"content\":\"\\n\\n\"},\"index\":0}],\"created\":1726129931}\n\nid:4020d1e8-5969-4ad3-8dd8-8ba08404735e\nevent:MESSAGE\ndata:{\"id\":\"4020d1e8-5969-4ad3-8dd8-8ba08404735e\",\"model\":\"\",\"choices\":[{\"delta\":{\"content\":\"- The data provided does not include specific frequencies for these genders. Additional context is needed to provide a detailed analysis for these groups.\\n\\n\"},\"index\":0}],\"created\":1726129932}\n\nid:4020d1e8-5969-4ad3-8dd8-8ba08404735e\nevent:MESSAGE\ndata:{\"id\":\"4020d1e8-5969-4ad3-8dd8-8ba08404735e\",\"model\":\"\",\"choices\":[{\"delta\":{\"content\":\"### Conclusion and Insights\\n\"},\"index\":0}],\"created\":1726129932}\n\nid:4020d1e8-5969-4ad3-8dd8-8ba08404735e\nevent:MESSAGE\ndata:{\"id\":\"4020d1e8-5969-4ad3-8dd8-8ba08404735e\",\"model\":\"\",\"choices\":[{\"delta\":{\"content\":\"- **Customer service responsiveness** is the most frequently mentioned area for improvement overall and among females.\\n\"},\"index\":0}],\"created\":1726129933}\n\nid:4020d1e8-5969-4ad3-8dd8-8ba08404735e\nevent:MESSAGE\ndata:{\"id\":\"4020d1e8-5969-4ad3-8dd8-8ba08404735e\",\"model\":\"\",\"choices\":[{\"delta\":{\"content\":\"- **Product quality and accuracy** and **Reducing packaging waste** are also significant areas of concern.\\n\"},\"index\":0}],\"created\":1726129933}\n\nid:4020d1e8-5969-4ad3-8dd8-8ba08404735e\nevent:MESSAGE\ndata:{\"id\":\"4020d1e8-5969-4ad3-8dd8-8ba08404735e\",\"model\":\"\",\"choices\":[{\"delta\":{\"content\":\"- **Gender-specific insights**: Females have highlighted similar top concerns as the overall data, but additional data is needed to understand the perspectives of males and other gender categories.\"},\"index\":0}],\"created\":1726129935}\n\nid:4020d1e8-5969-4ad3-8dd8-8ba08404735e\nevent:QUESTIONS\ndata:{\"id\":\"4020d1e8-5969-4ad3-8dd8-8ba08404735e\",\"model\":\"\",\"choices\":[{\"delta\":{\"content\":[\"Analyze the correlation between age groups and the areas for improvement mentioned. Are there specific concerns that are more prevalent in certain age groups?\",\"Investigate the relationship between purchase frequency and the areas for improvement. Do frequent shoppers have different concerns compared to occasional shoppers?\",\"Examine the impact of browsing frequency on the areas for improvement. Are there any notable differences in feedback from users who browse frequently versus those who browse rarely?\"]},\"index\":0}],\"created\":1726129935}\n\nid:4020d1e8-5969-4ad3-8dd8-8ba08404735e\nevent:TASK\ndata:{\"id\":\"4020d1e8-5969-4ad3-8dd8-8ba08404735e\",\"model\":\"\",\"choices\":[{\"delta\":{\"content\":{\"name\":\"Conclusions\",\"id\":\"4020d1e8-5969-4ad3-8dd8-8ba08404735e\",\"status\":\"done\",\"stage\":\"Respond\",\"properties\":{}}},\"index\":0}],\"created\":1726129935}\n\nid:-1\nevent:TAG\ndata:{\"id\":\"-1\",\"model\":\"\",\"choices\":[{\"delta\":{\"content\":\"AAPlanner<[{\\\"type\\\": \\\"Data Analyzing\\\", \\\"description\\\": \\\"Extract and count the frequency of each unique value in the 'Improvement_Areas' column to identify the most frequently mentioned areas for improvement.\\\", \\\"input\\\": [\\\"input_1\\\"], \\\"output\\\": [\\\"improvement_areas_count\\\"]}, {\\\"type\\\": \\\"Data Analyzing\\\", \\\"description\\\": \\\"Group the data by 'Gender' and 'Improvement_Areas' to count the frequency of each improvement area mentioned by different genders.\\\", \\\"input\\\": [\\\"input_1\\\"], \\\"output\\\": [\\\"gender_improvement_areas_count\\\"]}, {\\\"type\\\": \\\"Data QA\\\", \\\"description\\\": \\\"Identify the most frequently mentioned areas for improvement and describe how these areas differ between genders based on the processed data.\\\", \\\"input\\\": [\\\"improvement_areas_count\\\", \\\"gender_improvement_areas_count\\\"], \\\"output\\\": []}]>\"},\"index\":0}],\"created\":1726129935}\n\nevent:END_MARK\ndata:[DONE]\n\n"

Headers

Authorization
string
required

Body

application/json
sessionId
string
required
stream
boolean
question
string
required
datasetId
string
required
datasourceIdList
string[]
required

limit 1000

history
object[]

history不传或者为空时,使用session的历史消息,消息条数由session config中maxMessagesInContext指定; history不为空则优先使用,忽略session的history

languageType
string

Response

200 - text/event-stream

The response is of type object.