1.添加移动端用户的检测工具类,移动端用户只能访问对话页面。
2.评查点列表添加文档属性类型字段。 3.优化dify的对话侧边栏的显示效果。 4.评查点规则添加使用文档属性类型的输入框。添加多实体开关的操作开关。
This commit is contained in:
@@ -238,7 +238,12 @@ export default function RuleNew() {
|
||||
references_laws: { name: '', articles: [], content: '' },
|
||||
evaluation_point_groups_pid: null,
|
||||
evaluation_point_groups_id: null,
|
||||
document_attribute_type: '通用',
|
||||
extraction_config: {
|
||||
multi_entity: {
|
||||
enabled: false,
|
||||
expand_mode: 'awareness'
|
||||
},
|
||||
llm: {
|
||||
fields: [],
|
||||
prompt_setting: {
|
||||
@@ -633,7 +638,12 @@ export default function RuleNew() {
|
||||
references_laws: formData.references_laws || null,
|
||||
evaluation_point_groups_pid: formData.evaluation_point_groups_pid || null,
|
||||
evaluation_point_groups_id: formData.evaluation_point_groups_id || null,
|
||||
document_attribute_type: formData.document_attribute_type || '',
|
||||
extraction_config: {
|
||||
multi_entity: {
|
||||
enabled: formData.extraction_config?.multi_entity?.enabled ?? false,
|
||||
expand_mode: formData.extraction_config?.multi_entity?.expand_mode || 'awareness'
|
||||
},
|
||||
llm: {
|
||||
fields: Array.isArray(formData.extraction_config?.llm?.fields) ?
|
||||
[...formData.extraction_config.llm.fields] : [],
|
||||
@@ -651,7 +661,7 @@ export default function RuleNew() {
|
||||
}
|
||||
},
|
||||
regex: {
|
||||
fields: Array.isArray(formData.extraction_config?.regex?.fields) ?
|
||||
fields: Array.isArray(formData.extraction_config?.regex?.fields) ?
|
||||
[...formData.extraction_config.regex.fields] : []
|
||||
}
|
||||
},
|
||||
@@ -838,7 +848,7 @@ export default function RuleNew() {
|
||||
if (isEditMode) {
|
||||
// 使用新的 updateEvaluationPoint API
|
||||
response = await updateEvaluationPoint(String(formData.id!), finalData, frontendJWT);
|
||||
// console.log("最终提交的数据", finalData)
|
||||
console.log("最终提交的数据", finalData)
|
||||
} else {
|
||||
// 使用新的 createEvaluationPoint API
|
||||
response = await createEvaluationPoint(finalData as Omit<EvaluationPointData, 'id' | 'created_at' | 'updated_at'>, frontendJWT);
|
||||
|
||||
Reference in New Issue
Block a user