How It Works
When you submit an image, Mem0:- Processes the visual content using advanced vision models
- Extracts textual information and relevant details from the image
- Stores the extracted information as searchable memories
- Maintains context between visual and textual interactions
Supported Image Formats
Mem0 supports common image formats:- JPEG/JPG: Standard photos and images
- PNG: Images with transparency support
- WebP: Modern web-optimized format
- GIF: Animated and static graphics
Local Files vs URLs
Using Image URLs
Images can be referenced via publicly accessible URLs:Using Local Files
For local images, convert them to base64 format:Advanced Examples
Restaurant Menu Analysis
Document Analysis
File Size and Performance Considerations
Image Size Limits
- Maximum file size: 20MB per image
- Recommended size: Under 5MB for optimal performance
- Resolution: Images are automatically resized if needed
Performance Tips
- Compress large images before sending to reduce processing time.
- Use appropriate formats: JPEG for photos, PNG for graphics with text.
- Batch processing: Send multiple images in separate requests for better reliability.
Error Handling
Handle common errors when working with images:Best Practices
Image Selection
- Use high-quality images with clear, readable text and details.
- Ensure good lighting in photos for better text extraction.
- Avoid heavily stylized fonts that may be difficult to read.
Memory Context
- Provide context about what information you want extracted.
- Combine with text to give Mem0 better understanding of the image’s purpose.
- Be specific about what aspects of the image are important.
Privacy and Security
- Avoid sensitive information in images (SSN, passwords, private data).
- Use secure image hosting for URLs to prevent unauthorized access.
- Consider local processing for highly sensitive visual content.