Skip to main content
After partitioning, you can have Unstructured generate text-based summaries of detected images. This summarization is done by using models offered through various model providers. Here is an example of the output of a detected image using GPT-4o. Note specifically the text field that is added. In this text field, type indicates the kind of image that was detected (in this case, a diagram), and description is a summary of the image. Line breaks have been inserted here for readability. The output will not contain these line breaks. Example of a diagram
For technical drawings, the text field will contain a type of technical drawing; description with texts containing text strings found in the drawing, tables containing HTML representations of tables found in the drawing, and a description containing a summary of the drawing. Here is an example. Line breaks have been inserted here for readability. The output will not contain these line breaks. Example of a technical drawing
For images of data plot graphs (for example bar charts, line charts, pie charts, and scatter plots), the text field will contain a type of graph; description containing a summary of the graph, data containing numerical values that can be used to regenerate the graph, and texts containing the text strings found in the graph. Here is an example. Line breaks have been inserted here for readability. The output will not contain these line breaks. Example of a data-plot-graph
The image_base64 field is generated only for documents or PDF pages that are partitioned by using the High Res strategy. This field is not generated for documents or PDF pages that are partitioned by using the Fast or VLM strategy.
For workflows that use chunking, note the following changes:
  • Each Image element is replaced by a CompositeElement element.
  • This CompositeElement element will contain the image’s summary description as part of the element’s text field.
  • This CompositeElement element will not contain an image_base64 field.
Here are three examples of the descriptions for detected images. These descriptions are generated with GPT-4o by OpenAI: Description of an image showing a scatter plot graph Description of an image showing the Matthews Correlation Coefficient for different VQA datasets Description of an image showing three scatter plots Any embeddings that are produced after these summaries are generated will be based on the text field’s contents.

Generate image descriptions

To have Unstructured generate image descriptions, do the following: