You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for assistant-side inline image artifacts in the llama-server WebUI.
Current WebUI supports user-side image/PDF attachments, including parsing PDFs as images for vision models. However, assistant responses are text-only. For document-vision workflows, especially PDFs, it would be useful for the assistant/WebUI to render image artifacts inline in the chat.
Example workflow:
User uploads a PDF with pdfAsImage enabled.
User asks: “Show me diagram 1”
Vision model identifies the relevant page/region.
WebUI crops the rendered PDF page region.
Assistant response renders the cropped image inline.
Motivation
This enables visual document workflows such as:
extracting visual data from PDFs
showing figures/tables from scientific papers
showing chart/table snippets from reports
collecting visual snippets into chat tables
The model should not redraw or hallucinate the image. The WebUI should crop the original PDF-rendered pixels and display them as an inline artifact.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Feature Description
Add support for assistant-side inline image artifacts in the llama-server WebUI.
Current WebUI supports user-side image/PDF attachments, including parsing PDFs as images for vision models. However, assistant responses are text-only. For document-vision workflows, especially PDFs, it would be useful for the assistant/WebUI to render image artifacts inline in the chat.
Example workflow:
pdfAsImageenabled.Motivation
This enables visual document workflows such as:
The model should not redraw or hallucinate the image. The WebUI should crop the original PDF-rendered pixels and display them as an inline artifact.
Possible Implementation
Add an assistant artifact type, e.g.:
Beta Was this translation helpful? Give feedback.
All reactions