SuperAGI icon indicating copy to clipboard operation
SuperAGI copied to clipboard

Error reading and downloading file from archive.org or reading from local path

Open arrfonseca opened this issue 2 years ago • 3 comments

The goal was to read and summarize text from the path below. I've tried with simpler names.

Tool Read File returned: Error1: File 'Manufacturing Consent [The Political Economy Of The Mass Media]_djvu.txt' not found., FileNotFoundError, args: {'file_name': 'Manufacturing Consent [The Political Economy Of The Mass Media]_djvu.txt'}

Docker has access to the path

Also tried to tell SuperAGI to read and download from https://archive.org/stream/pdfy-NekqfnoWIEuYgdZl/Manufacturing%20Consent%20%5BThe%20Political%20Economy%20Of%20The%20Mass%20Media%5D_djvu.txt

It returned a not found error

The Agent is in God Mode. Read, write, and append functions are enabled.

Any ideas?

arrfonseca avatar Jun 10 '23 21:06 arrfonseca

I have the same problem, with comparable output.

ErikBaer avatar Jun 12 '23 10:06 ErikBaer

Same here, used the add resource to an agent. saved csv as txt and added to resources During agent operations get the following errors

 superagi-celery-1           | Task: Retrieve the CSV data from the source system and store it in a format suitable for analysis
superagi-celery-1           | Result: Tool Read File returned: Error1: File 'path/to/file.txt' not found., FileNotFoundError, args: {'file_name': 'path/to/file.txt'}

the file was uploaded successfully into Workspace\Input\

Did anyone find a workaround?

keyalexander avatar Jun 15 '23 03:06 keyalexander

To read from a website, you have to enable the Web Scraper Tool. For reading .txt files you have to mention the exact name of the file and ask the agent to read it. It's working on my system. @arrfonseca is the issue still persisting in yours? We are also adding the capability to ingest pdfs, csv and other formats as well.

neelayan7 avatar Jun 27 '23 12:06 neelayan7