Skip to content

armgit / mem0

Public Imported from GitHub
0

The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.

Changed multimodal prompt to extract better text from images (#2322)

Prateek Chhikarac6fbba6a4dcb
diff --git a/mem0/memory/utils.py b/mem0/memory/utils.py
index 535e9de27..4847f3060 100644
--- a/mem0/memory/utils.py
+++ b/mem0/memory/utils.py
@@ -57,7 +57,7 @@ def get_image_description(image_url):
"content": [
{
"type": "text",
- "text": "Provide a description of the image and do not include any additional text.",
+ "text": "A user is providing an image. Provide a high level description of the image and do not include any additional text.",
},
{"type": "image_url", "image_url": {"url": image_url}},
],