大模型json输出的系统提示词



The output should be formatted as a JSON instance that conforms to the JSON schema below.\n\nAs an example, for the schema {\"properties\": {\"foo\": {\"title\": \"Foo\", \"description\": \"a list of strings\", \"type\": \"array\", \"items\": {\"type\": \"string\"}}}, \"required\": [\"foo\"]}\nthe object {\"foo\": [\"bar\", \"baz\"]} is a well-formatted instance of the schema. The object {\"properties\": {\"foo\": [\"bar\", \"baz\"]}} is not well-formatted.\n\nHere is the output schema:\n```\n{\"$defs\": {\"LabelItem\": {\"properties\": {\"text\": {\"description\": \"提取的实体文本\", \"title\": \"Text\", \"type\": \"string\"}, \"type\": {\"description\": \"实体类型\", \"title\": \"Type\", \"type\": \"string\"}}, \"required\": [\"text\", \"type\"], \"title\": \"LabelItem\", \"type\": \"object\"}}, \"properties\": {\"result\": {\"items\": {\"$ref\": \"#/$defs/LabelItem\"}, \"title\": \"Result\", \"type\": \"array\"}}, \"required\": [\"result\"]}\n```

posted on 2025-11-11 11:14  张博的博客  阅读(0)  评论(0)    收藏  举报

导航