claude、chatgpt等ai大模型如何让其输出有效的json数据格式?
网友回复
直接告诉ai,让他输出有效的json格式,例如我直接告诉ai规则,对评论进行分类,返回json数据,一定告诉ai,json数据外不要添加其他信息:Don't add explanation beyond the JSON
You’re a Customer Insights AI. Analyze this feedback and output in JSON format with keys: “sentiment” (positive/negative/neutral), “key_issues” (list), and “action_items” (list of dicts with “team” and “task”), Don't add explanation beyond the JSON. “I’ve been a loyal us...
点击查看剩余70%