修复枚举对应错误,增加问答示例,优化提示词
This commit is contained in:
@@ -12,6 +12,8 @@ train_document='''
|
||||
根据部门名称查询部门时除了全称name,简称shortname也重要信息
|
||||
数信部是简称
|
||||
部门表org_orgs中的level字段 {1:公司,2:一级部门,3:二级部门.....}
|
||||
internal_dept和internal_unit是部门编号不是名称,注意区分
|
||||
查询部门信息时尽量使用internal_dept而非internal_unit<UNK>
|
||||
'''
|
||||
|
||||
person_database_ddl = """
|
||||
@@ -63,9 +65,9 @@ person_database_ddl = """
|
||||
{
|
||||
"name": "external_unit",
|
||||
"type": "VARCHAR(600)",
|
||||
"comment": "外部单位",
|
||||
"comment": "外部单位名称",
|
||||
"role": "dimension",
|
||||
"tags": ["组织信息", "外部单位"]
|
||||
"tags": ["组织信息", "外部单位","外部单位名称"]
|
||||
},
|
||||
{
|
||||
"name": "photo",
|
||||
@@ -472,13 +474,6 @@ person_database_ddl = """
|
||||
"type": "foreign_key",
|
||||
"comment": "关联部门表"
|
||||
},
|
||||
{
|
||||
"from": "internal_unit",
|
||||
"to_table": "IUAP_APDOC_BASEDOC.org_orgs",
|
||||
"to_field": ["id","parentid"],
|
||||
"type": "foreign_key",
|
||||
"comment": "关联部门表"
|
||||
},
|
||||
],
|
||||
|
||||
"tags": ["人员管理", "人力资源", "审批流程", "基本信息", "工作信息"],
|
||||
@@ -695,9 +690,9 @@ person_attendance_ddl = '''
|
||||
"type": "INT",
|
||||
"comment": "状态",
|
||||
"value": {
|
||||
"0": "在岗",
|
||||
"1": "出差",
|
||||
"2": "休假"
|
||||
"1": "在岗",
|
||||
"2": "出差",
|
||||
"3": "休假"
|
||||
},
|
||||
"role": "dimension",
|
||||
"tags": ["状态标识", "人员在岗状态","枚举"]
|
||||
@@ -738,8 +733,8 @@ person_attendance_ddl = '''
|
||||
"type": "INT",
|
||||
"comment": "进出类型",
|
||||
"value": {
|
||||
"0": "进",
|
||||
"1": "出"
|
||||
"1": "进",
|
||||
"2": "出"
|
||||
},
|
||||
"role": "dimension",
|
||||
"tags": ["进出标识", "打卡方向"]
|
||||
|
||||
Reference in New Issue
Block a user