feat: Implement wiki_config updates in knowledge base management
Added functionality to enable updates for the `wiki_config` field in the `KnowledgeBaseConfig` struct. This includes: 1. **Type Definition Update**: Added `WikiConfig` field to `KnowledgeBaseConfig` to allow JSON unmarshaling during update requests. 2. **Service Layer Enhancement**: Updated the `UpdateKnowledgeBase` method to persist changes to `wiki_config` when provided in the request. 3. **Frontend TypeScript Adjustments**: Enhanced type definitions in the frontend to support `wiki_config`, improving IDE autocomplete and type checking. This fix addresses the critical issue where `wiki_config` was not being updated due to its absence in the `KnowledgeBaseConfig` struct, ensuring proper handling of wiki configurations during knowledge base updates.
This commit is contained in:
@@ -1587,7 +1587,6 @@ export default {
|
||||
typeLabel: 'Knowledge Base Type',
|
||||
typeDocument: 'Document-based',
|
||||
typeFAQ: 'FAQ Q&A',
|
||||
typeWiki: 'Wiki',
|
||||
typeDescription: 'FAQ suits structured Q&A datasets; document type supports file parsing and chunking; Wiki type auto-builds interlinked knowledge pages via LLM.',
|
||||
nameLabel: 'Knowledge Base Name',
|
||||
namePlaceholder: 'Enter knowledge base name',
|
||||
@@ -1596,7 +1595,9 @@ export default {
|
||||
},
|
||||
wiki: {
|
||||
title: 'Wiki Settings',
|
||||
description: 'Configure Wiki knowledge base auto-generation and language preferences',
|
||||
description: 'Configure Wiki auto-generation preferences',
|
||||
enableLabel: 'Enable Wiki',
|
||||
enableTip: 'When enabled, uploading documents will auto-generate interlinked wiki knowledge pages',
|
||||
autoIngestLabel: 'Auto Ingest',
|
||||
autoIngestTip: 'When enabled, uploading new documents automatically triggers Wiki page generation/update',
|
||||
synthesisModelLabel: 'Synthesis Model',
|
||||
@@ -1606,6 +1607,34 @@ export default {
|
||||
maxPagesLabel: 'Max Pages Per Ingest',
|
||||
maxPagesTip: 'Maximum number of pages to create/update per ingest (0 = no limit)',
|
||||
},
|
||||
wikiBrowser: {
|
||||
tabDocuments: 'Documents',
|
||||
tabWiki: 'Wiki',
|
||||
tabGraph: 'Graph',
|
||||
tabGraph: 'Graph',
|
||||
searchPlaceholder: 'Search wiki pages...',
|
||||
filterAll: 'All Types',
|
||||
filterSummary: 'Summaries',
|
||||
filterEntity: 'Entities',
|
||||
filterConcept: 'Concepts',
|
||||
filterSynthesis: 'Synthesis',
|
||||
filterComparison: 'Comparisons',
|
||||
viewReader: 'Reader',
|
||||
viewGraph: 'Graph',
|
||||
stats: '{pages} pages · {links} links',
|
||||
emptyTitle: 'No wiki pages yet',
|
||||
emptyDesc: 'Upload documents with Wiki enabled to auto-generate knowledge pages',
|
||||
selectPageHint: 'Select a page from the left to view its content',
|
||||
version: 'v{ver}',
|
||||
linksTo: 'Links to',
|
||||
linkedFrom: 'Linked from',
|
||||
sources: 'Source documents',
|
||||
recentActivity: 'Recent Activity',
|
||||
graphEmpty: 'Loading graph...',
|
||||
logTitle: 'Activity Log',
|
||||
graphNoData: 'No graph data yet. Upload documents first.',
|
||||
healthCheck: 'Health Check',
|
||||
},
|
||||
buttons: {
|
||||
create: 'Create Knowledge Base',
|
||||
save: 'Save Configuration'
|
||||
|
||||
Reference in New Issue
Block a user