Trouble getting Chrome's response to be less wordy

15 views
Skip to first unread message

Raymond Camden

unread,
Aug 29, 2025, 1:34:19 PM (9 days ago) Aug 29
to Chrome Built-in AI Early Preview Program Discussions
So I'm working on a demo that takes a set of images, comic book pages, and asks Chrome to summarize what's going on in them. One thing I noticed right away is that the model *really* wanted to comment on the art style and such. So I worked on my propt to try to get it to *not* do that, to only focus on what happens, and to give me a one paragraph summary for the page. Here's the prompt I have now:

initailPrompts: [{
role:"system",
content:"You analyze images that are part of a comic book. Each image represents one page of a story. I will prompt you with the image as well as any previous summary from earlier pages. You should summarize the current image and use any previous summary to help guide you with the current page. If the current page is an advertisement or promotional page, simply return nothing. If the image appears to be a cover, return nothing. Your summary should be one paragraph that is no more than three to four sentences and focused on describing what is being shown on the page. Do not give your opinion on the art or color. Just summarize what happens on the page."
}],

However, this never seemed to work. I got great explainers of the pages in question and goes into a lot of detail, but far too much detail and never focusing on the story itself.

I then tried adding a schema:

const paragraphSchema = {
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Clean Paragraph",
  "description": "A single paragraph of text without multiple consecutive newlines.",
  "type": "string",
  "pattern": "^[^\\n]*(\\n[^\\n]*)*$"
};

This didn't help - instead I get a one sentence result that's a quote from the top of one page of the comic. It's an accurate quote, but not at all what I asked for. 

Any ideas?

Code may be found here: https://github.com/cfjedimaster/ai-testingzone/tree/main/comic_web_ai

And an online demo here (note, its all being output in console): https://cfjedimaster.github.io/ai-testingzone/comic_web_ai/index.html

If anyone would like the comic I'm testing with, email me directly. 

Roland Bouman

unread,
Aug 29, 2025, 4:32:22 PM (9 days ago) Aug 29
to Chrome Built-in AI Early Preview Program Discussions, Raymond Camden
Respectfully, 

you seem to have a typo in the member name.

It's "initialPrompts". Not "initailPrompts"

Raymond Camden

unread,
Aug 29, 2025, 4:35:37 PM (9 days ago) Aug 29
to Roland Bouman, Chrome Built-in AI Early Preview Program Discussions
Wow.... I'm.... wow. So sorry yall. Thank you, Roland!
--
===========================================================================
Raymond Camden

Email : raymon...@gmail.com
Blog : www.raymondcamden.com
Twitter: raymondcamden
Reply all
Reply to author
Forward
0 new messages