Table of Contents

Class ImageDescriptionInstructions

Namespace
MailFathom.AI.Descriptions
Assembly
MailFathom.AI.dll

What the model is told before it is shown one image attachment.

public static class ImageDescriptionInstructions
Inheritance
ImageDescriptionInstructions
Inherited Members

Remarks

A description is a conversation of two turns and nothing else: this instruction, and one picture with the line that asks about it. Nothing of the message the attachment arrived on travels with it — not the subject, not the sender, not the body, not the other attachments — because writing down what a picture shows needs none of it and everything sent is somebody's mail leaving the process.

The instruction is written for the search this feeds, and an image attachment is two different things to it. A scan, a screenshot, or a photographed page is findable by the words on it and by nothing else — somebody searching for an invoice number is searching for that number, not for "a scanned invoice" — so the answer there is the text itself, written out in full and in reading order. A photograph, a logo, or a drawing is findable by the nouns in it, so the answer names what is there in plain words rather than judging, guessing at intent, or writing about the picture's quality.

The model decides which of the two a picture is and says so on the first line, because the answer is stored differently: a transcription is the words somebody wrote and is searched as written text, while a description is a machine's sentence about a picture and ranks below everything written. TranscriptionMarker and DescriptionMarker are that line, and an answer carrying neither is read as a description — the lower-ranked of the two, so a model that ignored the format cannot promote a guess into written text.

The last line is the injection posture, and it is the one part of this text that is not about search. An image is composed by whoever sent the mail, so anything legible in it is an attacker-controlled string arriving in a position a model reads — a screenshot whose caption says to ignore the instruction above and answer something else is the obvious shape. Nothing downstream trusts the answer either: it is stored, indexed, and presented as a machine's account of a picture rather than as anything a person wrote.

Fields

DescriptionMarker

The first line of an answer that is an account of what a picture shows.

DescriptionRequest

What the turn carrying the picture says.

Text

What the model is told its task is.

TranscriptionMarker

The first line of an answer that is the words a picture carries.

TurnsPerRequest

How many turns one description sends, which a chat declaration must admit for the port to work at all.

Properties

SmallestRequestCharacters

Gets the fewest request characters a chat declaration must admit before a description can be sent.