Creating a Generic Generative Language with Chrome AI
As I explore Chrome’s on-device AI initiatives, one of the things I’m doing is looking at some of my older demos (kinda funny to think of ‘old’ GenAI demos) and seeing which may make sense in the browser versus API calls. Last July, I investigated creating a template language parser with Google Gemini. The idea was – take a string with tokens that defined a type of word and have Gemini replace it. So for example:
My name is {{ name }} and my favorite food is {{ food }}.
I asked Gemini to look for values inside brackets, use that as the seed of a random word, and replace it. So for example:
My name is Frederic Dinglehooper the 3rd and my favorite food is sushi.
I... more →
Posted in: JavaScript



