[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…
Reference in New Issue