09 · Bonus: images · 1 / 6Empty prompt: what is it, and where?
/3-jev-images/demo1 · no prompt
dog · 100%
what: one label from the list
dog
1
cat
0
person
0
other
0
The route
const labels = { dog: null, cat: null, person: null, car: null, … };
const target = prompt || "The main subject of the image";
const { answers } = await jev.systemOne({
state: image(photo),
questions: {
found: noul(`The image contains: ${target}`),
where: box(target),
what: choice(`What is this: ${target}?`, labels),
},
});
What Jev answers
{
found: { noul: 0.91 },
where: { box: { top: 0.11, bottom: 0.97, left: 0.13, right: 0.79 },
confidence: 0.52 },
what: { choice: "dog", probabilities: { dog: 1, cat: 0, bird: 0, person: 0, … } },
}
Where it is, and what it is: one call.