mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-11 16:28:58 +08:00
fixed chunk_overlap is None (#7703)
This commit is contained in:
parent
ee7d5e7206
commit
60001a62c4
@ -57,7 +57,7 @@ class BaseIndexProcessor(ABC):
|
||||
|
||||
character_splitter = FixedRecursiveCharacterTextSplitter.from_encoder(
|
||||
chunk_size=segmentation["max_tokens"],
|
||||
chunk_overlap=segmentation.get('chunk_overlap', 0),
|
||||
chunk_overlap=segmentation.get('chunk_overlap', 0) or 0,
|
||||
fixed_separator=separator,
|
||||
separators=["\n\n", "。", ". ", " ", ""],
|
||||
embedding_model_instance=embedding_model_instance
|
||||
|
Loading…
x
Reference in New Issue
Block a user