Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix: Modify the empty artifact description at the document level. (#20296)

balibabu519fdb86a658
diff --git a/web/src/locales/az.ts b/web/src/locales/az.ts
index e0e0a9d20d..cdc50b5db9 100644
--- a/web/src/locales/az.ts
+++ b/web/src/locales/az.ts
@@ -2599,7 +2599,8 @@ Nümunə: Virtual host üslubu`,
navDeleteNodeTitle: 'Düyünü sil',
navDeleteNodeDescription:
'Bu düyünü və onun alt düyünlərini silmək istədiyinizə əminsiniz?',
- representationEmpty: 'Əlçatan artefakt şablonu yoxdur.',
+ representationEmpty:
+ 'Pipeline kompilyatoru konfiqurasiya edilməyib, yoxsa artefakt çıxarılmayıb.',
representationUnsupported: 'Bu təqdimat növü hələ dəstəklənmir.',
claimsPanelTitle: 'İddialar · {{name}}',
claimsTotal: 'Cəmi {{count}}',
diff --git a/web/src/locales/en.ts b/web/src/locales/en.ts
index ba414b5744..8ce33ff7db 100644
--- a/web/src/locales/en.ts
+++ b/web/src/locales/en.ts
@@ -2563,7 +2563,8 @@ Example: Virtual Hosted Style`,
navDeleteNodeTitle: 'Delete node',
navDeleteNodeDescription:
'Are you sure you want to delete this node and its children?',
- representationEmpty: 'No artifact templates available.',
+ representationEmpty:
+ 'The pipeline compiler is not configured, or no artifact was extracted.',
representationUnsupported:
'This representation type is not supported yet.',
claimsPanelTitle: 'Claims · {{name}}',
diff --git a/web/src/locales/ja.ts b/web/src/locales/ja.ts
index 8d967a3925..25b44705fc 100644
--- a/web/src/locales/ja.ts
+++ b/web/src/locales/ja.ts
@@ -3624,7 +3624,8 @@ export default {
directoryRule: 'ルール',
skillFolders: 'スキル',
skillEmpty: '利用可能なスキルがありません',
- representationEmpty: '利用可能な表現テンプレートがありません。',
+ representationEmpty:
+ 'パイプラインのコンパイラが設定されていないか、アーティファクトが抽出されていません。',
representationUnsupported: 'この表現形式にはまだ対応していません。',
claimsPanelTitle: 'アサーション · {{name}}',
claimsTotal: '全 {{count}} 件',
diff --git a/web/src/locales/tr.ts b/web/src/locales/tr.ts
index 612a5274f6..a84d9cf013 100644
--- a/web/src/locales/tr.ts
+++ b/web/src/locales/tr.ts
@@ -2541,7 +2541,8 @@ Bu otomatik etiketleme özelliği, mevcut datasete alanına özgü bilgi katman
navDeleteNodeTitle: 'Düğümü sil',
navDeleteNodeDescription:
'Bu düğümü ve alt düğümlerini silmek istediğinizden emin misiniz?',
- representationEmpty: 'Kullanılabilir artifact şablonu yok.',
+ representationEmpty:
+ 'Pipeline derleyicisi yapılandırılmadı veya artifact çıkarılmadı.',
representationUnsupported: 'Bu gösterim türü henüz desteklenmiyor.',
claimsPanelTitle: 'İddia · {{name}}',
claimsTotal: 'Toplam {{count}}',
diff --git a/web/src/locales/uz.ts b/web/src/locales/uz.ts
index 3862909c68..36dc2f2d7f 100644
--- a/web/src/locales/uz.ts
+++ b/web/src/locales/uz.ts
@@ -2495,7 +2495,8 @@ export default {
navDeleteNodeTitle: 'Tugunni o‘chirish',
navDeleteNodeDescription:
'Haqiqatan ham bu tugunni va uning bola tugunlarini o‘chirmoqchimisiz?',
- representationEmpty: 'Mavjud artefakt shablonlari yo‘q.',
+ representationEmpty:
+ 'Pipeline kompilyatori sozlanmagan, yoki artefakt ajratilmagan.',
representationUnsupported:
'Bu taqdimot turi hozircha qo‘llab-quvvatlanmaydi.',
claimsPanelTitle: 'Da’volar · {{name}}',
diff --git a/web/src/locales/zh.ts b/web/src/locales/zh.ts
index 10e3db4e6c..d80118a6aa 100644
--- a/web/src/locales/zh.ts
+++ b/web/src/locales/zh.ts
@@ -2144,7 +2144,7 @@ NER:使用 spaCy NER 和基于规则的关键词提取来抽取 Entities 和 R
navDeleteAllDescription: '确定要删除整个 PageIndex 吗?此操作无法撤销。',
navDeleteNodeTitle: '删除 PageIndex',
navDeleteNodeDescription: '确定要删除该节点及其子节点吗?',
- representationEmpty: '暂无 Artifact 模板。',
+ representationEmpty: 'Pipeline 编译器未配置或未提取到 Artifact。',
representationUnsupported: '暂不支持该表征类型。',
claimsPanelTitle: '证据链 · {{name}}',
claimsTotal: '共 {{count}} 条',
diff --git a/web/src/pages/agent/form/agent-form/index.tsx b/web/src/pages/agent/form/agent-form/index.tsx
index 43e24a6e0f..f4c31546c4 100644
--- a/web/src/pages/agent/form/agent-form/index.tsx
+++ b/web/src/pages/agent/form/agent-form/index.tsx
@@ -4,10 +4,10 @@ import {
LargeModelFormField,
} from '@/components/large-model-form-field';
import { LlmSettingSchema } from '@/components/llm-setting-items/next';
-import { SliderInputSwitchFormField } from '@/components/llm-setting-items/slider';
import { MessageHistoryWindowSizeFormField } from '@/components/message-history-window-size-item';
import { SelectWithSearch } from '@/components/originui/select-with-search';
import { RAGFlowFormItem } from '@/components/ragflow-form';
+import { SwitchFormField } from '@/components/switch-form-field';
import { Button } from '@/components/ui/button';
import {
Form,
@@ -247,22 +247,10 @@ function AgentForm({ node }: INextOperatorForm) {
<Collapse defaultOpen title={<div>{t('flow.advancedSettings')}</div>}>
<section className="space-y-5">
<MessageHistoryWindowSizeFormField></MessageHistoryWindowSizeFormField>
- <FormField
- control={form.control}
- name={`cite`}
- render={({ field }) => (
- <FormItem className="flex-1">
- <FormLabel tooltip={t('chat.quoteTip')}>
- {t('flow.cite')}
- </FormLabel>
- <FormControl>
- <Switch
- checked={field.value}
- onCheckedChange={field.onChange}
- ></Switch>
- </FormControl>
- </FormItem>
- )}
+ <SwitchFormField
+ name="cite"
+ label={t('flow.cite')}
+ tooltip={t('chat.quoteTip')}
/>
<FormField
control={form.control}