Image Recognition Support
The differences between vision language models (VLMs) and traditional OCR, and how MaiAgent handles images in conversation attachments, knowledge base documents, and knowledge base image files.
What Is a VLM (Vision Language Model)?
A vision language model (VLM) can understand both images and text. It not only recognizes text in an image, but also understands objects, tables, charts, and the relationships between them, and can answer questions or generate descriptions based on the image content.
VLMs Compared with Traditional OCR
Traditional optical character recognition (OCR) focuses on finding and extracting text from images. It provides limited help in understanding an image's overall meaning or non-text content.
Primary Function
Extract text from images
Understand image content and combine it with textual information
Scope
Text only
Text, objects, charts, and layout
Level of Understanding
Character recognition
Scene understanding, relationship inference, and context
Common Uses
Document scanning and text extraction
Image question answering, chart interpretation, and image descriptions
Where MaiAgent Handles Images
Image Attachments in Conversations
When a user uploads an image in a conversation, the image is sent directly to the Agent's large language model for interpretation, so the Agent must use a model that supports multimodal input. If the model does not support it, the response displays “Your selected LLM does not support multimodal input.” For models that support multimodal input, see Model Access Permissions in the user manual.
The number of images sent to the model in a single request is limited by the platform settings (20 by default). When uploading through the API, set the attachment's type to image to send the image to the model as visual input. Setting it to other sends it through the document parsing workflow instead. See How Message Attachments Are Processed.
Images and Scanned Pages in Knowledge Base Documents
Images, charts, and scanned pages in documents such as PDF, Word, and PowerPoint require a parser to extract their content before it can be retrieved:
Vision Parser: Uses a cloud multimodal model to read documents page by page and convert the content of images, charts, and scanned pages into text.
MaiAgent Parser (Offline): When a multimodal model is configured, it also performs OCR and generates image descriptions for PDFs, making it suitable for environments that require offline operation.
MaiAgent Parser: Extracts embedded images but does not convert their content into text. When the knowledge base uses an Embedding model that supports multimodal input, the extracted images are also indexed as vectors using the images themselves.
When you select Auto Detect (Default) during upload, the system switches to one of the parsers above that can handle images for scanned files and documents containing images. For parser differences and pricing, see Parser Tools.
Image Files in the Knowledge Base
Image files (.png, .jpg, .jpeg, .gif, .webp, .tiff) can be uploaded directly to the knowledge base and indexed as vectors using the images themselves. This requires the knowledge base to use an Embedding model that supports multimodal input (Cohere Embed V4.0 in MaiAgent Cloud); otherwise, parsing the file will fail. See Embedding Models.
Last updated
Was this helpful?