|
|
|
@ -80,15 +80,15 @@ class KnowledgeGraph:
|
|
|
|
|
ability_samples = '\n'.join([f"AB_{a[3:]}: {v}" for a, v in list(self.existing_ability.items())[:5]])
|
|
|
|
|
|
|
|
|
|
system_prompt = f''' 将题目中涉及到的小学数学知识点、能力点进行总结,并且按照以下格式生成在neo4j-community-5.26.2上的语句:
|
|
|
|
|
请严格使用以下已有节点ID(不要创建新ID):
|
|
|
|
|
请严格使用以下已有节点ID(一定不要创建新ID):
|
|
|
|
|
现有知识点示例(KP_后接6位小写字母/数字):
|
|
|
|
|
{knowledge_samples}
|
|
|
|
|
现有能力点示例(AB_后接6位小写字母/数字):
|
|
|
|
|
{ability_samples}
|
|
|
|
|
生成格式要求:
|
|
|
|
|
MERGE (q:Question {{id: "{self.question_id}"}})
|
|
|
|
|
SET q.content = "...",
|
|
|
|
|
q.name = substring(q.content, 0, 10) // 新增name属性
|
|
|
|
|
SET q.content = "...",
|
|
|
|
|
q.name = "{self.content[:10]}" // 直接截取前10字符
|
|
|
|
|
// ... rest of the template ...
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|