DeepsetSourceToBase64Image
Convert image sources (file paths, URLs, or byte streams) to base64-encoded images.
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
Base64Imageobjects. - Works with image files for use in visual question answering pipelines.
- Compatible with visual Generators that accept
Base64Imageinput.
Configuration
- Drag the
DeepsetSourceToBase64Imagecomponent onto the canvas from the Component Library. - Click the component to open the configuration panel.
- 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
| Parameter | Type | Default | Description |
|---|---|---|---|
| sources | List[Union[str, Path, ByteStream]] | A list of image sources to convert. Sources can be file paths, URLs, or byte streams. |
Outputs
| Parameter | Type | Default | Description |
|---|---|---|---|
| base64_images | List[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.
| Parameter | Type | Default | Description |
|---|---|---|---|
| sources | List[Union[str, Path, ByteStream]] | A list of image sources to convert. |
Was this page helpful?