This commit is contained in:
maxwell 2025-10-15 15:15:58 +08:00
commit 21e4f070d8
9 changed files with 17127 additions and 0 deletions

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

1815
math1.json Normal file

File diff suppressed because it is too large Load Diff

9478
math1.md Normal file

File diff suppressed because it is too large Load Diff

1370
method.md Normal file

File diff suppressed because it is too large Load Diff

1247
method_full.md Normal file

File diff suppressed because it is too large Load Diff

155
prompt.md Normal file
View File

@ -0,0 +1,155 @@
# 高中数学知识图谱提取Prompt
## 核心设计原则
**好品味优先**
- 消除特殊情况让AI专注于核心任务
- 数据结构简洁,只保留必要字段
- 减少主观判断让AI基于教材内容客观提取
## 三层架构(保持核心思想)
```
Knowledge知识 → Method方法 → Problem题目
```
## 统一提取Prompt
```markdown
# 角色定位
你是高中数学教材分析专家,负责从教材中提取结构化知识。
# 任务
从以下教材内容中提取所有数学知识点、解题方法和题目,建立知识图谱。
# 教材内容
[在此插入教材内容]
# 输出格式严格JSON
```json
{
"knowledge": [
{
"id": "K章-节-小节-序号",
"name": "知识点名称",
"type": "概念|定理|公式",
"definition": "定义或描述",
"prerequisite": ["前置知识点ID"]
}
],
"methods": [
{
"id": "M章-节-小节-序号",
"name": "方法名称",
"type": "解题方法|计算技巧|证明方法",
"steps": ["步骤1", "步骤2"],
"required_knowledge": ["所需知识点ID"]
}
],
"problems": [
{
"id": "T章-节-小节-类型序号",
"type": "例题|练习题|习题",
"content": "题目完整内容",
"knowledge": ["考查的知识点ID"],
"methods": ["使用的方法ID"]
}
]
}
```
# 编号规则
## Knowledge编号
```
K3-1-1-01 = 第3章第1节第1小节第1个知识点
K2-3-01 = 第2章第3节第1个知识点
```
## Method编号
```
M3-1-1-01 = 第3章第1节第1小节第1个方法
M2-3-01 = 第2章第3节第1个方法
```
## Problem编号
```
T3-1-1-E01 = 第3章第1节第1小节例题1
T3-1-1-P01 = 第3章第1节第1小节练习题1
T3-1-H05 = 第3章第1节习题5
```
# 提取标准
## 知识点识别
- **概念**:有明确定义的内容(如"定义域"
- **定理**:标有"定理"、"性质"的内容
- **公式**:数学公式表达式
## 方法识别
- 有明确步骤的解题方法
- 计算技巧和证明方法
- 方法要有普适性,能用于多道题
## 题目识别
- 例题、练习题、习题
- 包含完整题干和问题
# 关系建立
- 知识点之间:通过`prerequisite`建立依赖关系
- 方法依赖:通过`required_knowledge`建立
- 题目标注:通过`knowledge`和`methods`建立考查关系
# 重要提示
- **准确性优先**:不确定的内容不要强行填写
- **简洁明了**:定义和方法步骤要清晰简洁
- **客观提取**:基于教材原文,不添加额外内容
- **关系完整**:尽量建立知识点、方法、题目之间的引用关系
# 示例
```json
{
"knowledge": [
{
"id": "K3-1-1-01",
"name": "函数的三要素",
"type": "概念",
"definition": "函数由定义域、对应关系、值域三部分组成",
"prerequisite": []
},
{
"id": "K3-1-1-02",
"name": "定义域",
"type": "概念",
"definition": "自变量x的取值范围",
"prerequisite": ["K3-1-1-01"]
}
],
"methods": [
{
"id": "M3-1-1-01",
"name": "分式型定义域求解法",
"type": "解题方法",
"steps": ["识别分母", "令分母≠0", "解不等式", "用区间表示"],
"required_knowledge": ["K3-1-1-02"]
}
],
"problems": [
{
"id": "T3-1-1-E01",
"type": "例题",
"content": "求函数f(x)=1/(x+2)的定义域",
"knowledge": ["K3-1-1-02"],
"methods": ["M3-1-1-01"]
}
]
}
```