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.
main
wizardchen 2026-03-13 17:22:02 +08:00
parent 56fa1d8df6
commit 5f6f223204
1 changed files with 2 additions and 2 deletions

View File

@ -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
},
}