Skip to content

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

Feat: Move wiki-related translation resources to a namespace. (#18359)

balibabu3079e4f65903
diff --git a/web/src/components/expandable-search-input.tsx b/web/src/components/expandable-search-input.tsx
index ec41fa2232..d22e3acc4f 100644
--- a/web/src/components/expandable-search-input.tsx
+++ b/web/src/components/expandable-search-input.tsx
@@ -93,7 +93,7 @@ export function ExpandableSearchInput({
size="icon"
type="button"
onClick={handleToggle}
- aria-label={t('chunk.search', 'Search')}
+ aria-label={t('common.search')}
>
<Search className="h-5 w-5" />
</Button>
diff --git a/web/src/components/structure-graph/representation-renderer.tsx b/web/src/components/structure-graph/representation-renderer.tsx
index dc2da335dc..8bcc1c38d3 100644
--- a/web/src/components/structure-graph/representation-renderer.tsx
+++ b/web/src/components/structure-graph/representation-renderer.tsx
@@ -55,7 +55,7 @@ function UnsupportedPlaceholder({ kind }: { kind: StructureTemplateKind }) {
return (
<div className="flex items-center justify-center h-full text-text-secondary">
- {t('chunk.representationUnsupported', {
+ {t('knowledgeCompilation.representationUnsupported', {
kind,
defaultValue: 'This representation type is not supported yet.',
})}
diff --git a/web/src/locales/en.ts b/web/src/locales/en.ts
index e5e2d7e955..1e0d62ab4c 100644
--- a/web/src/locales/en.ts
+++ b/web/src/locales/en.ts
@@ -463,25 +463,6 @@ Example: A 1 KB message with 1024-dim embedding uses ~9 KB. The 5 MB default lim
'Compiles artifact pages (entity / concept / topic wiki) from every document configured with a knowledge compilation template. Only newly added chunks are processed on each run.',
generateToSkills:
'Builds a hierarchical skill tree from this dataset and stores the generated skill pages for search and reuse.',
- noWikiPages: 'No wiki pages yet',
- clearWikiTitle: 'Clear wiki',
- clearWikiDescription:
- 'Are you sure you want to clear all wiki pages in this dataset? This action cannot be undone.',
- update: 'Update',
- updateTooltip:
- '{{newlyUploaded}} new, {{removed}} removed, {{changed}} changed documents found. Click to compile and merge into current Wiki.',
- updateSheetTitle: 'Update Wiki',
- updateStructureSheetTitle: 'Update {{name}}',
- updateStructureTooltip:
- '{{newlyUploaded}} new, {{removed}} removed documents found. Click to update the {{name}}.',
- viewUpdateLogs: 'View update logs',
- log: 'Log',
- noSkills: 'No skills yet',
- generate: 'Generate',
- compiling: 'Compiling…',
- compilingCounts: '{{inflight}} processing / {{backlog}} queued',
- autoCompiled: 'Compiled automatically when documents are parsed.',
-
raptor: 'RAPTOR',
artifact: 'Artifact',
toSkills: 'To skills',
@@ -521,47 +502,6 @@ Example: A 1 KB message with 1024-dim embedding uses ~9 KB. The 5 MB default lim
nextConfiguration: 'Dataset configuration',
knowledgeGraph: 'Knowledge graph',
compilation: 'Compilation',
- export: 'Export',
- version: 'Version',
- versionHistory: 'Version history',
- currentVersion: 'Current version',
- versionDiff: "What's changed in this version",
- noDiffAvailable: 'No changes to display',
- viewingVersion: 'Viewing version',
- commit: 'Commit',
- confirmCommit: 'Confirm commit',
- versionContent: 'Version content',
- versionContentPlaceholder: 'Enter version content',
- versionContentRequired: 'Please input version content',
- graph: 'Graph',
- graphPlaceholder: 'Graph view placeholder',
- skills: 'To Skills',
- llmWiki: 'Wiki',
- navTree: 'Tree/Page index',
- structureGraph: 'Graph',
- structureMindmap: 'Mind map',
- structureTimeline: 'Timeline',
- structureSessionEssence: 'Session essence',
- structureSessionGraph: 'Session graph',
- noStructureGraph: 'No graph yet',
- noStructureMindmap: 'No mind map yet',
- noStructureTimeline: 'No timeline yet',
- noStructureSessionEssence: 'No session essence yet',
- noStructureSessionGraph: 'No session graph yet',
- deleteStructureConfirm: 'Are you sure you want to delete the {{name}}?',
- contents: 'Navigation',
- topics: 'Topics',
- concept: 'Concept',
- entity: 'Entity',
- createDirectoryFolder: 'Create directory',
- directoryName: 'Name',
- directoryNamePlaceholder: 'Instance name',
- directoryRule: 'Rule',
- directoryRulePlaceholder: 'Input',
- selectArtifact: 'Select an item from the contents to view details',
- searchEntity: 'Search entity',
- sourceDocuments: 'Source documents',
- compilationTitleSuffix: "' dataset",
name: 'Name',
namePlaceholder: 'Please input name!',
doc: 'Docs',
@@ -1029,7 +969,6 @@ This auto-tagging feature enhances retrieval by adding another layer of domain-s
enabledSelected: 'Enable selected',
disabledSelected: 'Disable selected',
deleteSelected: 'Delete selected',
- search: 'Search',
all: 'All',
enabled: 'Enabled',
disabled: 'Disabled',
@@ -1055,9 +994,6 @@ This auto-tagging feature enhances retrieval by adding another layer of domain-s
tree: 'Tree',
raptor: 'RAPTOR',
},
- representationUnsupported:
- 'This representation type is not supported yet.',
- representationEmpty: 'No artifact templates available.',
enable: 'Enable',
disable: 'Disable',
delete: 'Delete',
@@ -1869,79 +1805,6 @@ Example: Virtual Hosted Style`,
datasourceDescription: 'Manage your data source and connections',
chatChannels: 'Chat channels',
chatChannelsDescription: 'Manage your chat channel bots and credentials',
- addTemplateGroup: 'Add template',
- editTemplateGroup: 'Edit template',
- templateCount: '{{count}} template(s)',
- atLeastOneTemplateRequired: 'At least one template is required',
- deleteTemplateGroupModalTitle: 'Delete template group',
- deleteTemplateGroupModalContent:
- 'Are you sure you want to delete this template group? This action cannot be undone.',
- addTemplate: 'Add template',
- deleteTemplateModalTitle: 'Delete template',
- deleteTemplateModalContent:
- 'Are you sure you want to delete this template? This action cannot be undone.',
- editTemplate: 'Edit template',
- templateName: 'Name',
- templateNameRequired: 'Please input template name',
- templateDescription: 'Description',
- templateKind: 'Kind',
- templateKindRequired: 'Please select a kind',
- entitySpecification: 'Entity specification',
- relationSpecification: 'Relation specification',
- conceptSpecification: 'Concept specification',
- claimSpecification: 'Claim specification',
- field: 'Field',
- fieldType: 'Type',
- fieldTypeRequired: 'Please select a type',
- fieldDescription: 'Description',
- fieldDescriptionRequired: 'Please input description',
- fieldRule: 'Rule',
- rulePlaceholder: 'Input extraction rules',
- description: 'Description',
- descriptionPlaceholder: 'Enter description',
- addField: 'Add field',
- example: 'Example',
- examplePlaceholder: 'Input example',
- instruction: 'Instruction',
- globalRules: 'Global rules',
- globalRulesPlaceholder: 'Input global compilation rules',
- wikiMode: 'Wiki mode',
- entityMode: 'Entity mode',
- topicMode: 'Topic mode',
- wikiModeRequired: 'Please select a Wiki mode',
- wikiModeTip:
- 'Entity mode: one Wiki page per entity or concept. Topic mode: let the LLM group related entities or concepts into the same Wiki page by topic.',
- raptorTreeSettings: 'RAPTOR tree settings',
- summarizationPrompt: 'Summarization prompt',
- maxToken: 'Max token',
- maxTokenRequired: 'Please input max token',
- threshold: 'Threshold',
- clusteringThreshold: 'Clustering threshold',
- clusteringThresholdTip:
- 'Sets the percentile used to split clusters by adjacent chunk similarity. Higher values create more cluster boundaries.',
- clusteringRatio: 'Clustering ratio',
- clusteringRatioTip:
- 'Sets the maximum number of clusters as a fraction of the input chunks. Lower values produce fewer clusters.',
- rechunkByTreeLeaves: 'Re-chunk by tree leaves',
- rechunkByTreeLeavesTip:
- "Merge each leaf cluster's source chunks into a single replacement chunk. Originals are kept but marked unavailable for retrieval. Only one tree template per group may enable this.",
- rechunkInput: 'Re-chunk parser output',
- rechunkInputTip:
- 'Let the LLM determine chunk boundaries based on the knowledge compilation task.',
- rechunkRules: 'Rechunking rules',
- rechunkRulesPlaceholder:
- 'Describe how the LLM should group source chunks for this compilation task.',
- jsonPreview: 'JSON preview',
- processFlow: 'Process flow',
- processFlowComingSoon: 'Process flow preview coming soon',
- blueprints: 'Blueprints',
- custom: 'Custom',
- templates: 'Templates',
- addFieldModalTitle: 'Add field',
- editFieldModalTitle: 'Edit field',
- selectFieldType: 'Select field type',
- fieldTypeExists: 'This field type already exists',
- blueprintsPlaceholder: 'Blueprints placeholder',
channelEmptyTip:
'No chat channels added yet. Select one below to connect.',
availableChannels: 'Available channels',
@@ -2369,37 +2232,132 @@ Example: Virtual Hosted Style`,
modelMaxTokensMinMessage: 'Max tokens must be at least 0',
},
knowledgeCompilation: {
+ addTemplateGroup: 'Add template',
+ editTemplateGroup: 'Edit template',
+ deleteTemplateGroupTitle: 'Delete template group',
+ deleteTemplateGroupDescription:
+ 'Are you sure you want to delete this template group? This action cannot be undone.',
+ templateNameRequired: 'Please input template name',
+ templateKindRequired: 'Please select a kind',
builtinTemplates: 'Template',
- },
- datasetSkill: {
- folders: 'Skills',
- empty: 'No skills available',
- selectFolder: 'Select a skill to view details',
- currentFolder: 'Skill',
- noContent: 'No content',
- deleteAllTitle: 'Delete all skills',
- deleteAllDescription:
- 'Are you sure you want to delete all skills? This action cannot be undone.',
- deleteSkillTitle: 'Delete skill',
- deleteSkillDescription: 'Are you sure you want to delete this skill?',
- },
- datasetNav: {
- title: 'Navigation tree',
- empty: 'No navigation nodes',
- loading: 'Loading...',
- selectNode: 'Select a child node to view details',
- noDescription: 'No description',
+ entitySpecification: 'Entity specification',
+ relationSpecification: 'Relation specification',
+ conceptSpecification: 'Concept specification',
+ claimSpecification: 'Claim specification',
+ fieldType: 'Type',
+ fieldTypeRequired: 'Please select a type',
description: 'Description',
- keywords: 'Keywords',
- entities: 'Entities',
- graphContent: 'Full Graph Content',
- docCount: '{{count}} documents',
- deleteAllTitle: 'Delete navigation tree',
- deleteAllDescription:
+ fieldDescriptionRequired: 'Please input description',
+ fieldRule: 'Rule',
+ addField: 'Add field',
+ editField: 'Edit field',
+ selectFieldType: 'Select field type',
+ fieldTypeExists: 'This field type already exists',
+ example: 'Example',
+ instruction: 'Instruction',
+ custom: 'Custom',
+ blueprints: 'Blueprints',
+ globalRules: 'Global rules',
+ globalRulesPlaceholder: 'Input global compilation rules',
+ wikiMode: 'Wiki mode',
+ entityMode: 'Entity mode',
+ topicMode: 'Topic mode',
+ wikiModeRequired: 'Please select a Wiki mode',
+ wikiModeTip:
+ 'Entity mode: one Wiki page per entity or concept. Topic mode: let the LLM group related entities or concepts into the same Wiki page by topic.',
+ raptorTreeSettings: 'RAPTOR tree settings',
+ summarizationPrompt: 'Summarization prompt',
+ maxToken: 'Max token',
+ maxTokenRequired: 'Please input max token',
+ clusteringThreshold: 'Clustering threshold',
+ clusteringThresholdTip:
+ 'Sets the percentile used to split clusters by adjacent chunk similarity. Higher values create more cluster boundaries.',
+ clusteringRatio: 'Clustering ratio',
+ clusteringRatioTip:
+ 'Sets the maximum number of clusters as a fraction of the input chunks. Lower values produce fewer clusters.',
+ rechunkByTreeLeaves: 'Re-chunk by tree leaves',
+ rechunkByTreeLeavesTip:
+ "Merge each leaf cluster's source chunks into a single replacement chunk. Originals are kept but marked unavailable for retrieval. Only one tree template per group may enable this.",
+ rechunkInput: 'Re-chunk parser output',
+ rechunkInputTip:
+ 'Let the LLM determine chunk boundaries based on the knowledge compilation task.',
+ rechunkRules: 'Rechunking rules',
+ rechunkRulesPlaceholder:
+ 'Describe how the LLM should group source chunks for this compilation task.',
+ jsonPreview: 'JSON preview',
+ processFlow: 'Process flow',
+ processFlowComingSoon: 'Process flow preview coming soon',
+ compilationTitleSuffix: "' dataset",
+ llmWiki: 'Wiki',
+ skills: 'To Skills',
+ navTree: 'Tree/Page index',
+ graph: 'Graph',
+ structureMindmap: 'Mind map',
+ structureTimeline: 'Timeline',
+ noWikiPages: 'No wiki pages yet',
+ noSkills: 'No skills yet',
+ noStructureGraph: 'No graph yet',
+ noStructureMindmap: 'No mind map yet',
+ noStructureTimeline: 'No timeline yet',
+ contents: 'Navigation',
+ topics: 'Topics',
+ selectArtifact: 'Select an item from the contents to view details',
+ searchEntity: 'Search entity',
+ sourceDocuments: 'Source documents',
+ clearWikiTitle: 'Clear wiki',
+ clearWikiDescription:
+ 'Are you sure you want to clear all wiki pages in this dataset? This action cannot be undone.',
+ update: 'Update',
+ updateTooltip:
+ '{{newlyUploaded}} new, {{removed}} removed, {{changed}} changed documents found. Click to compile and merge into current Wiki.',
+ updateSheetTitle: 'Update Wiki',
+ updateStructureSheetTitle: 'Update {{name}}',
+ updateStructureTooltip:
+ '{{newlyUploaded}} new, {{removed}} removed documents found. Click to update the {{name}}.',
+ generate: 'Generate',
+ compiling: 'Compiling…',
+ compilingCounts: '{{inflight}} processing / {{backlog}} queued',
+ autoCompiled: 'Compiled automatically when documents are parsed.',
+ export: 'Export',
+ version: 'Version',
+ versionHistory: 'Version history',
+ versionDiff: "What's changed in this version",
+ noDiffAvailable: 'No changes to display',
+ commit: 'Commit',
+ confirmCommit: 'Confirm commit',
+ versionContent: 'Version content',
+ versionContentPlaceholder: 'Enter version content',
+ versionContentRequired: 'Please input version content',
+ viewUpdateLogs: 'View update logs',
+ log: 'Log',
+ createDirectoryFolder: 'Create directory',
+ directoryRule: 'Rule',
+ deleteStructureConfirm: 'Are you sure you want to delete the {{name}}?',
+ skillFolders: 'Skills',
+ skillEmpty: 'No skills available',
+ skillDeleteAllTitle: 'Delete all skills',
+ skillDeleteAllDescription:
+ 'Are you sure you want to delete all skills? This action cannot be undone.',
+ skillDeleteTitle: 'Delete skill',
+ skillDeleteDescription: 'Are you sure you want to delete this skill?',
+ navTitle: 'Navigation tree',
+ navEmpty: 'No navigation nodes',
+ navLoading: 'Loading...',
+ navSelectNode: 'Select a child node to view details',
+ navNoDescription: 'No description',
+ navKeywords: 'Keywords',
+ navEntities: 'Entities',
+ navGraphContent: 'Full Graph Content',
+ navDocCount: '{{count}} documents',
+ navDeleteAllTitle: 'Delete navigation tree',
+ navDeleteAllDescription:
'Are you sure you want to delete the entire navigation tree? This action cannot be undone.',
- deleteNodeTitle: 'Delete node',
- deleteNodeDescription:
+ navDeleteNodeTitle: 'Delete node',
+ navDeleteNodeDescription:
'Are you sure you want to delete this node and its children?',
+ representationEmpty: 'No artifact templates available.',
+ representationUnsupported:
+ 'This representation type is not supported yet.',
},
message: {
registered: 'Registered!',
diff --git a/web/src/locales/ja.ts b/web/src/locales/ja.ts
index 6e37fbecc8..2b0a92b611 100644
--- a/web/src/locales/ja.ts
+++ b/web/src/locales/ja.ts
@@ -330,12 +330,6 @@ export default {
'ナレッジコンパイルテンプレートが設定されたすべてのドキュメントから、アーティファクトページ(エンティティ/コンセプト/トピックのwiki)を作成します。実行のたびに、新規追加されたチャンクのみが処理されます。',
generateToSkills:
'このデータセットから階層的なスキルツリーを構築し、生成されたスキルページを検索・再利用のために保存します。',
- noWikiPages: 'wikiページはまだありません',
- clearWikiTitle: 'wikiをクリア',
- clearWikiDescription:
- 'このデータセット内のすべてのwikiページをクリアしてもよろしいですか?この操作は元に戻せません。',
- noSkills: 'スキルはまだありません',
- generate: '生成',
raptor: 'RAPTOR',
artifact: 'アーティファクト',
toSkills: 'スキルへ',
@@ -370,34 +364,6 @@ export default {
Parse: 'パース',
knowledgeGraph: 'ナレッジグラフ',
compilation: 'コンパイル',
- export: 'エクスポート',
- version: 'バージョン',
- versionHistory: 'バージョン履歴',
- currentVersion: '現在のバージョン',
- versionDiff: 'このバージョンでの変更点',
- noDiffAvailable: '表示する変更はありません',
- viewingVersion: '表示中のバージョン',
- commit: 'コミット',
- confirmCommit: 'コミットを確定',
- versionContent: 'バージョン内容',
- versionContentPlaceholder: 'バージョン内容を入力してください',
- versionContentRequired: 'バージョン内容を入力してください',
- graph: 'グラフ',
- graphPlaceholder: 'グラフビューのプレースホルダー',
- llmWiki: 'LLM Wiki',
- skills: 'スキル',
- contents: 'ナビゲーション',
- topics: 'トピック',
- concept: 'コンセプト',
- entity: 'エンティティ',
- createDirectoryFolder: 'ディレクトリを作成',
- directoryName: '名前',
- directoryNamePlaceholder: 'インスタンス名',
- directoryRule: 'ルール',
- directoryRulePlaceholder: '入力してください',
- selectArtifact: 'ナビゲーションから項目を選択すると詳細が表示されます',
- sourceDocuments: 'ソースドキュメント',
- compilationTitleSuffix: 'のデータセット',
noTestResultsForRuned:
'関連する結果が見つかりませんでした。クエリまたはパラメータを調整してください。',
noTestResultsForNotRuned:
@@ -752,7 +718,6 @@ export default {
enabledSelected: '選択を有効化',
disabledSelected: '選択を無効化',
deleteSelected: '選択を削除',
- search: '検索',
all: 'すべて',
enabled: '有効',
disabled: '無効',
@@ -792,8 +757,6 @@ export default {
raptor: 'RAPTOR',
},
- representationUnsupported: 'この表現形式にはまだ対応していません。',
- representationEmpty: '利用可能な表現テンプレートがありません。',
enable: '有効化',
disable: '無効化',
delete: '削除',
@@ -1597,79 +1560,6 @@ export default {
datasourceDescription: 'データソースと接続を管理します',
chatChannels: 'チャットチャネル',
chatChannelsDescription: 'チャットチャネルのボットと認証情報を管理します',
- compilationTemplates: 'コンパイルテンプレート',
- compilationTemplatesDescription: 'コンパイルテンプレートを管理します',
- addTemplateGroup: 'テンプレートグループを追加',
- editTemplateGroup: 'テンプレートグループを編集',
- groupName: 'グループ名',
- groupNameRequired: 'グループ名を入力してください',
- groupDescription: 'グループの説明',
- templateCount: '{{count}}件のテンプレート',
- atLeastOneTemplateRequired: '少なくとも1つのテンプレートが必要です',
- template: 'テンプレート',
- deleteTemplateGroupModalTitle: 'テンプレートグループを削除',
- deleteTemplateGroupModalContent:
- 'このテンプレートグループを削除してもよろしいですか?この操作は元に戻せません。',
- addTemplate: 'テンプレートを追加',
- noTemplates: 'コンパイルテンプレートはまだありません。',
- deleteTemplateModalTitle: 'テンプレートを削除',
- deleteTemplateModalContent:
- 'このテンプレートを削除してもよろしいですか?この操作は元に戻せません。',
- editTemplate: 'テンプレートを編集',
- templateName: '名前',
- templateNameRequired: 'テンプレート名を入力してください',
- templateDescription: '説明',
- llmForExtraction: '抽出用LLM',
- llmForExtractionRequired: 'LLMモデルを選択してください',
- templateKind: '種類',
- templateKindRequired: '種類を選択してください',
- entitySpecification: 'エンティティ仕様',
- relationSpecification: 'リレーション仕様',
- conceptSpecification: 'コンセプト仕様',
- claimSpecification: 'クレーム仕様',
- field: 'フィールド',
- fieldType: 'タイプ',
- fieldTypeRequired: 'タイプを選択してください',
- fieldDescription: '説明',
- fieldDescriptionRequired: '説明を入力してください',
- fieldRule: 'ルール',
- rulePlaceholder: '抽出ルールを入力',
- description: '説明',
- descriptionPlaceholder: '説明を入力してください',
- addField: 'フィールドを追加',
- example: '例',
- examplePlaceholder: '入力例',
- instruction: '指示',
- globalRules: 'グローバルルール',
- globalRulesPlaceholder: 'グローバルなコンパイルルールを入力してください',
- raptorTreeSettings: 'RAPTORツリー設定',
- summarizationPrompt: '要約プロンプト',
- maxToken: '最大トークン数',
- maxTokenRequired: '最大トークン数を入力してください',
- threshold: '閾値',
- rechunkByTreeLeaves: 'ツリーの葉ノードで再チャンク化',
- rechunkByTreeLeavesTip:
- '各葉クラスターの元チャンクを1つの置換用チャンクに統合します。元のチャンクは保持されますが、検索には使用できないマークが付けられます。この設定を有効にできるツリーテンプレートは、グループごとに1つのみです。',
- jsonPreview: 'JSONプレビュー',
- processFlow: '処理フロー',
- processFlowComingSoon: '処理フローのプレビューは近日公開予定です',
- basicInfo: '基本情報',
- basicInfoDescription: 'テンプレートグループの基本情報',
- templateWizardConfiguration: '設定',
- templateWizardConfigurationDescription: 'テンプレートを設定します',
- blueprints: 'ブループリント',
- blueprintsDescription: '必要なブループリントを選択してください',
- custom: 'カスタム',
- templates: 'テンプレート',
- addFieldModalTitle: 'フィールドを追加',
- editFieldModalTitle: 'フィールドを編集',
- selectFieldType: 'フィールドタイプを選択',
- blueprintsPlaceholder: 'ブループリントのプレースホルダー',
- blueprintsPlaceholderDescription:
- '左側のブループリントライブラリから特定の構造を選択またはカスタマイズして、Wikiのコンテンツ構成と表示形式を定義します。',
- blueprintsPlaceholderSkip:
- '特に要件がない場合は、このステップをスキップしても構いません。その場合、システムがデフォルトの構造を自動的に適用します。',
- useBlueprint: 'このブループリントを使用',
channelEmptyTip:
'チャットチャンネルはまだ追加されていません。以下から選択して接続してください。',
availableChannels: '利用可能なチャンネル',
@@ -3656,12 +3546,73 @@ export default {
delMemory: 'メモリーを削除',
},
- datasetSkill: {
- folders: 'スキル',
- empty: '利用可能なスキルがありません',
- selectFolder: '詳細を表示するスキルを選択してください',
- currentFolder: 'スキル',
- noContent: 'コンテンツがありません',
+ knowledgeCompilation: {
+ addTemplateGroup: 'テンプレートグループを追加',
+ editTemplateGroup: 'テンプレートグループを編集',
+ deleteTemplateGroupTitle: 'テンプレートグループを削除',
+ deleteTemplateGroupDescription:
+ 'このテンプレートグループを削除してもよろしいですか?この操作は元に戻せません。',
+ templateNameRequired: 'テンプレート名を入力してください',
+ templateKindRequired: '種類を選択してください',
+ builtinTemplates: '組み込みテンプレート',
+ entitySpecification: 'エンティティ仕様',
+ relationSpecification: 'リレーション仕様',
+ conceptSpecification: 'コンセプト仕様',
+ claimSpecification: 'クレーム仕様',
+ fieldType: 'タイプ',
+ fieldTypeRequired: 'タイプを選択してください',
+ description: '説明',
+ fieldDescriptionRequired: '説明を入力してください',
+ fieldRule: 'ルール',
+ addField: 'フィールドを追加',
+ editField: 'フィールドを編集',
+ selectFieldType: 'フィールドタイプを選択',
+ example: '例',
+ instruction: '指示',
+ custom: 'カスタム',
+ blueprints: 'ブループリント',
+ globalRules: 'グローバルルール',
+ globalRulesPlaceholder: 'グローバルなコンパイルルールを入力してください',
+ raptorTreeSettings: 'RAPTORツリー設定',
+ summarizationPrompt: '要約プロンプト',
+ maxToken: '最大トークン数',
+ maxTokenRequired: '最大トークン数を入力してください',
+ rechunkByTreeLeaves: 'ツリーの葉ノードで再チャンク化',
+ rechunkByTreeLeavesTip:
+ '各葉クラスターの元チャンクを1つの置換用チャンクに統合します。元のチャンクは保持されますが、検索には使用できないマークが付けられます。この設定を有効にできるツリーテンプレートは、グループごとに1つのみです。',
+ jsonPreview: 'JSONプレビュー',
+ processFlow: '処理フロー',
+ processFlowComingSoon: '処理フローのプレビューは近日公開予定です',
+ compilationTitleSuffix: 'のデータセット',
+ llmWiki: 'LLM Wiki',
+ skills: 'スキル',
+ graph: 'グラフ',
+ noWikiPages: 'wikiページはまだありません',
+ noSkills: 'スキルはまだありません',
+ contents: 'ナビゲーション',
+ topics: 'トピック',
+ selectArtifact: 'ナビゲーションから項目を選択すると詳細が表示されます',
+ sourceDocuments: 'ソースドキュメント',
+ clearWikiTitle: 'wikiをクリア',
+ clearWikiDescription:
+ 'このデータセット内のすべてのwikiページをクリアしてもよろしいですか?この操作は元に戻せません。',
+ generate: '生成',
+ export: 'エクスポート',
+ version: 'バージョン',
+ versionHistory: 'バージョン履歴',
+ versionDiff: 'このバージョンでの変更点',
+ noDiffAvailable: '表示する変更はありません',
+ commit: 'コミット',
+ confirmCommit: 'コミットを確定',
+ versionContent: 'バージョン内容',
+ versionContentPlaceholder: 'バージョン内容を入力してください',
+ versionContentRequired: 'バージョン内容を入力してください',
+ createDirectoryFolder: 'ディレクトリを作成',
+ directoryRule: 'ルール',
+ skillFolders: 'スキル',
+ skillEmpty: '利用可能なスキルがありません',
+ representationEmpty: '利用可能な表現テンプレートがありません。',
+ representationUnsupported: 'この表現形式にはまだ対応していません。',
},
llmTools: {
@@ -3686,9 +3637,5 @@ export default {
total: '合計 {{total}} 件',
page: '{{page}} 件 / ページ',
},
-
- knowledgeCompilation: {
- builtinTemplates: '組み込みテンプレート',
- },
},
};
diff --git a/web/src/locales/zh.ts b/web/src/locales/zh.ts
index a4172c5f0f..f3f35597e6 100644
--- a/web/src/locales/zh.ts
+++ b/web/src/locales/zh.ts
@@ -413,23 +413,6 @@ export default {
'从配置了知识编译模板的每个文档中编译 Artifact 页面(Entity / Concept / Topic)。每次运行仅处理新添加的 Chunk。',
generateToSkills:
'从该数据集构建分层 Skills 树,并存储生成的 Skills 页面以供搜索和复用。',
- noWikiPages: '暂无 Wiki 页面',
- compiling: '编译中…',
- compilingCounts: '处理中 {{inflight}} / 待处理 {{backlog}}',
- autoCompiled: '文档解析时自动编译。',
- clearWikiTitle: '清空 Wiki',
- clearWikiDescription:
- '确定要清空该数据集下的所有 Wiki 页面吗?此操作无法撤销。',
- update: '更新',
- updateTooltip:
- '发现 {{newlyUploaded}} 个新文档,{{removed}} 个已移除文档,{{changed}} 个已变更文档。点击编译并合并到当前 Wiki。',
- updateSheetTitle: '更新 Wiki',
- updateStructureSheetTitle: '更新{{name}}',
- updateStructureTooltip:
- '发现 {{newlyUploaded}} 个新文档,{{removed}} 个已移除文档。点击更新{{name}}。',
- viewUpdateLogs: '查看更新日志',
- log: '日志',
- noSkills: '暂无 Skills',
processingType: '处理类型',
dataPipeline: '切换或配置 ingestion pipeline。',
dataPipelineTitle: '数据管道',
@@ -465,47 +448,6 @@ export default {
nextConfiguration: '知识库配置',
knowledgeGraph: 'Graph',
compilation: '编译',
- export: '导出',
- version: '版本',
- versionHistory: '版本历史',
- currentVersion: '当前版本',
- versionDiff: '本版本改了什么',
- noDiffAvailable: '暂无变更内容',
- viewingVersion: '正在查看版本',
- commit: '提交',
- confirmCommit: '确认提交',
- versionContent: '版本内容',
- versionContentPlaceholder: '请输入版本内容',
- versionContentRequired: '请输入版本内容',
- graph: 'Graph',
- graphPlaceholder: 'Graph 视图占位',
- skills: '技能',
- llmWiki: 'Wiki',
- navTree: 'PageIndex',
- structureGraph: 'Graph',
- structureMindmap: 'Mindmap',
- structureTimeline: 'Timeline',
- structureSessionEssence: 'Session Essence',
- structureSessionGraph: 'Session Graph',
- noStructureGraph: '暂无 Graph',
- noStructureMindmap: '暂无 Mindmap',
- noStructureTimeline: '暂无 Timeline',
- noStructureSessionEssence: '暂无 Session Essence',
- noStructureSessionGraph: '暂无 Session Graph',
- deleteStructureConfirm: '确定要删除{{name}}吗?',
- contents: '导航',
- topics: 'Topic',
- concept: 'Concept',
- createDirectoryFolder: '创建目录',
- directoryName: '名称',
- directoryNamePlaceholder: 'Entity 名称',
- directoryRule: '规则',
- directoryRulePlaceholder: '输入',
- entity: 'Entity',
- selectArtifact: '从目录中选择一个条目以查看详情',
- searchEntity: '搜索 Entity',
- sourceDocuments: '来源文档',
- compilationTitleSuffix: '的数据集',
files: '个文件',
name: '名称',
namePlaceholder: '请输入名称',
@@ -927,7 +869,6 @@ NER:使用 spaCy NER 和基于规则的关键词提取来抽取 Entities 和 R
enabledSelected: '启用选定的',
disabledSelected: '禁用选定的',
deleteSelected: '删除选定的',
- search: '搜索',
all: '所有',
enabled: '启用',
disabled: '禁用',
@@ -951,8 +892,6 @@ NER:使用 spaCy NER 和基于规则的关键词提取来抽取 Entities 和 R
tree: 'Tree',
raptor: 'RAPTOR',
},
- representationUnsupported: '暂不支持该表征类型。',
- representationEmpty: '暂无Artifact模板。',
enable: '启用',
disable: '禁用',
delete: '删除',
@@ -1559,77 +1498,6 @@ NER:使用 spaCy NER 和基于规则的关键词提取来抽取 Entities 和 R
datasourceDescription: '管理您的数据源和连接',
chatChannels: '聊天渠道',
chatChannelsDescription: '管理您的聊天渠道机器人及凭证',
- addTemplateGroup: '添加模板',
- editTemplateGroup: '编辑模板',
- templateCount: '{{count}} 个模板',
- atLeastOneTemplateRequired: '至少需要一个模板',
- deleteTemplateGroupModalTitle: '删除模板分组',
- deleteTemplateGroupModalContent:
- '确定要删除此模板分组吗?此操作无法撤销。',
- addTemplate: '添加模板',
- deleteTemplateModalTitle: '删除模板',
- deleteTemplateModalContent: '确定要删除此模板吗?此操作无法撤销。',
- editTemplate: '编辑模板',
- templateName: '名称',
- templateNameRequired: '请输入模板名称',
- templateDescription: '描述',
- templateKind: '类型',
- templateKindRequired: '请选择类型',
- entitySpecification: 'Entity specification',
- relationSpecification: 'Relation specification',
- conceptSpecification: 'Concept specification',
- claimSpecification: 'Claim specification',
- field: '字段',
- fieldType: 'Type',
- fieldTypeRequired: '请选择 type',
- fieldDescription: '描述',
- fieldDescriptionRequired: '请输入描述',
- fieldRule: '规则',
- rulePlaceholder: '请输入提取规则',
- description: '描述',
- descriptionPlaceholder: '请输入描述',
- addField: '添加字段',
- example: '示例',
- examplePlaceholder: '请输入示例',
- instruction: 'Instruction',
- globalRules: '全局规则',
- globalRulesPlaceholder: '请输入全局编译规则',
- wikiMode: 'Wiki 模式',
- entityMode: '实体模式',
- topicMode: '主题模式',
- wikiModeRequired: '请选择 Wiki 模式',
- wikiModeTip:
- '实体模式:每个实体或概念对应一个 Wiki 页面。主题模式:让 LLM 按主题将相关实体或概念组合到同一个 Wiki 页面。',
- raptorTreeSettings: 'RAPTOR 树设置',
- summarizationPrompt: '摘要提示词',
- maxToken: '最大 token 数',
- maxTokenRequired: '请输入最大 token 数',
- threshold: '阈值',
- clusteringThreshold: '聚类阈值',
- clusteringThresholdTip:
- '按相邻数据块相似度分布的百分位决定聚类边界。数值越高,产生的聚类边界越多。',
- clusteringRatio: '聚类比例',
- clusteringRatioTip:
- '设置聚类数量相对于输入数据块数量的最大比例。数值越低,聚类数量越少。',
- rechunkByTreeLeaves: '按树叶重新分块',
- rechunkByTreeLeavesTip:
- '将每个叶簇的源数据块合并为单个替换数据块。原始数据块保留但标记为不可检索。每个分组最多只能有一个树模板启用此功能。',
- rechunkInput: '重新切分 Parser 输出',
- rechunkInputTip: '根据知识编译任务,由 LLM 决定 Chunk 边界。',
- rechunkRules: '重分片规则',
- rechunkRulesPlaceholder:
- '描述此知识编译任务下,LLM 应如何合并和划分源 Chunk。',
- jsonPreview: 'JSON 预览',
- processFlow: '流程视图',
- processFlowComingSoon: '流程视图预览即将到来',
- blueprints: '蓝图',
- custom: '自定义',
- templates: '模板',
- addFieldModalTitle: '添加字段',
- editFieldModalTitle: '编辑字段',
- selectFieldType: '选择字段类型',
- fieldTypeExists: '该字段类型已存在',
- blueprintsPlaceholder: '蓝图占位',
channelEmptyTip: '暂未添加任何聊天渠道,请从下方选择一个进行连接。',
availableChannels: '可用渠道',
availableChannelsDescription: '选择要添加的聊天渠道',
@@ -2012,34 +1880,127 @@ NER:使用 spaCy NER 和基于规则的关键词提取来抽取 Entities 和 R
modelMaxTokensMinMessage: '最大 Token 数不能小于 0',
},
knowledgeCompilation: {
+ addTemplateGroup: '添加模板',
+ editTemplateGroup: '编辑模板',
+ deleteTemplateGroupTitle: '删除模板分组',
+ deleteTemplateGroupDescription:
+ '确定要删除此模板分组吗?此操作无法撤销。',
+ templateNameRequired: '请输入模板名称',
+ templateKindRequired: '请选择类型',
builtinTemplates: '模板',
- },
- datasetSkill: {
- folders: 'Skills',
- empty: 'No Skills Found',
- selectFolder: '选择一个 Skill 以查看详情',
- currentFolder: 'Skills',
- noContent: '无内容',
- deleteAllTitle: '删除全部 Skills',
- deleteAllDescription: '确定要删除全部 Skills 吗?此操作无法撤销。',
- deleteSkillTitle: '删除 Skill',
- deleteSkillDescription: '确定要删除该 Skill 吗?',
- },
- datasetNav: {
- title: 'PageIndex',
- empty: '暂无导航节点',
- loading: '加载中...',
- selectNode: '选择子节点以查看详情',
- noDescription: '暂无描述',
+ entitySpecification: 'Entity specification',
+ relationSpecification: 'Relation specification',
+ conceptSpecification: 'Concept specification',
+ claimSpecification: 'Claim specification',
+ fieldType: 'Type',
+ fieldTypeRequired: '请选择 type',
description: '描述',
- keywords: 'Keyword',
- entities: 'Entity',
- graphContent: '完整 Graph 内容',
- docCount: '{{count}} 个文档',
- deleteAllTitle: '删除 PageIndex',
- deleteAllDescription: '确定要删除整个 PageIndex 吗?此操作无法撤销。',
- deleteNodeTitle: '删除 PageIndex',
- deleteNodeDescription: '确定要删除该节点及其子节点吗?',
+ fieldDescriptionRequired: '请输入描述',
+ fieldRule: '规则',
+ addField: '添加字段',
+ editField: '编辑字段',
+ selectFieldType: '选择字段类型',
+ fieldTypeExists: '该字段类型已存在',
+ example: '示例',
+ instruction: 'Instruction',
+ custom: '自定义',
+ blueprints: '蓝图',
+ globalRules: '全局规则',
+ globalRulesPlaceholder: '请输入全局编译规则',
+ wikiMode: 'Wiki 模式',
+ entityMode: '实体模式',
+ topicMode: '主题模式',
+ wikiModeRequired: '请选择 Wiki 模式',
+ wikiModeTip:
+ '实体模式:每个实体或概念对应一个 Wiki 页面。主题模式:让 LLM 按主题将相关实体或概念组合到同一个 Wiki 页面。',
+ raptorTreeSettings: 'RAPTOR 树设置',
+ summarizationPrompt: '摘要提示词',
+ maxToken: '最大 token 数',
+ maxTokenRequired: '请输入最大 token 数',
+ clusteringThreshold: '聚类阈值',
+ clusteringThresholdTip:
+ '按相邻数据块相似度分布的百分位决定聚类边界。数值越高,产生的聚类边界越多。',
+ clusteringRatio: '聚类比例',
+ clusteringRatioTip:
+ '设置聚类数量相对于输入数据块数量的最大比例。数值越低,聚类数量越少。',
+ rechunkByTreeLeaves: '按树叶重新分块',
+ rechunkByTreeLeavesTip:
+ '将每个叶簇的源数据块合并为单个替换数据块。原始数据块保留但标记为不可检索。每个分组最多只能有一个树模板启用此功能。',
+ rechunkInput: '重新切分 Parser 输出',
+ rechunkInputTip: '根据知识编译任务,由 LLM 决定 Chunk 边界。',
+ rechunkRules: '重分片规则',
+ rechunkRulesPlaceholder:
+ '描述此知识编译任务下,LLM 应如何合并和划分源 Chunk。',
+ jsonPreview: 'JSON 预览',
+ processFlow: '流程视图',
+ processFlowComingSoon: '流程视图预览即将到来',
+ compilationTitleSuffix: '的数据集',
+ llmWiki: 'Wiki',
+ skills: '技能',
+ navTree: 'PageIndex',
+ graph: 'Graph',
+ structureMindmap: 'Mindmap',
+ structureTimeline: 'Timeline',
+ noWikiPages: '暂无 Wiki 页面',
+ noSkills: '暂无 Skills',
+ noStructureGraph: '暂无 Graph',
+ noStructureMindmap: '暂无 Mindmap',
+ noStructureTimeline: '暂无 Timeline',
+ contents: '导航',
+ topics: 'Topic',
+ selectArtifact: '从目录中选择一个条目以查看详情',
+ searchEntity: '搜索 Entity',
+ sourceDocuments: '来源文档',
+ clearWikiTitle: '清空 Wiki',
+ clearWikiDescription:
+ '确定要清空该数据集下的所有 Wiki 页面吗?此操作无法撤销。',
+ update: '更新',
+ updateTooltip:
+ '发现 {{newlyUploaded}} 个新文档,{{removed}} 个已移除文档,{{changed}} 个已变更文档。点击编译并合并到当前 Wiki。',
+ updateSheetTitle: '更新 Wiki',
+ updateStructureSheetTitle: '更新{{name}}',
+ updateStructureTooltip:
+ '发现 {{newlyUploaded}} 个新文档,{{removed}} 个已移除文档。点击更新{{name}}。',
+ generate: '生成',
+ compiling: '编译中…',
+ compilingCounts: '处理中 {{inflight}} / 待处理 {{backlog}}',
+ autoCompiled: '文档解析时自动编译。',
+ export: '导出',
+ version: '版本',
+ versionHistory: '版本历史',
+ versionDiff: '本版本改了什么',
+ noDiffAvailable: '暂无变更内容',
+ commit: '提交',
+ confirmCommit: '确认提交',
+ versionContent: '版本内容',
+ versionContentPlaceholder: '请输入版本内容',
+ versionContentRequired: '请输入版本内容',
+ viewUpdateLogs: '查看更新日志',
+ log: '日志',
+ createDirectoryFolder: '创建目录',
+ directoryRule: '规则',
+ deleteStructureConfirm: '确定要删除{{name}}吗?',
+ skillFolders: 'Skills',
+ skillEmpty: 'No Skills Found',
+ skillDeleteAllTitle: '删除全部 Skills',
+ skillDeleteAllDescription: '确定要删除全部 Skills 吗?此操作无法撤销。',
+ skillDeleteTitle: '删除 Skill',
+ skillDeleteDescription: '确定要删除该 Skill 吗?',
+ navTitle: 'PageIndex',
+ navEmpty: '暂无导航节点',
+ navLoading: '加载中...',
+ navSelectNode: '选择子节点以查看详情',
+ navNoDescription: '暂无描述',
+ navKeywords: 'Keyword',
+ navEntities: 'Entity',
+ navGraphContent: '完整 Graph 内容',
+ navDocCount: '{{count}} 个文档',
+ navDeleteAllTitle: '删除 PageIndex',
+ navDeleteAllDescription: '确定要删除整个 PageIndex 吗?此操作无法撤销。',
+ navDeleteNodeTitle: '删除 PageIndex',
+ navDeleteNodeDescription: '确定要删除该节点及其子节点吗?',
+ representationEmpty: '暂无Artifact模板。',
+ representationUnsupported: '暂不支持该表征类型。',
},
message: {
registered: '注册成功',
diff --git a/web/src/pages/agent/form/compilation-form/index.tsx b/web/src/pages/agent/form/compilation-form/index.tsx
index fd44bcbdbe..15f9e69dcf 100644
--- a/web/src/pages/agent/form/compilation-form/index.tsx
+++ b/web/src/pages/agent/form/compilation-form/index.tsx
@@ -76,16 +76,16 @@ const CompilationForm = ({
{backendLanguage === 'go' && (
<RAGFlowFormItem
name="mode"
- label={t('setting.wikiMode')}
- tooltip={t('setting.wikiModeTip')}
+ label={t('knowledgeCompilation.wikiMode')}
+ tooltip={t('knowledgeCompilation.wikiModeTip')}
>
{(field) => (
<SelectWithSearch
value={field.value}
onChange={field.onChange}
options={[
- { label: t('setting.entityMode'), value: 'entity' },
- { label: t('setting.topicMode'), value: 'topic' },
+ { label: t('knowledgeCompilation.entityMode'), value: 'entity' },
+ { label: t('knowledgeCompilation.topicMode'), value: 'topic' },
]}
/>
)}
diff --git a/web/src/pages/agents/compilation-template-dropdown.tsx b/web/src/pages/agents/compilation-template-dropdown.tsx
index 80e48c9400..4bf5831beb 100644
--- a/web/src/pages/agents/compilation-template-dropdown.tsx
+++ b/web/src/pages/agents/compilation-template-dropdown.tsx
@@ -36,9 +36,9 @@ export function CompilationTemplateDropdown({
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
<ConfirmDeleteDialog
- title={t('setting.deleteTemplateGroupModalTitle')}
+ title={t('knowledgeCompilation.deleteTemplateGroupTitle')}
content={{
- title: t('setting.deleteTemplateGroupModalContent'),
+ title: t('knowledgeCompilation.deleteTemplateGroupDescription'),
node: <ConfirmDeleteDialogNode name={data.name} />,
}}
onOk={handleDelete}
diff --git a/web/src/pages/chunk/representation/index.tsx b/web/src/pages/chunk/representation/index.tsx
index ccc78d94f1..3830fdf7cc 100644
--- a/web/src/pages/chunk/representation/index.tsx
+++ b/web/src/pages/chunk/representation/index.tsx
@@ -60,7 +60,7 @@ function Representation({ onNodeClick }: RepresentationProps) {
options={entityOptions}
value={graphSelectValue}
onChange={handleSelectEntity}
- placeholder={t('knowledgeDetails.searchEntity')}
+ placeholder={t('knowledgeCompilation.searchEntity')}
allowClear
onNoMatchEnter={handleNoMatchEnter}
disableAutoSelectOnEnter
@@ -69,7 +69,7 @@ function Representation({ onNodeClick }: RepresentationProps) {
<ExpandableSearchInput
value={searchKeyword}
onChange={handleSearchKeywordChange}
- placeholder={t('chunk.search', 'Search')}
+ placeholder={t('common.search')}
/>
)}
{templates.length > 0 && (
@@ -91,10 +91,7 @@ function Representation({ onNodeClick }: RepresentationProps) {
{loading && !data && <SkeletonCard className="mt-6" />}
{!(loading && !data) && templates.length === 0 && (
<div className="mt-6 text-text-secondary">
- {t(
- 'chunk.representationEmpty',
- 'No representation templates available.',
- )}
+ {t('knowledgeCompilation.representationEmpty')}
</div>
)}
{!(loading && !data) && templates.length > 0 && (
diff --git a/web/src/pages/dataset/compilation/constants.ts b/web/src/pages/dataset/compilation/constants.ts
index 378f5a990b..0b721b0da6 100644
--- a/web/src/pages/dataset/compilation/constants.ts
+++ b/web/src/pages/dataset/compilation/constants.ts
@@ -7,8 +7,6 @@ export enum ViewMode {
Graph = 'graph',
MindMap = 'mindmap',
Timeline = 'timeline',
- // SessionEssence = 'session_essence',
- // SessionGraph = 'session_graph',
}
export enum LeftPanelTab {
@@ -20,21 +18,17 @@ export const StructureKinds = [
ViewMode.Graph,
ViewMode.MindMap,
ViewMode.Timeline,
- // ViewMode.SessionEssence,
- // ViewMode.SessionGraph,
] as const;
export type StructureKind = (typeof StructureKinds)[number];
export const ViewModeLabelKeyMap: Record<ViewMode, string> = {
- [ViewMode.LlmWiki]: 'knowledgeDetails.llmWiki',
- [ViewMode.Skills]: 'knowledgeDetails.skills',
- [ViewMode.Tree]: 'knowledgeDetails.navTree',
- [ViewMode.Graph]: 'knowledgeDetails.structureGraph',
- [ViewMode.MindMap]: 'knowledgeDetails.structureMindmap',
- [ViewMode.Timeline]: 'knowledgeDetails.structureTimeline',
- // [ViewMode.SessionEssence]: 'knowledgeDetails.structureSessionEssence',
- // [ViewMode.SessionGraph]: 'knowledgeDetails.structureSessionGraph',
+ [ViewMode.LlmWiki]: 'knowledgeCompilation.llmWiki',
+ [ViewMode.Skills]: 'knowledgeCompilation.skills',
+ [ViewMode.Tree]: 'knowledgeCompilation.navTree',
+ [ViewMode.Graph]: 'knowledgeCompilation.graph',
+ [ViewMode.MindMap]: 'knowledgeCompilation.structureMindmap',
+ [ViewMode.Timeline]: 'knowledgeCompilation.structureTimeline',
};
export type GenerableViewMode = Exclude<ViewMode, ViewMode.Tree>;
@@ -46,6 +40,4 @@ export const ViewModeGenerateTypeMap: Record<GenerableViewMode, GenerateType> =
[ViewMode.Graph]: GenerateType.KnowledgeGraph,
[ViewMode.MindMap]: GenerateType.MindMap,
[ViewMode.Timeline]: GenerateType.Timeline,
- // [ViewMode.SessionEssence]: GenerateType.SessionEssence,
- // [ViewMode.SessionGraph]: GenerateType.SessionGraph,
};
diff --git a/web/src/pages/dataset/compilation/create-directory-dialog/create-directory-form.tsx b/web/src/pages/dataset/compilation/create-directory-dialog/create-directory-form.tsx
index 1d7b0981f3..d35cfa04a3 100644
--- a/web/src/pages/dataset/compilation/create-directory-dialog/create-directory-form.tsx
+++ b/web/src/pages/dataset/compilation/create-directory-dialog/create-directory-form.tsx
@@ -12,12 +12,12 @@ export function CreateDirectoryFormFields() {
<div className="space-y-4">
<RAGFlowFormItem
name="name"
- label={t('knowledgeDetails.directoryName')}
+ label={t('common.name')}
required
>
<Input placeholder={t('common.pleaseInput')} autoComplete="off" />
</RAGFlowFormItem>
- <RAGFlowFormItem name="rule" label={t('knowledgeDetails.directoryRule')}>
+ <RAGFlowFormItem name="rule" label={t('knowledgeCompilation.directoryRule')}>
<Textarea placeholder={t('common.pleaseInput')} />
</RAGFlowFormItem>
</div>
diff --git a/web/src/pages/dataset/compilation/create-directory-dialog/index.tsx b/web/src/pages/dataset/compilation/create-directory-dialog/index.tsx
index 90d91ac397..ca1f55c44b 100644
--- a/web/src/pages/dataset/compilation/create-directory-dialog/index.tsx
+++ b/web/src/pages/dataset/compilation/create-directory-dialog/index.tsx
@@ -38,7 +38,7 @@ export function CreateDirectoryDialog({
<Modal
open={open}
onOpenChange={handleOpenChange}
- title={t('knowledgeDetails.createDirectoryFolder')}
+ title={t('knowledgeCompilation.createDirectoryFolder')}
onOk={handleOk}
onCancel={onCancel}
confirmLoading={loading}
diff --git a/web/src/pages/dataset/compilation/dataset-structure-view.tsx b/web/src/pages/dataset/compilation/dataset-structure-view.tsx
index c2c47a752a..7c016accc1 100644
--- a/web/src/pages/dataset/compilation/dataset-structure-view.tsx
+++ b/web/src/pages/dataset/compilation/dataset-structure-view.tsx
@@ -148,7 +148,7 @@ export function DatasetStructureView({ kind }: DatasetStructureViewProps) {
<div className="flex justify-between gap-4 px-4 pt-4">
<div className="flex items-center gap-2">
<ConfirmDeleteDialog
- title={t('knowledgeDetails.deleteStructureConfirm', {
+ title={t('knowledgeCompilation.deleteStructureConfirm', {
name: t(ViewModeLabelKeyMap[kind]),
})}
onOk={handleDeleteStructure}
@@ -164,7 +164,7 @@ export function DatasetStructureView({ kind }: DatasetStructureViewProps) {
newlyUploaded={newlyUploaded}
removed={removed}
loading={alterationLoading || runLoading}
- tooltip={t('knowledgeDetails.updateStructureTooltip', {
+ tooltip={t('knowledgeCompilation.updateStructureTooltip', {
newlyUploaded,
removed,
name: t(ViewModeLabelKeyMap[kind]),
@@ -177,7 +177,7 @@ export function DatasetStructureView({ kind }: DatasetStructureViewProps) {
options={entityOptions}
value={selectedEntityName || graphKeywords}
onChange={handleSelectEntity}
- placeholder={t('knowledgeDetails.searchEntity')}
+ placeholder={t('knowledgeCompilation.searchEntity')}
allowClear
triggerClassName="w-96 max-w-full"
onNoMatchEnter={handleNoMatchEnter}
@@ -193,7 +193,7 @@ export function DatasetStructureView({ kind }: DatasetStructureViewProps) {
open={updateSheetOpen}
onOpenChange={setUpdateSheetOpen}
data={structureRunData}
- title={t('knowledgeDetails.updateStructureSheetTitle', {
+ title={t('knowledgeCompilation.updateStructureSheetTitle', {
name: t(ViewModeLabelKeyMap[kind]),
})}
/>
diff --git a/web/src/pages/dataset/compilation/empty-state.tsx b/web/src/pages/dataset/compilation/empty-state.tsx
index 056cb08331..5ba2ef9b5e 100644
--- a/web/src/pages/dataset/compilation/empty-state.tsx
+++ b/web/src/pages/dataset/compilation/empty-state.tsx
@@ -29,13 +29,11 @@ interface ICompilationEmptyStateProps {
}
const TitleKeyMap: Record<EmptyStateType, string> = {
- [ViewMode.LlmWiki]: 'knowledgeDetails.noWikiPages',
- [ViewMode.Skills]: 'knowledgeDetails.noSkills',
- [ViewMode.Graph]: 'knowledgeDetails.noStructureGraph',
- [ViewMode.MindMap]: 'knowledgeDetails.noStructureMindmap',
- [ViewMode.Timeline]: 'knowledgeDetails.noStructureTimeline',
- // [ViewMode.SessionEssence]: 'knowledgeDetails.noStructureSessionEssence',
- // [ViewMode.SessionGraph]: 'knowledgeDetails.noStructureSessionGraph',
+ [ViewMode.LlmWiki]: 'knowledgeCompilation.noWikiPages',
+ [ViewMode.Skills]: 'knowledgeCompilation.noSkills',
+ [ViewMode.Graph]: 'knowledgeCompilation.noStructureGraph',
+ [ViewMode.MindMap]: 'knowledgeCompilation.noStructureMindmap',
+ [ViewMode.Timeline]: 'knowledgeCompilation.noStructureTimeline',
};
export function CompilationEmptyState({
@@ -73,12 +71,12 @@ export function CompilationEmptyState({
disabled={disabled}
>
<WandSparkles className="mr-2 size-4" />
- {t('knowledgeDetails.generate')}
+ {t('knowledgeCompilation.generate')}
</Button>
)}
{isGo && (
<p className="text-sm text-text-secondary">
- {t('knowledgeDetails.autoCompiled')}
+ {t('knowledgeCompilation.autoCompiled')}
</p>
)}
</div>
@@ -99,12 +97,12 @@ export function CompilationEmptyState({
) : (
<div className="flex flex-col items-center gap-2 text-text-secondary">
<span className="text-4xl font-medium text-accent-primary">
- {t('knowledgeDetails.compiling', {
+ {t('knowledgeCompilation.compiling', {
defaultValue: 'Compiling…',
})}
</span>
<span>
- {t('knowledgeDetails.compilingCounts', {
+ {t('knowledgeCompilation.compilingCounts', {
inflight: data?.inflight ?? 0,
backlog: data?.backlog ?? 0,
defaultValue:
diff --git a/web/src/pages/dataset/compilation/hooks/use-commit-artifact.ts b/web/src/pages/dataset/compilation/hooks/use-commit-artifact.ts
index 4fc719a36b..602a6228e0 100644
--- a/web/src/pages/dataset/compilation/hooks/use-commit-artifact.ts
+++ b/web/src/pages/dataset/compilation/hooks/use-commit-artifact.ts
@@ -28,7 +28,7 @@ export function useCommitArtifact({
() =>
z.object({
comments: z.string().min(1, {
- message: t('knowledgeDetails.versionContentRequired'),
+ message: t('knowledgeCompilation.versionContentRequired'),
}),
}),
[t],
diff --git a/web/src/pages/dataset/compilation/index.tsx b/web/src/pages/dataset/compilation/index.tsx
index 2fb52bd515..7efa31e522 100644
--- a/web/src/pages/dataset/compilation/index.tsx
+++ b/web/src/pages/dataset/compilation/index.tsx
@@ -52,7 +52,7 @@ export default function Compilation() {
/>
<h2 className="text-xl font-medium text-text-primary">
{knowledgeBase?.name}
- {t('knowledgeDetails.compilationTitleSuffix')}
+ {t('knowledgeCompilation.compilationTitleSuffix')}
</h2>
</div>
diff --git a/web/src/pages/dataset/compilation/nav-tree-left-panel.tsx b/web/src/pages/dataset/compilation/nav-tree-left-panel.tsx
index 8e206f663b..d149735818 100644
--- a/web/src/pages/dataset/compilation/nav-tree-left-panel.tsx
+++ b/web/src/pages/dataset/compilation/nav-tree-left-panel.tsx
@@ -43,8 +43,8 @@ function NavNodeDeleteAction({
return (
<ConfirmDeleteDialog
- title={t('datasetNav.deleteNodeTitle')}
- content={{ title: t('datasetNav.deleteNodeDescription') }}
+ title={t('knowledgeCompilation.navDeleteNodeTitle')}
+ content={{ title: t('knowledgeCompilation.navDeleteNodeDescription') }}
onOk={handleConfirmDelete}
>
<Button
@@ -117,7 +117,7 @@ export function NavTreeLeftPanel({
onNodeClick,
onNodeExpand,
onEntityClick,
- loadingPlaceholder: t('datasetNav.loading'),
+ loadingPlaceholder: t('knowledgeCompilation.navLoading'),
}),
[
navList?.items,
@@ -135,12 +135,12 @@ export function NavTreeLeftPanel({
<aside className="size-full flex flex-col">
<section className="flex items-center justify-between px-3 pt-3">
<span className="text-sm font-medium text-text-primary">
- {t('datasetNav.title')} ({navList?.total ?? 0})
+ {t('knowledgeCompilation.navTitle')} ({navList?.total ?? 0})
</span>
{treeData.length > 0 && (
<ConfirmDeleteDialog
- title={t('datasetNav.deleteAllTitle')}
- content={{ title: t('datasetNav.deleteAllDescription') }}
+ title={t('knowledgeCompilation.navDeleteAllTitle')}
+ content={{ title: t('knowledgeCompilation.navDeleteAllDescription') }}
onOk={onDeleteAll}
>
<Button
@@ -166,7 +166,7 @@ export function NavTreeLeftPanel({
</div>
) : treeData.length === 0 ? (
<div className="py-8 text-center text-sm text-text-secondary">
- {t('datasetNav.empty')}
+ {t('knowledgeCompilation.navEmpty')}
</div>
) : (
<TreeView
diff --git a/web/src/pages/dataset/compilation/nav-tree-view.tsx b/web/src/pages/dataset/compilation/nav-tree-view.tsx
index d4166aff23..d278a63068 100644
--- a/web/src/pages/dataset/compilation/nav-tree-view.tsx
+++ b/web/src/pages/dataset/compilation/nav-tree-view.tsx
@@ -58,7 +58,7 @@ export function NavTreeView() {
</h3>
{selectedNode.doc_count !== undefined && (
<span className="text-xs text-text-secondary">
- {t('datasetNav.docCount', {
+ {t('knowledgeCompilation.navDocCount', {
count: selectedNode.doc_count,
})}
</span>
@@ -67,16 +67,16 @@ export function NavTreeView() {
<div className="flex-1 min-h-0 overflow-y-auto px-4 py-3 text-sm text-text-primary space-y-4">
<div>
<h4 className="text-xs font-medium text-text-secondary mb-1">
- {t('datasetNav.description')}
+ {t('knowledgeCompilation.description')}
</h4>
<p className="whitespace-pre-wrap">
- {selectedNode.description || t('datasetNav.noDescription')}
+ {selectedNode.description || t('knowledgeCompilation.navNoDescription')}
</p>
</div>
{selectedNode.keywords && selectedNode.keywords.length > 0 && (
<div>
<h4 className="text-xs font-medium text-text-secondary mb-1">
- {t('datasetNav.keywords')}
+ {t('knowledgeCompilation.navKeywords')}
</h4>
<div className="flex flex-wrap gap-1">
{selectedNode.keywords.map((kw, i) => (
@@ -93,7 +93,7 @@ export function NavTreeView() {
{selectedNode.entities && selectedNode.entities.length > 0 && (
<div>
<h4 className="text-xs font-medium text-text-secondary mb-1">
- {t('datasetNav.entities')}
+ {t('knowledgeCompilation.navEntities')}
</h4>
<div className="flex flex-wrap gap-1">
{selectedNode.entities.map((entity, i) => (
@@ -110,7 +110,7 @@ export function NavTreeView() {
{selectedNode.graph_content && (
<div>
<h4 className="text-xs font-medium text-text-secondary mb-1">
- {t('datasetNav.graphContent')}
+ {t('knowledgeCompilation.navGraphContent')}
</h4>
<p className="whitespace-pre-wrap text-xs text-text-secondary">
{selectedNode.graph_content}
@@ -121,7 +121,7 @@ export function NavTreeView() {
</section>
) : (
<div className="flex-1 flex items-center justify-center text-sm text-text-secondary">
- {t('datasetNav.selectNode')}
+ {t('knowledgeCompilation.navSelectNode')}
</div>
)}
</ResizablePanel>
diff --git a/web/src/pages/dataset/compilation/progress-log-panel.tsx b/web/src/pages/dataset/compilation/progress-log-panel.tsx
index 9def77b2c5..feb5ff2225 100644
--- a/web/src/pages/dataset/compilation/progress-log-panel.tsx
+++ b/web/src/pages/dataset/compilation/progress-log-panel.tsx
@@ -32,7 +32,7 @@ export function ProgressLogPanel({
<div className={cn('flex min-h-0 flex-col gap-2', className)}>
<div className="flex items-center gap-2 text-text-primary">
<Logs className="size-5" />
- <span>{t('knowledgeDetails.log')}</span>
+ <span>{t('knowledgeCompilation.log')}</span>
</div>
<div
ref={listRef}
diff --git a/web/src/pages/dataset/compilation/skills-left-panel.tsx b/web/src/pages/dataset/compilation/skills-left-panel.tsx
index 0d0b65885f..f975394e10 100644
--- a/web/src/pages/dataset/compilation/skills-left-panel.tsx
+++ b/web/src/pages/dataset/compilation/skills-left-panel.tsx
@@ -57,8 +57,8 @@ function SkillDeleteAction({
return (
<ConfirmDeleteDialog
- title={t('datasetSkill.deleteSkillTitle')}
- content={{ title: t('datasetSkill.deleteSkillDescription') }}
+ title={t('knowledgeCompilation.skillDeleteTitle')}
+ content={{ title: t('knowledgeCompilation.skillDeleteDescription') }}
onOk={handleConfirmDelete}
>
<Button
@@ -151,11 +151,11 @@ export function SkillsLeftPanel({
<aside className="size-full flex flex-col">
<section className="flex items-center justify-between px-3 pt-3">
<span className="text-sm font-medium text-text-primary">
- {t('datasetSkill.folders')} ({totalCount})
+ {t('knowledgeCompilation.skillFolders')} ({totalCount})
</span>
<ConfirmDeleteDialog
- title={t('datasetSkill.deleteAllTitle')}
- content={{ title: t('datasetSkill.deleteAllDescription') }}
+ title={t('knowledgeCompilation.skillDeleteAllTitle')}
+ content={{ title: t('knowledgeCompilation.skillDeleteAllDescription') }}
onOk={handleDeleteAll}
>
<Button
@@ -186,7 +186,7 @@ export function SkillsLeftPanel({
<div className="py-8 text-center text-sm text-text-secondary">
{debouncedSearchString
? t('common.noData')
- : t('datasetSkill.empty')}
+ : t('knowledgeCompilation.skillEmpty')}
</div>
) : (
<TreeView
diff --git a/web/src/pages/dataset/compilation/update-button.tsx b/web/src/pages/dataset/compilation/update-button.tsx
index a02b897367..4ab9ed6f9c 100644
--- a/web/src/pages/dataset/compilation/update-button.tsx
+++ b/web/src/pages/dataset/compilation/update-button.tsx
@@ -66,7 +66,7 @@ export function CompilationUpdateButton({
<UpdateRunProgress data={traceData} generateType={generateType} />
) : (
<>
- {t('knowledgeDetails.update', { defaultValue: 'Update' })}
+ {t('knowledgeCompilation.update', { defaultValue: 'Update' })}
{newlyUploaded > 0 && (
<Badge variant="success" className="ml-1">
{newlyUploaded}
@@ -89,7 +89,7 @@ export function CompilationUpdateButton({
</TooltipTrigger>
<TooltipContent>
{isGenerating
- ? t('knowledgeDetails.viewUpdateLogs', {
+ ? t('knowledgeCompilation.viewUpdateLogs', {
defaultValue: 'View update logs',
})
: tooltip}
diff --git a/web/src/pages/dataset/compilation/update-run-progress.tsx b/web/src/pages/dataset/compilation/update-run-progress.tsx
index 4003decbb1..f778d1b57d 100644
--- a/web/src/pages/dataset/compilation/update-run-progress.tsx
+++ b/web/src/pages/dataset/compilation/update-run-progress.tsx
@@ -46,12 +46,12 @@ export function UpdateRunProgress({
<span className="size-2 rounded-full bg-accent-primary" />
{data?.compilationError
? data.compilationError
- : t('knowledgeDetails.compiling', {
+ : t('knowledgeCompilation.compiling', {
defaultValue: 'Compiling…',
})}
{!data?.compilationError && (
<span>
- {t('knowledgeDetails.compilingCounts', {
+ {t('knowledgeCompilation.compilingCounts', {
inflight: data?.inflight ?? 0,
backlog: data?.backlog ?? 0,
defaultValue: '{{inflight}} processing / {{backlog}} queued',
diff --git a/web/src/pages/dataset/compilation/version-history-sheet.tsx b/web/src/pages/dataset/compilation/version-history-sheet.tsx
index 1e8e15b32c..5b26f27efd 100644
--- a/web/src/pages/dataset/compilation/version-history-sheet.tsx
+++ b/web/src/pages/dataset/compilation/version-history-sheet.tsx
@@ -56,11 +56,11 @@ export function VersionHistorySheet({
</Button>
</SheetTrigger>
</TooltipTrigger>
- <TooltipContent>{t('knowledgeDetails.version')}</TooltipContent>
+ <TooltipContent>{t('knowledgeCompilation.version')}</TooltipContent>
</Tooltip>
<SheetContent className="flex flex-col">
<SheetHeader>
- <SheetTitle>{t('knowledgeDetails.versionHistory')}</SheetTitle>
+ <SheetTitle>{t('knowledgeCompilation.versionHistory')}</SheetTitle>
</SheetHeader>
<div className="flex-1 overflow-y-auto">
{loading && commits.length === 0 && (
diff --git a/web/src/pages/dataset/compilation/wiki-commit-modal.tsx b/web/src/pages/dataset/compilation/wiki-commit-modal.tsx
index c09e35cf17..f4e105f06f 100644
--- a/web/src/pages/dataset/compilation/wiki-commit-modal.tsx
+++ b/web/src/pages/dataset/compilation/wiki-commit-modal.tsx
@@ -27,7 +27,7 @@ export function WikiCommitModal({
<Modal
open={open}
onOpenChange={onOpenChange}
- title={t('knowledgeDetails.confirmCommit')}
+ title={t('knowledgeCompilation.confirmCommit')}
onOk={() => form.handleSubmit(onConfirm)()}
confirmLoading={loading}
okText={t('common.confirm')}
@@ -37,13 +37,13 @@ export function WikiCommitModal({
<form className="space-y-4">
<RAGFlowFormItem
name="comments"
- label={t('knowledgeDetails.versionContent')}
+ label={t('knowledgeCompilation.versionContent')}
required
rules={{ required: true }}
>
{(field) => (
<Textarea
- placeholder={t('knowledgeDetails.versionContentPlaceholder')}
+ placeholder={t('knowledgeCompilation.versionContentPlaceholder')}
{...field}
autoSize={{ minRows: 4, maxRows: 8 }}
/>
diff --git a/web/src/pages/dataset/compilation/wiki-detail-content.tsx b/web/src/pages/dataset/compilation/wiki-detail-content.tsx
index 00e12f760f..9a25c5ad75 100644
--- a/web/src/pages/dataset/compilation/wiki-detail-content.tsx
+++ b/web/src/pages/dataset/compilation/wiki-detail-content.tsx
@@ -105,7 +105,7 @@ export function WikiDetailContent({
<div className="flex-1 overflow-y-auto p-8">
<Empty
className="h-full"
- text={t('knowledgeDetails.selectArtifact')}
+ text={t('knowledgeCompilation.selectArtifact')}
/>
</div>
)}
diff --git a/web/src/pages/dataset/compilation/wiki-detail-editor-panel.tsx b/web/src/pages/dataset/compilation/wiki-detail-editor-panel.tsx
index 5337c5f60e..539c243482 100644
--- a/web/src/pages/dataset/compilation/wiki-detail-editor-panel.tsx
+++ b/web/src/pages/dataset/compilation/wiki-detail-editor-panel.tsx
@@ -57,7 +57,7 @@ export function WikiDetailEditorPanel({
{referenceDocuments.length > 0 && (
<div className="mt-8">
<h3 className="text-sm font-medium text-text-secondary mb-3">
- {t('knowledgeDetails.sourceDocuments')}
+ {t('knowledgeCompilation.sourceDocuments')}
</h3>
<ReferenceDocumentList list={referenceDocuments} />
</div>
diff --git a/web/src/pages/dataset/compilation/wiki-detail-toolbar.tsx b/web/src/pages/dataset/compilation/wiki-detail-toolbar.tsx
index 950745e676..1209d1ef3c 100644
--- a/web/src/pages/dataset/compilation/wiki-detail-toolbar.tsx
+++ b/web/src/pages/dataset/compilation/wiki-detail-toolbar.tsx
@@ -44,7 +44,7 @@ export function WikiDetailToolbar({
{t('common.cancel')}
</Button>
<Button type="button" size="sm" onClick={onCommitClick}>
- {t('knowledgeDetails.commit')}
+ {t('knowledgeCompilation.commit')}
</Button>
</div>
);
@@ -63,7 +63,7 @@ export function WikiDetailToolbar({
<Download className="size-4" />
</Button>
</TooltipTrigger>
- <TooltipContent>{t('knowledgeDetails.export')}</TooltipContent>
+ <TooltipContent>{t('knowledgeCompilation.export')}</TooltipContent>
</Tooltip>
<VersionHistorySheet
selectedArtifact={selectedArtifact}
diff --git a/web/src/pages/dataset/compilation/wiki-left-panel/index.tsx b/web/src/pages/dataset/compilation/wiki-left-panel/index.tsx
index 089ff73885..bb965ae02f 100644
--- a/web/src/pages/dataset/compilation/wiki-left-panel/index.tsx
+++ b/web/src/pages/dataset/compilation/wiki-left-panel/index.tsx
@@ -75,7 +75,7 @@ export function WikiLeftPanel({
removed={removed}
changed={changed}
loading={updateLoading}
- tooltip={t('knowledgeDetails.updateTooltip', {
+ tooltip={t('knowledgeCompilation.updateTooltip', {
newlyUploaded,
removed,
changed,
@@ -87,8 +87,8 @@ export function WikiLeftPanel({
<ConfirmDeleteDialog
open={open}
onOpenChange={setOpen}
- title={t('knowledgeDetails.clearWikiTitle')}
- content={{ title: t('knowledgeDetails.clearWikiDescription') }}
+ title={t('knowledgeCompilation.clearWikiTitle')}
+ content={{ title: t('knowledgeCompilation.clearWikiDescription') }}
onOk={handleConfirm}
>
<Button
@@ -105,10 +105,10 @@ export function WikiLeftPanel({
<Tabs value={tab} onValueChange={onTabChange} className="pb-5">
<TabsList className="grid grid-cols-2 w-80">
<TabsTrigger value={LeftPanelTab.Contents}>
- {t('knowledgeDetails.contents')}
+ {t('knowledgeCompilation.contents')}
</TabsTrigger>
<TabsTrigger value={LeftPanelTab.Graph}>
- {t('knowledgeDetails.graph')}
+ {t('knowledgeCompilation.graph')}
</TabsTrigger>
</TabsList>
</Tabs>
@@ -133,7 +133,7 @@ export function WikiLeftPanel({
open={updateSheetOpen}
onOpenChange={onUpdateSheetOpenChange}
data={traceData}
- title={t('knowledgeDetails.updateSheetTitle', {
+ title={t('knowledgeCompilation.updateSheetTitle', {
defaultValue: 'Update Wiki',
})}
/>
diff --git a/web/src/pages/dataset/compilation/wiki-left-panel/wiki-graph-panel.tsx b/web/src/pages/dataset/compilation/wiki-left-panel/wiki-graph-panel.tsx
index 6b42e38cd3..839c660257 100644
--- a/web/src/pages/dataset/compilation/wiki-left-panel/wiki-graph-panel.tsx
+++ b/web/src/pages/dataset/compilation/wiki-left-panel/wiki-graph-panel.tsx
@@ -82,7 +82,7 @@ export function WikiGraphPanel({
options={entityOptions}
value={selectedEntitySlug || graphKeywords}
onChange={handleSelectEntity}
- placeholder={t('knowledgeDetails.searchEntity')}
+ placeholder={t('knowledgeCompilation.searchEntity')}
allowClear
triggerClassName="w-96 max-w-full"
onNoMatchEnter={handleNoMatchEnter}
diff --git a/web/src/pages/dataset/compilation/wiki-left-panel/wiki-nav-bar.tsx b/web/src/pages/dataset/compilation/wiki-left-panel/wiki-nav-bar.tsx
index 52e5a64f4c..dbb0e7d65b 100644
--- a/web/src/pages/dataset/compilation/wiki-left-panel/wiki-nav-bar.tsx
+++ b/web/src/pages/dataset/compilation/wiki-left-panel/wiki-nav-bar.tsx
@@ -71,7 +71,7 @@ export function WikiNavBar({
: 'text-text-primary cursor-default',
)}
>
- {t('knowledgeDetails.topics')}
+ {t('knowledgeCompilation.topics')}
</BreadcrumbLink>
</BreadcrumbItem>
{selectedTopic && (
diff --git a/web/src/pages/dataset/compilation/wiki-version-diff-panel.tsx b/web/src/pages/dataset/compilation/wiki-version-diff-panel.tsx
index 2391434471..dfc353694f 100644
--- a/web/src/pages/dataset/compilation/wiki-version-diff-panel.tsx
+++ b/web/src/pages/dataset/compilation/wiki-version-diff-panel.tsx
@@ -37,13 +37,13 @@ export function WikiVersionDiffPanel({
<section className="flex flex-col h-full border-l border-border-button p-5">
<header className="shrink-0 pb-5">
<h3 className="font-semibold text-text-primary">
- {title || t('knowledgeDetails.versionDiff')}
+ {title || t('knowledgeCompilation.versionDiff')}
</h3>
</header>
<div className="flex-1 overflow-y-auto">
{changes.length === 0 ? (
<div className=" text-sm text-text-secondary">
- {t('knowledgeDetails.noDiffAvailable')}
+ {t('knowledgeCompilation.noDiffAvailable')}
</div>
) : (
<div className="space-y-5">
diff --git a/web/src/pages/next-search/mindmap-sheet.tsx b/web/src/pages/next-search/mindmap-sheet.tsx
index b681ab84b8..0f253bad19 100644
--- a/web/src/pages/next-search/mindmap-sheet.tsx
+++ b/web/src/pages/next-search/mindmap-sheet.tsx
@@ -68,7 +68,7 @@ const MindMapSheet = ({ data, hideModal, loading, visible }: IProps) => {
{!loading && isEmptyMindMap && (
<div className="bg-bg-card rounded-lg w-full h-full flex items-center justify-center">
<p className="text-text-secondary">
- {t('knowledgeDetails.noStructureMindmap')}
+ {t('knowledgeCompilation.noStructureMindmap')}
</p>
</div>
)}
diff --git a/web/src/pages/user-setting/compilation-templates/edit-next/components/add-field-modal.tsx b/web/src/pages/user-setting/compilation-templates/edit-next/components/add-field-modal.tsx
index ba73757dd9..fbacc949d9 100644
--- a/web/src/pages/user-setting/compilation-templates/edit-next/components/add-field-modal.tsx
+++ b/web/src/pages/user-setting/compilation-templates/edit-next/components/add-field-modal.tsx
@@ -106,7 +106,7 @@ export function AddFieldModal({
const handleNoMatchEnter = useCallback(
(searchValue: string) => {
if (isDuplicateType(searchValue)) {
- message.warning(t('setting.fieldTypeExists'));
+ message.warning(t('knowledgeCompilation.fieldTypeExists'));
return false;
}
return true;
@@ -118,7 +118,7 @@ export function AddFieldModal({
<Modal
open={open}
onOpenChange={onOpenChange}
- title={`${initialField ? t('setting.editFieldModalTitle') : t('setting.addFieldModalTitle')} - ${startCase(sectionName)}`}
+ title={`${initialField ? t('knowledgeCompilation.editField') : t('knowledgeCompilation.addField')} - ${startCase(sectionName)}`}
size="default"
footer={
<div className="flex justify-end gap-2">
@@ -141,7 +141,7 @@ export function AddFieldModal({
rules={{
required: getRequiredMessage('type'),
validate: (value: string) =>
- !isDuplicateType(value) || t('setting.fieldTypeExists'),
+ !isDuplicateType(value) || t('knowledgeCompilation.fieldTypeExists'),
}}
>
{(field) => (
@@ -154,7 +154,7 @@ export function AddFieldModal({
handleTypeChange(value);
}}
onNoMatchEnter={handleNoMatchEnter}
- placeholder={t('setting.selectFieldType')}
+ placeholder={t('knowledgeCompilation.selectFieldType')}
allowCustomValue
/>
)}
@@ -174,7 +174,7 @@ export function AddFieldModal({
}
>
<Textarea
- placeholder={t('setting.descriptionPlaceholder')}
+ placeholder={t('common.descriptionPlaceholder')}
rows={key === 'description' ? 4 : 10}
resize="vertical"
/>
diff --git a/web/src/pages/user-setting/compilation-templates/edit-next/components/blueprint-section.tsx b/web/src/pages/user-setting/compilation-templates/edit-next/components/blueprint-section.tsx
index 10e3369645..fde84bf1c3 100644
--- a/web/src/pages/user-setting/compilation-templates/edit-next/components/blueprint-section.tsx
+++ b/web/src/pages/user-setting/compilation-templates/edit-next/components/blueprint-section.tsx
@@ -52,7 +52,7 @@ export function BlueprintSection({
<Collapse
defaultOpen
title={
- <h3 className="text-base font-medium">{t('setting.blueprints')}</h3>
+ <h3 className="text-base font-medium">{t('knowledgeCompilation.blueprints')}</h3>
}
>
<div className="space-y-4">
@@ -66,14 +66,14 @@ export function BlueprintSection({
<div className="space-y-4">
<RAGFlowFormItem
name={instructionPath}
- label={t('setting.instruction')}
+ label={t('knowledgeCompilation.instruction')}
>
<Textarea rows={8} resize={'vertical'} />
</RAGFlowFormItem>
<RAGFlowFormItem
name={examplePath}
- label={t('setting.example')}
+ label={t('knowledgeCompilation.example')}
className="flex h-[50vh] min-h-0 flex-col"
valueClassName="flex-1 min-h-0"
>
diff --git a/web/src/pages/user-setting/compilation-templates/edit-next/components/json-preview-sheet.tsx b/web/src/pages/user-setting/compilation-templates/edit-next/components/json-preview-sheet.tsx
index 7903334984..c17b9a37ca 100644
--- a/web/src/pages/user-setting/compilation-templates/edit-next/components/json-preview-sheet.tsx
+++ b/web/src/pages/user-setting/compilation-templates/edit-next/components/json-preview-sheet.tsx
@@ -55,14 +55,14 @@ export function JsonPreviewSheet({
</Button>
</SheetTrigger>
</TooltipTrigger>
- <TooltipContent>{t('setting.jsonPreview')}</TooltipContent>
+ <TooltipContent>{t('knowledgeCompilation.jsonPreview')}</TooltipContent>
</Tooltip>
<SheetContent
className="w-1/2 max-w-[700px] flex flex-col"
onInteractOutside={(e) => e.preventDefault()}
>
<SheetHeader>
- <SheetTitle>{t('setting.jsonPreview')}</SheetTitle>
+ <SheetTitle>{t('knowledgeCompilation.jsonPreview')}</SheetTitle>
</SheetHeader>
<div className="flex-1 min-h-0 mt-4">
<JsonEditor
diff --git a/web/src/pages/user-setting/compilation-templates/edit-next/components/section-field-grid.tsx b/web/src/pages/user-setting/compilation-templates/edit-next/components/section-field-grid.tsx
index a329a896a9..663c38ec7a 100644
--- a/web/src/pages/user-setting/compilation-templates/edit-next/components/section-field-grid.tsx
+++ b/web/src/pages/user-setting/compilation-templates/edit-next/components/section-field-grid.tsx
@@ -84,7 +84,7 @@ export function SectionFieldGrid({
>
<CardContent className="flex flex-col items-center justify-center gap-2 p-4">
<Plus className="size-6" />
- <span className="text-sm font-medium">{t('setting.addField')}</span>
+ <span className="text-sm font-medium">{t('knowledgeCompilation.addField')}</span>
</CardContent>
</Card>
</section>
diff --git a/web/src/pages/user-setting/compilation-templates/edit-next/components/template-configuration.tsx b/web/src/pages/user-setting/compilation-templates/edit-next/components/template-configuration.tsx
index be5e5b8f88..56f795fb37 100644
--- a/web/src/pages/user-setting/compilation-templates/edit-next/components/template-configuration.tsx
+++ b/web/src/pages/user-setting/compilation-templates/edit-next/components/template-configuration.tsx
@@ -158,7 +158,7 @@ export function TemplateConfiguration({
<div className="max-w-4xl mx-auto space-y-6">
<RAGFlowFormItem
name={`templates.${selectedTemplateIndex}.name`}
- label={t('setting.templateName')}
+ label={t('common.name')}
required
>
<Input placeholder={t('common.namePlaceholder')} />
@@ -166,7 +166,7 @@ export function TemplateConfiguration({
<RAGFlowFormItem
name={`templates.${selectedTemplateIndex}.description`}
- label={t('setting.templateDescription')}
+ label={t('knowledgeCompilation.description')}
>
<Textarea
placeholder={t('common.descriptionPlaceholder')}
@@ -193,10 +193,10 @@ export function TemplateConfiguration({
<RAGFlowFormItem
name={`templates.${selectedTemplateIndex}.config.global_rules`}
- label={t('setting.globalRules')}
+ label={t('knowledgeCompilation.globalRules')}
>
<Textarea
- placeholder={t('setting.globalRulesPlaceholder')}
+ placeholder={t('knowledgeCompilation.globalRulesPlaceholder')}
rows={8}
resize="vertical"
/>
@@ -205,8 +205,8 @@ export function TemplateConfiguration({
{kind === CompilationTemplateKind.Artifacts && (
<RAGFlowFormItem
name={`templates.${selectedTemplateIndex}.config.mode`}
- label={t('setting.wikiMode')}
- tooltip={t('setting.wikiModeTip')}
+ label={t('knowledgeCompilation.wikiMode')}
+ tooltip={t('knowledgeCompilation.wikiModeTip')}
>
{(field) => (
<SelectWithSearch
@@ -214,8 +214,8 @@ export function TemplateConfiguration({
onChange={field.onChange}
disabled={field.disabled}
options={[
- { label: t('setting.entityMode'), value: 'entity' },
- { label: t('setting.topicMode'), value: 'topic' },
+ { label: t('knowledgeCompilation.entityMode'), value: 'entity' },
+ { label: t('knowledgeCompilation.topicMode'), value: 'topic' },
]}
/>
)}
@@ -230,17 +230,17 @@ export function TemplateConfiguration({
<>
<SwitchFormField
name={`templates.${selectedTemplateIndex}.config.rechunk`}
- label={t('setting.rechunkInput')}
- tooltip={t('setting.rechunkInputTip')}
+ label={t('knowledgeCompilation.rechunkInput')}
+ tooltip={t('knowledgeCompilation.rechunkInputTip')}
vertical={false}
/>
{rechunk && (
<RAGFlowFormItem
name={`templates.${selectedTemplateIndex}.config.rechunk_rules`}
- label={t('setting.rechunkRules')}
+ label={t('knowledgeCompilation.rechunkRules')}
>
<Textarea
- placeholder={t('setting.rechunkRulesPlaceholder')}
+ placeholder={t('knowledgeCompilation.rechunkRulesPlaceholder')}
rows={6}
resize="vertical"
/>
diff --git a/web/src/pages/user-setting/compilation-templates/edit-next/components/template-preview-header.tsx b/web/src/pages/user-setting/compilation-templates/edit-next/components/template-preview-header.tsx
index 46c05eac0a..b138dd1415 100644
--- a/web/src/pages/user-setting/compilation-templates/edit-next/components/template-preview-header.tsx
+++ b/web/src/pages/user-setting/compilation-templates/edit-next/components/template-preview-header.tsx
@@ -38,7 +38,7 @@ export function TemplatePreviewHeader({
return (
<section className="shrink-0 flex justify-between items-center px-5 py-4 border-b border-border-button">
<span className="text-lg font-medium text-text-primary">
- {templateName || t('setting.templateName')}
+ {templateName || t('common.name')}
</span>
<div className="flex items-center gap-2">
<JsonPreviewSheet
diff --git a/web/src/pages/user-setting/compilation-templates/edit-next/components/tree-template-fields.tsx b/web/src/pages/user-setting/compilation-templates/edit-next/components/tree-template-fields.tsx
index 29a813ec5f..6aa0451bd0 100644
--- a/web/src/pages/user-setting/compilation-templates/edit-next/components/tree-template-fields.tsx
+++ b/web/src/pages/user-setting/compilation-templates/edit-next/components/tree-template-fields.tsx
@@ -29,14 +29,14 @@ export function TreeTemplateFields({ index }: TreeTemplateFieldsProps) {
const { t } = useTranslation();
return (
- <Collapse defaultOpen title={t('setting.raptorTreeSettings')}>
+ <Collapse defaultOpen title={t('knowledgeCompilation.raptorTreeSettings')}>
<div className="space-y-4">
<RAGFlowFormItem
name={`templates.${index}.config.raptor.prompt`}
- label={t('setting.summarizationPrompt')}
+ label={t('knowledgeCompilation.summarizationPrompt')}
>
<Textarea
- placeholder={t('setting.descriptionPlaceholder')}
+ placeholder={t('common.descriptionPlaceholder')}
rows={8}
resize="vertical"
/>
@@ -44,23 +44,23 @@ export function TreeTemplateFields({ index }: TreeTemplateFieldsProps) {
<SliderInputFormField
name={`templates.${index}.config.raptor.max_token`}
- label={t('setting.maxToken')}
+ label={t('knowledgeCompilation.maxToken')}
max={2048}
min={512}
step={1}
/>
<SliderInputFormField
name={`templates.${index}.config.raptor.clustering_threshold`}
- label={t('setting.clusteringThreshold')}
- tooltip={t('setting.clusteringThresholdTip')}
+ label={t('knowledgeCompilation.clusteringThreshold')}
+ tooltip={t('knowledgeCompilation.clusteringThresholdTip')}
step={0.01}
max={1}
min={0}
/>
<SliderInputFormField
name={`templates.${index}.config.raptor.clustering_ratio`}
- label={t('setting.clusteringRatio')}
- tooltip={t('setting.clusteringRatioTip')}
+ label={t('knowledgeCompilation.clusteringRatio')}
+ tooltip={t('knowledgeCompilation.clusteringRatioTip')}
step={0.01}
max={1}
min={0}
@@ -68,8 +68,8 @@ export function TreeTemplateFields({ index }: TreeTemplateFieldsProps) {
<SwitchFormField
name={`templates.${index}.config.raptor.rechunk`}
- label={t('setting.rechunkByTreeLeaves')}
- tooltip={t('setting.rechunkByTreeLeavesTip')}
+ label={t('knowledgeCompilation.rechunkByTreeLeaves')}
+ tooltip={t('knowledgeCompilation.rechunkByTreeLeavesTip')}
vertical={false}
/>
</div>
diff --git a/web/src/pages/user-setting/compilation-templates/edit-next/components/workflow-preview-sheet.tsx b/web/src/pages/user-setting/compilation-templates/edit-next/components/workflow-preview-sheet.tsx
index 1e4d848973..17ad71a29f 100644
--- a/web/src/pages/user-setting/compilation-templates/edit-next/components/workflow-preview-sheet.tsx
+++ b/web/src/pages/user-setting/compilation-templates/edit-next/components/workflow-preview-sheet.tsx
@@ -52,18 +52,18 @@ export function WorkflowPreviewSheet({
</Button>
</SheetTrigger>
</TooltipTrigger>
- <TooltipContent>{t('setting.processFlow')}</TooltipContent>
+ <TooltipContent>{t('knowledgeCompilation.processFlow')}</TooltipContent>
</Tooltip>
<SheetContent
className="w-1/2 max-w-[700px] flex flex-col"
onInteractOutside={(e) => e.preventDefault()}
>
<SheetHeader>
- <SheetTitle>{t('setting.processFlow')}</SheetTitle>
+ <SheetTitle>{t('knowledgeCompilation.processFlow')}</SheetTitle>
</SheetHeader>
<div className="flex-1 min-h-0 mt-4 flex items-center justify-center">
<span className="text-text-disabled">
- {t('setting.processFlowComingSoon')}
+ {t('knowledgeCompilation.processFlowComingSoon')}
</span>
</div>
</SheetContent>
diff --git a/web/src/pages/user-setting/compilation-templates/edit-next/constant.ts b/web/src/pages/user-setting/compilation-templates/edit-next/constant.ts
index 6699dd8480..e009d22c8c 100644
--- a/web/src/pages/user-setting/compilation-templates/edit-next/constant.ts
+++ b/web/src/pages/user-setting/compilation-templates/edit-next/constant.ts
@@ -49,10 +49,10 @@ export const DefaultValues: FormSchemaType = {
};
export const SectionTitleKeyMap: Record<string, string> = {
- entity: 'setting.entitySpecification',
- relation: 'setting.relationSpecification',
- concept: 'setting.conceptSpecification',
- claim: 'setting.claimSpecification',
+ entity: 'knowledgeCompilation.entitySpecification',
+ relation: 'knowledgeCompilation.relationSpecification',
+ concept: 'knowledgeCompilation.conceptSpecification',
+ claim: 'knowledgeCompilation.claimSpecification',
};
export const SectionCardFieldMap: Record<
@@ -68,12 +68,12 @@ export const SectionCardFieldMap: Record<
export const SectionPriority = ['entity', 'relation'];
export const FieldLabelKeyMap: Record<string, string> = {
- type: 'setting.fieldType',
- description: 'setting.fieldDescription',
- rule: 'setting.fieldRule',
+ type: 'knowledgeCompilation.fieldType',
+ description: 'knowledgeCompilation.description',
+ rule: 'knowledgeCompilation.fieldRule',
};
export const FieldRequiredMessageKeyMap: Record<string, string> = {
- type: 'setting.fieldTypeRequired',
- description: 'setting.fieldDescriptionRequired',
+ type: 'knowledgeCompilation.fieldTypeRequired',
+ description: 'knowledgeCompilation.fieldDescriptionRequired',
};
diff --git a/web/src/pages/user-setting/compilation-templates/edit-next/hooks/use-blueprint-selection.ts b/web/src/pages/user-setting/compilation-templates/edit-next/hooks/use-blueprint-selection.ts
index 6013ce48ef..a6c8f43892 100644
--- a/web/src/pages/user-setting/compilation-templates/edit-next/hooks/use-blueprint-selection.ts
+++ b/web/src/pages/user-setting/compilation-templates/edit-next/hooks/use-blueprint-selection.ts
@@ -93,7 +93,7 @@ export function useBlueprintSelection({
label: capitalize(lowerCase(preset.id)),
value: preset.id,
})),
- { label: t('setting.custom'), value: CustomBlueprintValue },
+ { label: t('knowledgeCompilation.custom'), value: CustomBlueprintValue },
],
[presets, t],
);
diff --git a/web/src/pages/user-setting/compilation-templates/edit-next/index.tsx b/web/src/pages/user-setting/compilation-templates/edit-next/index.tsx
index 9fc5f935c1..c56398e92b 100644
--- a/web/src/pages/user-setting/compilation-templates/edit-next/index.tsx
+++ b/web/src/pages/user-setting/compilation-templates/edit-next/index.tsx
@@ -65,8 +65,8 @@ export default function EditNextCompilationTemplate() {
<BackButton to={agentsUrl} />
<h2 className="font-medium text-text-secondary">
{isCreate
- ? t('setting.addTemplateGroup')
- : group?.name || t('setting.editTemplateGroup')}
+ ? t('knowledgeCompilation.addTemplateGroup')
+ : group?.name || t('knowledgeCompilation.editTemplateGroup')}
</h2>
</header>
diff --git a/web/src/pages/user-setting/compilation-templates/edit-next/schema.ts b/web/src/pages/user-setting/compilation-templates/edit-next/schema.ts
index 3dcc63b6b3..038d2bec3b 100644
--- a/web/src/pages/user-setting/compilation-templates/edit-next/schema.ts
+++ b/web/src/pages/user-setting/compilation-templates/edit-next/schema.ts
@@ -20,14 +20,14 @@ export const buildSectionSchema = (t: (key: string) => string) =>
z.object({
description: z.string().optional(),
fields: z
- .array(z.record(z.string().min(1, t('setting.fieldDescriptionRequired'))))
+ .array(z.record(z.string().min(1, t('knowledgeCompilation.fieldDescriptionRequired'))))
.min(1),
});
export const buildRaptorConfigSchema = (t: (key: string) => string) =>
z.object({
prompt: z.string().optional(),
- max_token: z.number().min(512, t('setting.maxTokenRequired')).max(2048),
+ max_token: z.number().min(512, t('knowledgeCompilation.maxTokenRequired')).max(2048),
clustering_threshold: z.number().min(0).max(1),
clustering_ratio: z.number().min(0).max(1),
rechunk: z.boolean().optional(),
@@ -46,9 +46,9 @@ export const buildTemplateSchema = (t: (key: string) => string) =>
z
.object({
id: z.string().optional(),
- name: z.string().min(1, t('setting.templateNameRequired')),
+ name: z.string().min(1, t('knowledgeCompilation.templateNameRequired')),
description: z.string().optional(),
- kind: z.string().min(1, t('setting.templateKindRequired')),
+ kind: z.string().min(1, t('knowledgeCompilation.templateKindRequired')),
config: z.record(
z.union([
buildRaptorConfigSchema(t),
@@ -67,7 +67,7 @@ export const buildTemplateSchema = (t: (key: string) => string) =>
context.addIssue({
code: z.ZodIssueCode.custom,
path: ['config', 'mode'],
- message: t('setting.wikiModeRequired'),
+ message: t('knowledgeCompilation.wikiModeRequired'),
});
}
});
diff --git a/web/src/utils/compilation-template-util.ts b/web/src/utils/compilation-template-util.ts
index 3249f0f5bc..e3e44ead78 100644
--- a/web/src/utils/compilation-template-util.ts
+++ b/web/src/utils/compilation-template-util.ts
@@ -23,7 +23,7 @@ export function formatKindLabel(t: TFunction, kind: string): string {
return 'Wiki';
}
if (kind === CompilationTemplateKind.KnowledgeGraph) {
- return t('knowledgeDetails.structureGraph');
+ return t('knowledgeCompilation.graph');
}
return capitalize(lowerCase(kind));
}