Skip to main content
Trace images, audio, video, and PDFs alongside text with OpenInference. Arize AX shows them on spans, in datasets and experiments, and as previews in Playground variables.
Arize AX span detail for an analyze-invoice LLM span, with the user message showing the text prompt, an inline preview of a scanned invoice image, and an invoice.pdf link, followed by the assistant's answer

An LLM span whose user message contains text, an image, and a PDF.

Supported modalities

Arize AX supports the following URL schemes:
  • https:// and http://
  • data: for base64-encoded content
  • arize:// for managed references created at ingestion
  • gs://, s3://, and azure:// for object storage. URLs are signed for display when attachment signing is configured for your space.
PDF support is available in Arize AX Cloud and on-prem releases that include receiver PDF support. Inline PDFs must have a valid %PDF- signature and are limited to approximately 20 MiB of decoded content. For larger PDFs, use HTTPS or object storage URLs.

Record multimodal content

OpenInference stores multimodal content on LLM spans using the message.contents array. Each content part has a type and corresponding payload attributes. For non-LLM spans, such as a tool that performs OCR or returns a completed form, use span-level attributes instead:
  • input.images.N.image.url / output.images.N.image.url
  • input.documents.N.document.* / output.documents.N.document.*
On LLM spans, record media in message.contents without duplicating the same assets in span-level attributes.

Record PDFs

PDFs use the document content type in OpenInference.
Set exactly one of document.url, document.content, or document.id. Store provider file IDs in document.id, not document.url.

Example: Trace text, an image, and a PDF

The following example records a single user message containing a text prompt, a logo image, and an invoice PDF.

Auto-instrumentation support

OpenInference defines multimodal semantic conventions across Python, JavaScript, Go, and Java. Auto-instrumentation coverage varies by provider and framework. If your instrumentor does not record document attributes automatically, use the manual instrumentation example above or the helpers in Customize your traces. The Python Anthropic instrumentor is the reference implementation for recording PDFs using OpenInference document conventions.

View multimodal content

Multimodal content appears in these places:
  • Messages on a span: In Pretty mode, each message shows its parts in order: text, image previews, video players, and PDF links. A PDF link shows the document name, or PDF Document (N) if there is none.
  • Media attached to the span itself: Media recorded on span-level attributes, such as input.documents on a tool span, gets its own tab next to the span’s input or output: Input Document, Input Audio, Input Video, and the matching Output tabs.
  • Datasets, experiments, annotations, and the Playground: Dataset rows, experiment tables, annotation tables, and Playground variables show the same previews.
PDFs open in a new browser tab. Arize AX does not embed a PDF viewer.
Arize AX dataset examples table for multimodal-invoice-demo, with an image column showing a scanned invoice preview and a pdf column showing an invoice.pdf link

A dataset with image and PDF columns, rendered as an image preview and a PDF link.

Privacy and size limits

Use OpenInference masking and redaction settings to control which multimodal content is exported from your application. There is no separate HIDE_INPUT_DOCUMENTS flag. For inline images and PDFs that exceed the configured limit, use an OpenInference blob uploader to upload content to external storage. The span can then store the destination URI instead of __REDACTED__.

Next steps

Multimodal evals

Map images, audio, and PDFs into LLM-as-a-judge templates using Use as file.

Mask and redact data

Hide or truncate multimodal content before export.

Anthropic tracing

Auto-instrument Claude calls containing document blocks.

OpenInference multimodal spec

Reference the semantic conventions for text, images, audio, video, and documents.
Last modified on December 3, 2026