have database_interactions.py run the load documents method from within document_processor.py, return the list of document objects, and then invoke the image loader...process...return and append...run audio loader, and so on. Currently, document processor invokes loader_images and the document list is appended in document_processor script instead of database interactions where it should be. This would also necessitate creating a new script named loader_audio.py.
This would be beneficial because it would allow further expansion of loading different types of documents more easily.
have
database_interactions.py
run the load documents method from within document_processor.py, return the list of document objects, and then invoke the image loader...process...return and append...run audio loader, and so on. Currently, document processor invokes loader_images and the document list is appended in document_processor script instead of database interactions where it should be. This would also necessitate creating a new script named loader_audio.py.This would be beneficial because it would allow further expansion of loading different types of documents more easily.