mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-02-08 16:10:18 +08:00
[BUG] 修复csv文件读取后,单行数据被分成多段。
This commit is contained in:
parent
fea7e8ddf1
commit
f95d41ef47
@ -104,6 +104,9 @@ class KnowledgeFile:
|
||||
else:
|
||||
loader = DocumentLoader(self.filepath)
|
||||
|
||||
if self.ext in ".csv":
|
||||
docs = loader.load()
|
||||
else:
|
||||
try:
|
||||
if self.text_splitter_name is None:
|
||||
text_splitter_module = importlib.import_module('langchain.text_splitter')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user