Update Docs (#3520)
This commit is contained in:
@@ -69,10 +69,10 @@ client.add(messages, user_id="alice")
|
||||
## 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
|
||||
- **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
|
||||
|
||||
@@ -224,9 +224,9 @@ client.add(messages, user_id="user123")
|
||||
- **Resolution**: Images are automatically resized if needed
|
||||
|
||||
### Performance Tips
|
||||
1. **Compress large images** before sending to reduce processing time
|
||||
2. **Use appropriate formats** - JPEG for photos, PNG for graphics with text
|
||||
3. **Batch processing** - Send multiple images in separate requests for better reliability
|
||||
1. **Compress large images** before sending to reduce processing time.
|
||||
2. **Use appropriate formats**: JPEG for photos, PNG for graphics with text.
|
||||
3. **Batch processing**: Send multiple images in separate requests for better reliability.
|
||||
|
||||
## Error Handling
|
||||
|
||||
@@ -291,19 +291,19 @@ try {
|
||||
## 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
|
||||
- **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
|
||||
- **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
|
||||
- **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.
|
||||
|
||||
Using these methods, you can seamlessly incorporate various visual content types into your interactions, further enhancing Mem0's multimodal capabilities for more comprehensive memory management.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user