[Question]: RemoteReader not working while reading PDF data from URL #8364
Replies: 3 comments
-
Could you go into the I've tried the code you linked with the URL Alternatively, you can get this directly from the llamahub pip package ( from llama_hub.remote.base import RemoteReader
url = "https://writing.colostate.edu/guides/documents/resume/functionalsample.pdf"
loader = RemoteReader()
documents = loader.load_data(url=url)
print(documents) |
Beta Was this translation helpful? Give feedback.
-
Hi, @qaixerabbas! I'm Dosu, and I'm helping the LlamaIndex team manage their backlog. I wanted to let you know that we are marking this issue as stale. From what I understand, you encountered a JSONDecodeError while trying to read PDF data using RemoteReader from the llama_hub package. User "tyre" suggested checking the Before we close this issue, we wanted to check if it is still relevant to the latest version of the LlamaIndex repository. If it is, please let us know by commenting on this issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days. Thank you for your understanding! |
Beta Was this translation helpful? Give feedback.
-
🤖 Hello, Thank you for reaching out with your issue. Based on the error message you're seeing, it seems like there might be an issue with the JSON decoding process. This error typically occurs when the JSON decoder encounters data after it has finished decoding a valid JSON string. However, I noticed that you're trying to read a PDF file using the To resolve this issue, you would need to use a PDF reader instead of a JSON reader to read the data from your PDF files. If you need to use the Additionally, I found a couple of similar issues in the LlamaIndex repository:
Lastly, please note that the use of I hope this helps! If you have any other questions, feel free to ask. Best, Sources
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Beta Was this translation helpful? Give feedback.
-
Question Validation
Question
I am trying to read PDF data using RemoteReader from llama_hub but stuck into some JSONDecoreError. I am not sure what is causing the error here is my code below (copied directly from this link):
Not sure it is a bug or some other issue but I am not able to run this code.
The code is throwing following error:
Beta Was this translation helpful? Give feedback.
All reactions