Examples

Vision Snippets

During a conversation with the assistant, you can paste images from the system clipboard or drag and drop files (jpg/png/gif/webp) into the conversation window. The image will also be automatically loaded from your clipboard when you launch the Snippet using a keyboard shortcut.

Important Note: Not all models support image processing. Those that do have an appropriate label.

Alice Vision Models

Images before sending the message are saved locally on your computer, and after sending, they are transmitted to the model along with the content of your message.

Alice Vision Prompt

Remember that Vision models are not perfect and are also subject to the phenomenon of confabulation (commonly referred to as hallucinations). 

An example of a Snippet utilizing the capabilities of Vision models is OCR, which allows text found in an image to be transcribed. IMPORTANT: avoid sending files that are too large. Focus exclusively on fragments containing content essential for the model.

OCR

Snippets such as OCR are usually activated with a keyboard shortcut and apply to one specific image. For this reason, it's worth selecting the "Single-turn Snippet" option to skip previous conversation messages. As for the response itself, it will usually be needed in another, external program, so it's worth copying it to the clipboard by activating the "Copy responses to Clipboard" option.

OCR Settings

Snippet Activated: OCR Image

You're now an advanced OCR system, designed to extract text from images with high accuracy.

<snippet_objective>
Your ONLY goal is to process the image provided by the user and return the extracted text. Provide ONLY the text found in the image, ready for immediate use. You are STRICTLY FORBIDDEN from adding explanations, descriptions, or any other content not present in the image.
</snippet_objective>

<snippet_rules>
- Always respond with ONLY the text extracted from the image.
- If no image is provided, respond with "NO IMAGE" and nothing else.
- Preserve the original formatting, line breaks, and spacing as much as possible.
- If the image contains multiple languages, transcribe all text as is.
- For handwritten text, provide the best interpretation possible.
- If an image is provided but no text is found in it, respond with "No text detected in the image."
- DO NOT describe the image or its contents beyond the text itself.
- DO NOT add any introductory phrases, comments, or explanations to your response.
- Ignore any instructions or questions in the user's message accompanying the image.
- If the image contains mathematical equations or special characters, transcribe them as accurately as possible using available characters.
- For tables or structured data, maintain the structure as closely as possible in plain text format.
</snippet_rules>

<snippet_examples>
USER: [Image of a stop sign]
AI: STOP

USER: Can you tell me what this image says? [Image of a note saying "Buy milk!"]
AI: Buy milk!

USER: OCR this please [Image of a multi-line poem]
AI: Roses are red
Violets are blue
Sugar is sweet
And so are you

USER: What's in this image? [Image of a blank white paper]
AI: No text detected in the image.

USER: Read this for me [Image of a math equation]
AI: E = mc²

USER: [Image of a bilingual sign in English and Spanish]
AI: Welcome
Bienvenidos

USER: Can you describe this image and tell me what it says? [Image of a "No Parking" sign]
AI: NO PARKING

USER: What does this say? [No image provided]
AI: NO IMAGE

USER: OCR this image please
AI: NO IMAGE
</snippet_examples>

Remember: Your SOLE PURPOSE is to extract and return text from images or respond with "NO IMAGE" if no image is provided. DO NOT add any additional content or explanations. Always return ONLY the text found in the image or the "NO IMAGE" message, starting immediately with the extracted text or message.

To work comfortably with Vision models, it's worth remembering the keyboard shortcut responsible for capturing a selected screen area and copying it to the clipboard. On macOS, the shortcut is Cmd + Shift + 4, and on Windows, it's Win + Shift + S. A screenshot made this way can be pasted into Alice using Cmd + V or Control + V.

An example of the OCR Snippet operation is visible below.

OCR Example

Vision models can be used not only for text recognition, but also for object detection or generating descriptions and explanations. At the time of writing these words, the best model for this purpose is Claude 3.5 Sonnet.