You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When loading a .PDF file, using the split/embed functionality, it is not accepted by the sandbox. Here's a code snippet example:
2025-Jan-16 13:48:36 - INFO - (modules.split): Writing Local File /tmp/tmpqesssar8/William Shakespeare.PDF
2025-Jan-16 13:48:36 - INFO - (modules.split): Loading Agatha Christie.PDF (145201 bytes)
2025-Jan-16 13:48:36 - ERROR - (modules.split): Un-supported file extension: PDF
2025-Jan-16 13:48:36 - ERROR - (chunk_embed): Operation Failed: cannot access local variable 'loader' where it is not associated with a value
Traceback (most recent call last):
File "/opt/oracle/home/oaim-sandbox/app/src/content/split_embed.py", line 406, in main
split_docos, _ = split.load_and_split_documents(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/oracle/home/oaim-sandbox/app/src/modules/split.py", line 171, in load_and_split_documents
loaded_doc = loader.load()
^^^^^^
UnboundLocalError: cannot access local variable 'loader' where it is not associated with a value
To solve
The text was updated successfully, but these errors were encountered:
When loading a .PDF file, using the split/embed functionality, it is not accepted by the sandbox. Here's a code snippet example:
2025-Jan-16 13:48:36 - INFO - (modules.split): Writing Local File /tmp/tmpqesssar8/William Shakespeare.PDF
2025-Jan-16 13:48:36 - INFO - (modules.split): Loading Agatha Christie.PDF (145201 bytes)
2025-Jan-16 13:48:36 - ERROR - (modules.split): Un-supported file extension: PDF
2025-Jan-16 13:48:36 - ERROR - (chunk_embed): Operation Failed: cannot access local variable 'loader' where it is not associated with a value
Traceback (most recent call last):
File "/opt/oracle/home/oaim-sandbox/app/src/content/split_embed.py", line 406, in main
split_docos, _ = split.load_and_split_documents(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/oracle/home/oaim-sandbox/app/src/modules/split.py", line 171, in load_and_split_documents
loaded_doc = loader.load()
^^^^^^
UnboundLocalError: cannot access local variable 'loader' where it is not associated with a value
To solve
The text was updated successfully, but these errors were encountered: