|
@@ -37,13 +37,15 @@ export const questionGeneratorNode = async (
|
|
|
1. 问题文本。
|
|
1. 问题文本。
|
|
|
2. 3-5 个关键点或概念,用户在回答中应当提到这些点以证明其掌握程度。
|
|
2. 3-5 个关键点或概念,用户在回答中应当提到这些点以证明其掌握程度。
|
|
|
3. 难度级别(标准、进阶、专家)。
|
|
3. 难度级别(标准、进阶、专家)。
|
|
|
|
|
+4. 出题依据(从知识库中提取的、支持此问题的相关文本片段或事实摘要)。
|
|
|
|
|
|
|
|
请以 JSON 数组格式返回响应:
|
|
请以 JSON 数组格式返回响应:
|
|
|
[
|
|
[
|
|
|
{
|
|
{
|
|
|
"question_text": "...",
|
|
"question_text": "...",
|
|
|
"key_points": ["...", "..."],
|
|
"key_points": ["...", "..."],
|
|
|
- "difficulty": "..."
|
|
|
|
|
|
|
+ "difficulty": "...",
|
|
|
|
|
+ "basis": "..."
|
|
|
}
|
|
}
|
|
|
]`;
|
|
]`;
|
|
|
|
|
|
|
@@ -59,13 +61,15 @@ export const questionGeneratorNode = async (
|
|
|
1. 問題文。
|
|
1. 問題文。
|
|
|
2. ユーザーが習熟度を証明するために回答内で言及すべき 3〜5 個のキーポイントまたは概念。
|
|
2. ユーザーが習熟度を証明するために回答内で言及すべき 3〜5 個のキーポイントまたは概念。
|
|
|
3. 難易度(標準、上級、スペシャリスト)。
|
|
3. 難易度(標準、上級、スペシャリスト)。
|
|
|
|
|
+4. 出題の根拠(この問題を裏付けるナレッジベースから抽出された関連するテキストスニペットまたは事実の要約)。
|
|
|
|
|
|
|
|
レスポンスは以下の JSON 配列形式でフォーマットしてください:
|
|
レスポンスは以下の JSON 配列形式でフォーマットしてください:
|
|
|
[
|
|
[
|
|
|
{
|
|
{
|
|
|
"question_text": "...",
|
|
"question_text": "...",
|
|
|
"key_points": ["...", "..."],
|
|
"key_points": ["...", "..."],
|
|
|
- "difficulty": "..."
|
|
|
|
|
|
|
+ "difficulty": "...",
|
|
|
|
|
+ "basis": "..."
|
|
|
}
|
|
}
|
|
|
]`;
|
|
]`;
|
|
|
|
|
|
|
@@ -81,13 +85,15 @@ For each question, you must provide:
|
|
|
1. The question text.
|
|
1. The question text.
|
|
|
2. A list of 3-5 key points or concepts that the user should mention in their answer to demonstrate mastery.
|
|
2. A list of 3-5 key points or concepts that the user should mention in their answer to demonstrate mastery.
|
|
|
3. A difficulty level (Standard, Advanced, Specialist).
|
|
3. A difficulty level (Standard, Advanced, Specialist).
|
|
|
|
|
+4. A basis for the question (the relevant text snippet or fact summary extracted from the knowledge base that supports this question).
|
|
|
|
|
|
|
|
Format your response as a JSON array of objects:
|
|
Format your response as a JSON array of objects:
|
|
|
[
|
|
[
|
|
|
{
|
|
{
|
|
|
"question_text": "...",
|
|
"question_text": "...",
|
|
|
"key_points": ["...", "..."],
|
|
"key_points": ["...", "..."],
|
|
|
- "difficulty": "..."
|
|
|
|
|
|
|
+ "difficulty": "...",
|
|
|
|
|
+ "basis": "..."
|
|
|
}
|
|
}
|
|
|
]`;
|
|
]`;
|
|
|
|
|
|
|
@@ -107,6 +113,7 @@ Format your response as a JSON array of objects:
|
|
|
questionText: q.question_text,
|
|
questionText: q.question_text,
|
|
|
keyPoints: q.key_points,
|
|
keyPoints: q.key_points,
|
|
|
difficulty: q.difficulty,
|
|
difficulty: q.difficulty,
|
|
|
|
|
+ basis: q.basis,
|
|
|
})),
|
|
})),
|
|
|
currentQuestionIndex: 0,
|
|
currentQuestionIndex: 0,
|
|
|
};
|
|
};
|