From 2607edcba232182c78277946673d779ebd7a6846 Mon Sep 17 00:00:00 2001 From: fanpt <320622572@qq.com> Date: Sun, 25 May 2025 18:12:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E6=84=8F=E5=9B=BE=E6=8F=90?= =?UTF-8?q?=E5=8F=96=E5=87=BA=E6=96=87=E6=9C=AC=E7=89=87=E6=AE=B5=E7=9A=84?= =?UTF-8?q?=E5=85=83=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../IntentMetadataExtractor.txt | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 IntentMetadataExtractor/IntentMetadataExtractor.txt diff --git a/IntentMetadataExtractor/IntentMetadataExtractor.txt b/IntentMetadataExtractor/IntentMetadataExtractor.txt new file mode 100644 index 0000000..7bfbc6e --- /dev/null +++ b/IntentMetadataExtractor/IntentMetadataExtractor.txt @@ -0,0 +1,40 @@ +# 元数据提取指令 + +## 任务描述 +你是一个专业的元数据提取引擎,需要从给定的文本片段中识别出符合指定意图的实体、关系及其属性,并按照标准JSON格式输出。 + +## 输入数据 +- 文本片段: +{text} +- 可选意图标签: +{IntentTypeList} + +## 输出要求 +1. 分析文本内容,识别与意图标签相关的实体和关系 +2. 每一个意图只能匹配一个结果 +3. 每个实体/关系应包含: + - type(类型) + - attributes(相关属性列表) +4. 输出纯JSON格式,不要使用```json ```等任何Markdown标记包装 +5. 使用以下示例格式: + +[ + { + "source": { + "type": "实体类型1", + "attributes": ["属性1", "属性2"] + }, + "relation": { + "type": "关系类型", + "attributes": [] + }, + "target": { + "type": "实体类型2", + "attributes": ["属性3"] + }, + "intent": "匹配的意图标签" + }, + {.....} +] + +5. 属性只代表属性名称:例如“名称“,”数量“./no_think \ No newline at end of file