Skip to main content
For the complete documentation index for agents and LLMs, see llms.txt.

DeepsetSourceToBase64Image

Convert image sources (file paths, URLs, or byte streams) to base64-encoded images.

Deprecation Notice

This component is deprecated. It will continue to work in your existing pipelines for now.

Key Features

  • Converts image sources such as file paths, URLs, or byte streams to Base64Image objects.
  • Works with image files for use in visual question answering pipelines.
  • Compatible with visual Generators that accept Base64Image input.

Configuration

  1. Drag the DeepsetSourceToBase64Image component onto the canvas from the Component Library.
  2. Click the component to open the configuration panel.
  3. Configure the parameters as needed.

Connections

DeepsetSourceToBase64Image accepts image sources as input and outputs a list of Base64Image objects.

Connect a file downloader or source provider to the input. Connect the base64_images output to a visual Generator or Base64ImageJoiner to combine images from multiple sources.

Parameters

Inputs

ParameterTypeDefaultDescription
sourcesList[Union[str, Path, ByteStream]]A list of image sources to convert. Sources can be file paths, URLs, or byte streams.

Outputs

ParameterTypeDefaultDescription
base64_imagesList[Base64Image]A list of base64-encoded images.

Init Parameters

This component doesn't take any initialization parameters.

Run Method Parameters

These are the parameters you can configure for the component's run() method. This means you can pass these parameters at query time through the API, in Playground, or when running a job. For details, see Modify Pipeline Parameters at Query Time.

ParameterTypeDefaultDescription
sourcesList[Union[str, Path, ByteStream]]A list of image sources to convert.