FileLoader#
- class FileLoader(config)#
Bases:
Loader
The file
Loader
looks in a specified directory_field directory for files and loads these files either line by line or as a whole and transforms them intoDocument
items.- Parameters:
Example
{ "step": "loader", "type": "file", "directory_field": "loaded_file_path", "output_field": "file_content" }
Methods Summary
process
(directory)Process a directory and yield documents.
Methods Documentation