Skip to content

rominirani/chrome-built-in-ai-experiments

Repository files navigation

Chrome Built-in AI Experiments

This repository captures some examples of using Built-in AI Experiments in Chrome Browser. The premise of of Chrome Built-in AI is to have access to AI models, including large language models (LLMs), directly into the browser. This keeps the processing local to the browser. Read about it over here.

Join the Early Access Preview Program

Sign up here for updates.

Install Chrome Canary first

The feature is currently available in Chrome Canary or Chrome Developer. I have been testing it out in the Chrome Canary version. Download it here

Installation Steps

Check out the following document that provides steps on activating the Built-in AI features inside the Chrome browser. Follow these steps carefully. This document highlights how to get the Prompt API enabled in the browser, that allows you to send Natural Language instructions to an instance of Gemini Nano in Chrome.

Other features

Apart from the Prompt API, there are various other APIs enabled and their individual documents that describe the feature, setting up the feature, sample code is listed below:

List of Experiments

Folder Name Application Blog Post
sentiment-analysis The Prompt API is used to process the reviews provided by the user and it is classified into positive or negative. Get Started with Chrome Built-in AI : Access Gemini Nano Model locall
bug-reporter The Prompt API is used to get the summary based on the bug description. There is a tooltip version that displays a tooltip with the summary, if you hover over the title or the description. Using Chrome Built-in AI Nano models to add AI features to existing Web Applications
summarizer This example uses the Summarization API to demonstrate how to generate summarization of different types: tl;dr,key-points, teaser, headline Chrome Built-in AI Experiments: Exploring the Summarization API
chrome-extension-summarizer This example uses the Summarization API via a Chrome Extension that is available as a side panel. It can be used to select any portion of text from a web page and then right-click, choose Summarize from the actions. This will open the Chrome Extension side panel and the results of the summarization will be displayed. Text Summarization Chrome Extension
chrome-extension-code-summarization This example uses the Prompt API via a Chrome Extension that is available as a side panel. It can be used to select any portion of code from a web page and then right-click, choose Explain this code from the actions. This will open the Chrome Extension side panel and the results of the code explanation will be displayed. Code Explanation Chrome Extension
language-demo This project demonstrates the usage of the language detection and language translation capabilities of Chrome Built-in AI. The demo lists a list of issues that have been reported by the users in their preferred languages. We first detect the language for each of the issues and then we translate it to English. -
hashtag-generator Work in Progress -
chat Work in Progress To be published

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published