KAG icon indicating copy to clipboard operation
KAG copied to clipboard

[Bug] [Module Name] Bug title 系统会篡改保存的schema

Open Shiwo0826 opened this issue 8 months ago • 4 comments

Search before asking

  • [x] I had searched in the issues and found no similar issues.

Operating system information

Linux

What happened

我在产品模式的web界面中提交了自定义的schema,系统会删除其中的部分关系与属性。

How to reproduce

我输入的病人实体如下: Patient(患者): EntityType desc: 核心患者实体 properties: gender(性别): Text desc: 患者性别 age(年龄): Integer desc: 患者年龄 chiefComplaint(主诉): Text desc: 患者主诉文本 medicalHistory(既往病史): Text desc: 患者既往病史 personalHistory: Text desc: 患者个人史 diseaseDiagnosis(疾病诊断): Text desc: 患者疾病诊断 relations: hasExamination(进行入院查体): PhysicalExamination desc: 患者与入院查体的关联 hasLabExam(进行实验室检查): LaboratoryExamination desc: 患者与实验室检查的关联 hasImagingExam(进行影像学检查): ImagingExamination desc: 患者与影像学检查的关联 hasTreatment(接受治疗): Treatment desc: 患者与治疗方案的关联 hasDischarge(出院情况): Discharge desc: 患者与出院情况的关联

保存后,再次编辑schema,发现其中的病人实体被改变为如下: Patient(患者): EntityType desc:患者与出院情况的关联 properties: gender(性别): Text relations: hasExamination(进行入院查体): PhysicalExamination

Are you willing to submit PR?

  • [ ] Yes I am willing to submit a PR!

Shiwo0826 avatar Apr 08 '25 06:04 Shiwo0826

我使用的时候是直接改的官方提供的模板,这样没有被更改。 但我完全个人根据使用手册编写的Schema也会出现你这样的情况。

Taron001 avatar Apr 13 '25 17:04 Taron001

@Taron001 我看了文档,产品模式目前功能不全,需要使用开发者模式

Shiwo0826 avatar Apr 14 '25 02:04 Shiwo0826

产品模式抽取配置默认不是开了 支持抽取schema以外的内容,但可能修改schema ,可能是这个导致的吧,可以找一下代码关闭了

5478-lfy avatar Apr 17 '25 02:04 5478-lfy

@BQQQQB 用户手册里面写了产品模式下功能不全,我直接使用开发者模式可以正常提交schema

Shiwo0826 avatar Apr 22 '25 09:04 Shiwo0826

Search before asking

  • [x] I had searched in the issues and found no similar issues.

Operating system information

Linux

What happened

我在产品模式的web界面中提交了自定义的schema,系统会删除其中的部分关系与属性。

How to reproduce

我输入的病人实体如下: Patient(患者): EntityType desc: 核心患者实体 properties: gender(性别): Text desc: 患者性别 age(年龄): Integer desc: 患者年龄 chiefComplaint(主诉): Text desc: 患者主诉文本 medicalHistory(既往病史): Text desc: 患者既往病史 personalHistory: Text desc: 患者个人史 diseaseDiagnosis(疾病诊断): Text desc: 患者疾病诊断 relations: hasExamination(进行入院查体): PhysicalExamination desc: 患者与入院查体的关联 hasLabExam(进行实验室检查): LaboratoryExamination desc: 患者与实验室检查的关联 hasImagingExam(进行影像学检查): ImagingExamination desc: 患者与影像学检查的关联 hasTreatment(接受治疗): Treatment desc: 患者与治疗方案的关联 hasDischarge(出院情况): Discharge desc: 患者与出院情况的关联

保存后,再次编辑schema,发现其中的病人实体被改变为如下: Patient(患者): EntityType desc:患者与出院情况的关联 properties: gender(性别): Text relations: hasExamination(进行入院查体): PhysicalExamination

Are you willing to submit PR?

  • [ ] Yes I am willing to submit a PR!

The schema editing functions of developer mode and production mode are aligned in KAG V0.8

caszkgui avatar Aug 16 '25 09:08 caszkgui