feat: update chunk size configurations for knowledge base processing

- Increased default sizes for parent and child chunks in the knowledge base editor and settings, enhancing data processing capabilities.
- Adjusted slider settings in the UI to reflect new minimum and maximum values for chunk sizes, improving user control over configurations.
- Updated backend logic to ensure consistent handling of chunk sizes across the application.

These changes optimize the chunking process, allowing for more efficient data handling and improved performance in knowledge base operations.
This commit is contained in:
wizardchen
2026-03-05 15:04:08 +08:00
committed by lyingbug
parent 2e48bc0e63
commit b697d4945e
4 changed files with 19 additions and 19 deletions
+2 -2
View File
@@ -1326,11 +1326,11 @@ type ProcessChunksOptions struct {
func buildParentChildConfigs(cc types.ChunkingConfig, base chunker.SplitterConfig) (parent, child chunker.SplitterConfig) {
parentSize := cc.ParentChunkSize
if parentSize <= 0 {
parentSize = 1024
parentSize = 4096
}
childSize := cc.ChildChunkSize
if childSize <= 0 {
childSize = 256
childSize = 384
}
parent = chunker.SplitterConfig{
ChunkSize: parentSize,