Skip to main content

Document loaders

Document loaders load data into LangChain's expected format for use-cases such as retrieval-augmented generation (RAG).

LangChain.js categorizes document loaders in two different ways:

  • File loaders, which load data into LangChain formats from your local filesystem.
  • Web loaders, which load data from remote sources.

See the individual pages for more on each category.

info

If you'd like to write your own document loader, see this how-to. If you'd like to contribute an integration, see Contributing integrations.


Was this page helpful?


You can also leave detailed feedback on GitHub.