feat: enable parent-child chunking and question generation in KnowledgeBaseEditorModal

- Updated configuration to enable parent-child chunking, allowing for more structured content organization.
- Activated question generation feature, enhancing the ability to create relevant questions based on the content provided.

These changes improve the functionality of the KnowledgeBaseEditorModal, facilitating better content management and interaction.
This commit is contained in:
wizardchen
2026-03-13 17:22:02 +08:00
parent 00e97be447
commit 184c15efdc
@@ -343,7 +343,7 @@ const initFormData = (type: 'document' | 'faq' = 'document') => {
chunkOverlap: 100,
separators: ['\n\n', '\n', '。', '!', '?', ';', ';'],
parserEngineRules: undefined as any,
enableParentChild: false,
enableParentChild: true,
parentChunkSize: 4096,
childChunkSize: 384
},
@@ -367,7 +367,7 @@ const initFormData = (type: 'document' | 'faq' = 'document') => {
}>
},
questionGenerationConfig: {
enabled: false,
enabled: true,
questionCount: 3
},
}