We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1946beb commit a7f9d3dCopy full SHA for a7f9d3d
backend/src/document_sources/local_file.py
@@ -19,7 +19,7 @@ def get_documents_from_file_by_path(file_path,file_name):
19
file_path = Path(file_path)
20
if file_path.exists():
21
logging.info(f'file {file_name} processing')
22
- loader = PyPDFLoader(file_path)
+ loader = PyPDFLoader(str(file_path))
23
pages = loader.load_and_split()
24
else:
25
logging.info(f'File {file_name} does not exist')
0 commit comments