
An LLM span whose user message contains text, an image, and a PDF.
Supported modalities
Arize AX supports the following URL schemes:
https://andhttp://data:for base64-encoded contentarize://for managed references created at ingestiongs://,s3://, andazure://for object storage. URLs are signed for display when attachment signing is configured for your space.
%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 themessage.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.urlinput.documents.N.document.*/output.documents.N.document.*
message.contents without duplicating the same assets in span-level attributes.
Record PDFs
PDFs use thedocument 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.documentson 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.

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.