Loading multiple documents and associating the sources is a great idea! And just happens there’s a “DirectoryLoader” which does exactly that https://
langchain.readthedocs.io/en/latest/modu
les/document_loaders/examples/directory_loader.html
…
DirectoryLoader LangChain loads multiple documents with sources
By
–
Leave a Reply