langchain
langchain copied to clipboard
Add lazy iteration interface to document loaders
Adding a lazy iteration for document loaders.
Following the plan here: https://github.com/hwchase17/langchain/pull/2833
Keeping the load
method as is for backwards compatibility. The load
returns
a materialized list of documents and downstream users may rely on that fact.
A new method that returns an iterable is introduced for handling lazy loading.