Skip to main content
This covers how to load images into a document format that we can use downstream with other LangChain modules. It uses Unstructured to handle a wide variety of image formats, such as .jpg and .png. Please see this guide for more instructions on setting up Unstructured locally, including setting up required system dependencies.

Using Unstructured

Retain Elements

Under the hood, Unstructured creates different โ€œelementsโ€ for different chunks of text. By default we combine those together, but you can keep that separation by specifying mode="elements".

Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.