|
@@ -210,9 +210,9 @@
|
|
|
│ variable_values │ ← JSONB: {"project_name": {...}, ...}
|
|
│ variable_values │ ← JSONB: {"project_name": {...}, ...}
|
|
|
│ output_doc_id │
|
|
│ output_doc_id │
|
|
|
│ status │
|
|
│ status │
|
|
|
- │ created_at │
|
|
|
|
|
|
|
+ │ created_at │
|
|
|
│ completed_at │
|
|
│ completed_at │
|
|
|
- └─────────────────┘
|
|
|
|
|
|
|
+ └─────────────────┘
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
### 4.2 表结构定义
|
|
### 4.2 表结构定义
|
|
@@ -390,10 +390,10 @@ COMMENT ON TABLE generations IS '报告生成任务';
|
|
|
"source_file_alias": "可研批复",
|
|
"source_file_alias": "可研批复",
|
|
|
"source_type": "document",
|
|
"source_type": "document",
|
|
|
"source_config": {
|
|
"source_config": {
|
|
|
- "location": {
|
|
|
|
|
|
|
+ "location": {
|
|
|
"type": "page", // page | chapter | element
|
|
"type": "page", // page | chapter | element
|
|
|
- "pageStart": 1,
|
|
|
|
|
- "pageEnd": 2,
|
|
|
|
|
|
|
+ "pageStart": 1,
|
|
|
|
|
+ "pageEnd": 2,
|
|
|
"paragraphKeyword": null // 可选:段落关键词过滤
|
|
"paragraphKeyword": null // 可选:段落关键词过滤
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -433,7 +433,7 @@ COMMENT ON TABLE generations IS '报告生成任务';
|
|
|
"source_config": {
|
|
"source_config": {
|
|
|
"referenceVariables": ["project_name", "design_unit", "report_date"],
|
|
"referenceVariables": ["project_name", "design_unit", "report_date"],
|
|
|
"combineTemplate": "《{project_name}可行性研究报告》由{design_unit}于{report_date}编制",
|
|
"combineTemplate": "《{project_name}可行性研究报告》由{design_unit}于{report_date}编制",
|
|
|
- "transform": {
|
|
|
|
|
|
|
+ "transform": {
|
|
|
"type": "format",
|
|
"type": "format",
|
|
|
"formatPattern": "{0}"
|
|
"formatPattern": "{0}"
|
|
|
}
|
|
}
|
|
@@ -484,10 +484,10 @@ COMMENT ON TABLE generations IS '报告生成任务';
|
|
|
"extract_type": "ai_extract",
|
|
"extract_type": "ai_extract",
|
|
|
"extract_config": {
|
|
"extract_config": {
|
|
|
"targetDescription": "从批复文件中提取可研批复的日期",
|
|
"targetDescription": "从批复文件中提取可研批复的日期",
|
|
|
- "fieldType": "date",
|
|
|
|
|
- "expectedFormat": "YYYY年MM月DD日",
|
|
|
|
|
- "examples": ["2024年5月15日", "2023年12月1日"]
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ "fieldType": "date",
|
|
|
|
|
+ "expectedFormat": "YYYY年MM月DD日",
|
|
|
|
|
+ "examples": ["2024年5月15日", "2023年12月1日"]
|
|
|
|
|
+}
|
|
|
}
|
|
}
|
|
|
```
|
|
```
|
|
|
|
|
|
|
@@ -497,10 +497,10 @@ COMMENT ON TABLE generations IS '报告生成任务';
|
|
|
{
|
|
{
|
|
|
"extract_type": "ai_summarize",
|
|
"extract_type": "ai_summarize",
|
|
|
"extract_config": {
|
|
"extract_config": {
|
|
|
- "summarizePrompt": "请对以下内容进行总结,重点描述项目建设的必要性",
|
|
|
|
|
- "focusPoints": ["建设背景", "现状问题", "建设目的"],
|
|
|
|
|
|
|
+ "summarizePrompt": "请对以下内容进行总结,重点描述项目建设的必要性",
|
|
|
|
|
+ "focusPoints": ["建设背景", "现状问题", "建设目的"],
|
|
|
"rules": ["使用正式的工程报告语言", "保留关键的数据和指标"],
|
|
"rules": ["使用正式的工程报告语言", "保留关键的数据和指标"],
|
|
|
- "style": "formal",
|
|
|
|
|
|
|
+ "style": "formal",
|
|
|
"maxLength": 300
|
|
"maxLength": 300
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|