Jyong пре 7 месеци
родитељ
комит
f77f7e1437
No account linked to committer's email address
1 измењених фајлова са 4 додато и 1 уклоњено
  1. 4
    1
      api/core/rag/splitter/fixed_text_splitter.py

+ 4
- 1
api/core/rag/splitter/fixed_text_splitter.py Прегледај датотеку

@@ -88,7 +88,10 @@ class FixedRecursiveCharacterTextSplitter(EnhanceRecursiveCharacterTextSplitter)
break
# Now that we have the separator, split the text
if separator:
splits = text.split(separator)
if separator == " ":
splits = text.split()
else:
splits = text.split(separator)
else:
splits = list(text)
# Now go merging things, recursively splitting longer texts.

Loading…
Откажи
Сачувај