refactor: Introduce create_chunking_config function for better readability and maintainability

This commit is contained in:
begoniezhao
2025-12-01 18:07:43 +08:00
parent 3e31fdeefd
commit 5d6729fc0c
2 changed files with 76 additions and 105 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ class ChunkingConfig:
chunk_overlap: int = 50
# Text separators in order of priority
separators: list = field(default_factory=lambda: ["\n\n", "\n", "。"])
separators: list[str] = field(default_factory=lambda: ["\n\n", "\n", "。"])
# Whether to enable multimodal processing (text + images)
enable_multimodal: bool = False