# Conflicts:
#	util/q_and_a_test1.py
This commit is contained in:
yujj128
2025-10-24 17:05:03 +08:00
3 changed files with 865 additions and 767 deletions

View File

@@ -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']
)

File diff suppressed because it is too large Load Diff