Multimodal evals
An LLM judge can grade more than text. When a generation, trace, or session includes images, PDFs, audio, or video, PostHog sends those files to the judge along with the transcript. The judge sees what your user sent and what your app produced.
Use multimodal evals for checks like:
- Does the product description match the photo your user uploaded?
- Did the agent read the right total from the receipt PDF?
- Does the written summary match what was said in the call recording?
- Does the generated image follow your user's request?
Before you start
Multimodal evals need three things:
- The files are captured in PostHog. By default, the SDK integrations redact base64 media before they send events. Turn on full AI capture so the files reach PostHog. See Capturing large AI events.
- The evaluation uses an LLM judge. Under Choose how it decides, pick LLM judge. Decision model, Code, and Sentiment evaluations grade the text only.
- The judge model can read the file type. See Which models read which files.
Turn on attachments
Send attachments to the judge is on by default for all LLM judge evaluations, including existing ones.
- Navigate to AI Evals > Evaluations
- Create an evaluation, or open an existing one
- Under Choose how it decides, pick LLM judge
- Pick a Model that reads the files you capture
- Check that Send attachments to the judge is selected
- Save the evaluation
It works with every Evaluate setting: each generation, whole trace, or whole session. In a trace or session, a file that appears more than once is sent once.
Turn the setting off for checks that only need text, like tone or format.
What the judge receives
For example, a user uploads a photo of a mug and asks your app for a listing description. The judge receives your evaluation prompt as its instructions:
Then a message with the photo and the transcript:
Which models read which files
| File type | Formats | Providers |
|---|---|---|
| Images | PNG, JPEG, WebP, GIF | Any provider with a model that reads images. Gemini doesn't read GIF. |
| PDFs | OpenAI (not Azure OpenAI), Anthropic, Gemini | |
| Audio | WAV, MP3 (all). AAC, AIFF, FLAC, OGG (Gemini only) | Gemini, OpenAI audio models like gpt-audio (not Azure OpenAI) |
| Video | MP4, MPEG, MOV, WebM | Gemini |
On OpenRouter, the judge gets the file types its model reads, based on OpenRouter's model catalog.
OpenAI audio models read audio only. Pick a Gemini model to judge audio together with images or PDFs.
Limits
| Limit | Value |
|---|---|
| Files per judge run | 20 |
| Videos per judge run | 10 (1 on Gemini models before 2.5) |
| Image size | 7 MB on Anthropic, 15 MB on Gemini |
| PDF size | 10 MB |
| Video size | 15 MB |
| Files sent inline, per judge run | 15 MB total |
A file goes as a link when PostHog stored it apart from the event and the provider downloads links. Every other file goes inline, inside the request, and shares the 15 MB total. For example, all audio goes inline, and so do PDFs on OpenAI and OpenRouter.
Each file also has to fit in one captured AI event. The SDKs send events up to 8 MB, and base64 encoding leaves about 6 MB of that for the raw file. See Capturing large AI events.
When a file isn't attached
The run still completes, with no error. The judge grades the rest of the transcript. In place of each missing file, it gets a note and an instruction not to guess what the file contains:
A file isn't attached when:
- The SDK redacted it. Turn on full AI capture so the file reaches PostHog.
- The format isn't in Which models read which files, or the model can't read it. For a format in the table, pick a model that reads it.
- It's too large. See Limits.
- The transcript is too long. PostHog cuts a long transcript to fit the judge's text limit. A file mentioned only in a cut part isn't sent, and the judge gets no note for it.
- The run has more than 20 files. The judge gets the 20 most recent: the latest input and the output it grades.
- The model provider rejects the files. PostHog runs the judge again with no files.
- Your app sent it as a web link. PostHog doesn't download files from your app's URLs, so the judge sees only the URL, with no note. To have the judge see the file, capture the file data, like base64, instead of a link.
Pricing
A multimodal run counts as one AI Observability event, the same as any other evaluation run. Your model provider charges for the extra input tokens. If inference cost is a concern, use a lower sampling rate on evaluations that read large files.
Judges can still miss details in an image or a recording. Check a sample of verdicts by hand before you trust the results. See test and refine your eval.





