feat(summary): enhance document summarization capabilities and UI

- Added max_input_chars configuration to limit input size for summary generation.
- Updated generate_summary.yaml to clarify summary generation steps and requirements.
- Introduced a new summary section in the document content view to display generated summaries or loading states.
- Refactored doc-content.vue to utilize computed properties for improved performance and readability.
- Enhanced knowledge base hooks to include description and summary status fields for better data handling.
- Updated internationalization files to include new summary-related labels in multiple languages.
This commit is contained in:
wizardchen
2026-04-02 14:59:42 +08:00
committed by lyingbug
parent 8daecd346c
commit cb36570cde
10 changed files with 264 additions and 141 deletions
+7 -1
View File
@@ -30,6 +30,8 @@ export default function (knowledgeBaseId?: string) {
source: "",
channel: "",
file_type: "",
description: "",
summary_status: "",
chunkLoading: false,
chunkLoadError: "",
});
@@ -154,6 +156,8 @@ export default function (knowledgeBaseId?: string) {
source: "",
channel: "",
file_type: "",
description: "",
summary_status: "",
chunkLoadError: "",
});
getKnowledgeDetails(item.id)
@@ -167,7 +171,9 @@ export default function (knowledgeBaseId?: string) {
type: data.type || 'file',
source: data.source || '',
channel: data.channel || '',
file_type: data.file_type || ''
file_type: data.file_type || '',
description: data.description || '',
summary_status: data.summary_status || '',
});
}
})