image

A picture, such as a photo, a scan or a screenshot. The text in it is read for you, and a model looks at the picture itself.

At a glance

Writing

Written as

A JSON object.

Create options

Options for generating an image from a description.

Reading

Querying

A picture is found two ways (see the HQL reference): by the text read from it, with ~* and ~~, once that text has been read, a little after the save; and by what it shows, with ~=, which compares your words with the picture itself. For a picture hit, match.hash is the picture's own handle, and match.text holds that handle too, not the read text.

Message | ~= "a photo of a damaged parcel" | match.dtype = "image" | select id, match.hash, match.score | limit 10
Message | content ~* "invoice number" | match.dtype = "image" | select id, match.hash | limit 20

content.dtype asks whether a message carries a picture at all, without searching:

Message | content.dtype = "image" AND created_at >= NOW() - INTERVAL '7 days' | select id, created_at

Editing

In agent tools

Metadata

Derived values kept with a stored value:

Operations

Through the dtypes resource: