feat:提示词约束2以及bug修复
This commit is contained in:
@@ -28,9 +28,10 @@ def add_documentation(vn: CustomVanna):
|
||||
random.shuffle(dd)
|
||||
# for d in dd:
|
||||
# vn.add_question_sql(question=d['question'], sql=d['answer'])
|
||||
for d in q_and_a_test1.question_and_answer:
|
||||
## tag 待定,容易过拟合
|
||||
for d in dd:
|
||||
vn.add_question_sql(
|
||||
question=f"{d['question']} [分类:{d['category']}] [标签:{','.join(d['tags'])}]",
|
||||
question=f"{d['question']}",
|
||||
sql=d['answer']
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user