This commit is contained in:
imClumsyPanda 2023-09-01 14:15:13 +08:00
parent 6c4ef26e9a
commit d6dce95682
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ class KnowledgeFile:
print(f"{self.document_loader_name} used for {self.filepath}")
try:
if self.document_loader_name in []:
if self.document_loader_name in ["RapidOCRPDFLoader", "RapidOCRLoader"]:
document_loaders_module = importlib.import_module('document_loaders')
else:
document_loaders_module = importlib.import_module('langchain.document_loaders')