AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
[bug] `list_files` api signature change in `data_ingestion.py` and lo… (#3601)
Valay Dave6ae90a3ea2a4
diff --git a/data_ingestion.py b/data_ingestion.pyindex d400dc967d..c907cedf45 100644--- a/data_ingestion.py+++ b/data_ingestion.py@@ -1,7 +1,7 @@import argparseimport logging-from autogpt.commands.file_operations import ingest_file, search_files+from autogpt.commands.file_operations import ingest_file, list_filesfrom autogpt.config import Configfrom autogpt.memory import get_memory@@ -10,12 +10,11 @@ cfg = Config()def configure_logging():logging.basicConfig(- filemode="a",format="%(asctime)s,%(msecs)d %(name)s %(levelname)s %(message)s",datefmt="%H:%M:%S",level=logging.DEBUG,handlers=[- logging.FileHandler(filename="log-ingestion.txt"),+ logging.FileHandler(filename="log-ingestion.txt", mode="a"),logging.StreamHandler(),],)@@ -31,7 +30,7 @@ def ingest_directory(directory, memory, args):"""global loggertry:- files = search_files(directory)+ files = list_files(directory)for file in files:ingest_file(file, memory, args.max_length, args.overlap)except Exception as e:@@ -68,7 +67,6 @@ def main() -> None:help="The max_length of each chunk when ingesting files (default: 4000)",default=4000,)-args = parser.parse_args()# Initialize memory