批量添加ddl到向量数据库,添加documention,重写generate_rewritten_question

添加id,sql,question到上下文
This commit is contained in:
yujj128
2025-09-23 20:06:32 +08:00
parent 1393b021eb
commit 23916fc328
3 changed files with 16 additions and 16 deletions

View File

@@ -14,13 +14,13 @@ from service.cus_vanna_srevice import CustomVanna
# )
# """,
# ]
list_documentions = [
"""
gender 字段 0代表女性1代表男性;
查询address时,尽量使用like查询如:select * from db_user where address like '%北京%';
语法为sqlite语法;
""",
]
# list_documentions = [
# """
# gender 字段 0代表女性1代表男性;
# 查询address时,尽量使用like查询如:select * from db_user where address like '%北京%';
# 语法为sqlite语法;
# """,
# ]
table_ddls = [
"""
CREATE TABLE 人员库表 (