Live data from Hacker News

Chrome is adding `window.ai` – a Gemini Nano AI model right inside the browser

twitter.com

31–40 of 194 posts

Re: Chrome is adding `window.ai` – a Gemini Nano AI model right inside the browser

#31

This doesn't seem useful unless it's something standardized across browsers. Otherwise I'd still need to use a plugin to support safari, etc. It seems like it could be nice for something like a bookmarklet or a one-off script, but I don't think it'll really reduce friction in engaging with Gemini for serious web apps.

By default, the W3C process actually requires multiple implementations before something is supposed to be standardised. So it is actually necessary that browser vendors ship vendor-specific implementations before the standards process can properly consider things like this.

If Mozilla jumps on board and makes a compatible implementation that back ends to eg: local llama then you would have the preconditions necessary for it to become standardised. As long as Google hasn't booby trapped it by making it somehow highly specific to chrome / google / Gemini etc.

Re: Chrome is adding `window.ai` – a Gemini Nano AI model right inside the browser

#32
Sigh, don't make me tap the sign*.

I used to hold Google Chrome in high esteem due to its security posture. Shoehorning AI into it has deleted any respect I held for Chrome or the team that develops it.

Trust arrives on foot and leaves on horseback.

* The sign: https://ludic.mataroa.blog/blog/i-will-fucking-piledrive-you...

Re: Chrome is adding `window.ai` – a Gemini Nano AI model right inside the browser

#33

AI brain rot continues but now it's reaching unimaginable levels and infecting browser APIs, wow!

Do you have a specific objection to this feature's technical merit or is this a kneejerk to seeing "AI" in the headline?

Re: Chrome is adding `window.ai` – a Gemini Nano AI model right inside the browser

#34
post #7
post #4

I hope it can be disabled.

Yes, here's where you disable it: https://www.mozilla.org/en-US/firefox/new/

Mozilla does it too! [0]

[0]: https://blog.nightly.mozilla.org/2024/06/24/experimenting-wi...

Re: Chrome is adding `window.ai` – a Gemini Nano AI model right inside the browser

#35
See

https://developer.chrome.com/docs/ai/built-in

https://github.com/jeasonstudio/chrome-ai

I can’t seem to find public documentation for the API with a cursory search, so https://github.com/jeasonstudio/chrome-ai/blob/ec9e334253713... might be the best documentation (other than directly inspecting the window.ai object in console) at the moment.

It’s not really clear if the Gemini Nano here is Nano-1 (1.8B) or Nano-2 (3.25B) or selected based on device.

Re: Chrome is adding `window.ai` – a Gemini Nano AI model right inside the browser

#36
My first impression is that this should enable approximately what Apple is doing with their AI strategy (local on-device first, then filling back to a first party API, and finally something like ChatGPT), but for web users. Having it native in the browser could be really positive for a lot of use cases depending on whether the local version can do things like RAG using locally stored data, and generate structured information like JSON.

I don't think this is a terrible idea. LLM-powered apps are here to stay, so browsers making them better is a good thing. Using a local model so queries aren't flying around to random third parties is better for privacy and security. If Google can make this work well it could be really interesting.

Re: Chrome is adding `window.ai` – a Gemini Nano AI model right inside the browser

#37

AI brain rot continues but now it's reaching unimaginable levels and infecting browser APIs, wow!

Do you have a specific objection to this feature's technical merit or is this a kneejerk to seeing "AI" in the headline?

It’s even a stretch of the popular definition of “brain rot”. Bandwagoning at its finest.

Re: Chrome is adding `window.ai` – a Gemini Nano AI model right inside the browser

#38
post #29

How the great have fallen. Google announces browser embedded AI and receives nothing but rightful hate and resentment.

Google quite rightfully cares very little about what Hacker News has to say anything.

Re: Chrome is adding `window.ai` – a Gemini Nano AI model right inside the browser

#40
YES!!! Back when Opera was adding a local AI to their browser UI, I had explained how I wanted it to be exposed as an API, as it seems like one of the few ACTUAL good uses for a user agent API: letting me choose which model I am using and where my data is going, rather than the website I am using (which inherently will require standardizing an API surface in the browser websites can use instead of trying to compete for scant memory resources by bringing their own local model or shipping my data off to some remote API).

https://news.ycombinator.com/item?id=39920803

> So while I am usually the person who would much rather the browser do almost nothing that isn't a hardware interface, requiring all software (including rendering) to be distributed as code by the website via the end-to-end principal--making the browser easy to implement and easy to secure / sandbox, as it is simply too important of an attack surface to have a billion file format parsing algorithms embedded within it--I actually would love (and I realize this isn't what Opera is doing, at least yet) to have the browser provide a way to get access to a user-selected LLM: the API surface for them--opaque text streaming in both directions--is sufficiently universal that I don't feel bad about the semantic lock-in and I just don't see any reasonable way to do this via the end-to-end principal that preserves user control over tradeoffs in privacy, functionality, and cost... if I go to a website that uses an LLM I should be the one choosing which LLM it is using, NOT the website!!, and if I want it to use some local model or the world's most powerful cloud model, I 1) should be in control of that selection and 2) pretty much have to be for local models to be feasible at all as I can't sit around downloading and caching gigabytes of data, separately, from every service that might make use of an LLM. (edit: Ok, in thinking about it a lot more maybe it makes more sense for this to be a separate daemon run next to the web browser--even if it comes with the web browser--which merely provides a localhost HTTP interface to the LLM, so it can also be shared by native apps... though, I am then unsure how web applications would be able to access them securely due to all of the security restrictions on cross-origin insecure port access.)

Post reply on HN