> Documentation index: https://web.dev/explore/ai/llms.txt

![](http://web.dev/static/explore/ai/cover.png)

### AI and the Web

The future of the web is now. Understand how AI and machine learning can be used by developers to build a more powerful web experience. [![](http://web.dev/static/articles/ai-overview/image/cover.jpg)](http://web.dev/articles/ai-overview.md.txt)

### [What is AI?](http://web.dev/articles/ai-overview.md.txt)

Understand the basics and definitions of the various emerging technologies, often referred to as AI. [Read the doc](http://web.dev/articles/ai-overview.md.txt) [![](http://web.dev/static/articles/ai-ethics/image/cover.jpg)](http://web.dev/articles/ai-ethics.md.txt)

### [Ethics and AI](http://web.dev/articles/ai-ethics.md.txt)

As web practitioners, it's critical that we build new technology thoughtfully and responsibly. [Read the doc](http://web.dev/articles/ai-ethics.md.txt) [![](http://web.dev/static/articles/right-sized-ai/image/cover.png)](http://web.dev/articles/right-sized-ai.md.txt)

### [Right-sized AI](http://web.dev/articles/right-sized-ai.md.txt)

Pick the best model size and delivery for your use case. It's good for business, users, and the planet. [Read the doc](http://web.dev/articles/right-sized-ai.md.txt) [![](http://web.dev/static/learn/ai/card.png)](http://web.dev/learn/ai.md.txt) COURSE

### [New to AI?](http://web.dev/learn/ai.md.txt)

In this course, we introduce blueprints for web developers to build AI features responsibly. Learn how to define your use case, pick a platform, and effectviely prompt with generative AI. [Start learning](http://web.dev/learn/ai.md.txt)

## Practical tips

### [Understand LLM sizes](http://web.dev/articles/llm-sizes.md.txt)

Take a look at a few real-world LLMs and the practical implications of different model sizes. [Read the doc](http://web.dev/articles/llm-sizes.md.txt)

### [Compare model capabilities](http://web.dev/articles/test-llm-capabilities.md.txt)

Evaluate models and prompts with the LLM as a judge technique. Delegate validation to another LLM, instead of humans. [Read the doc](http://web.dev/articles/test-llm-capabilities.md.txt)

### [Choose a small, efficient model](http://web.dev/articles/right-sized-ai.md.txt)

We've outlined different model types so you can choose a right-sized, sustainable model for your application. [Read the doc](http://web.dev/articles/right-sized-ai.md.txt)

### [Improve performance and UX for client-side AI](http://web.dev/articles/client-side-ai-performance.md.txt)

Discover benefits such as low latency, reduced server-side costs, no API key requirements, increased user privacy, and offline access. [Read the doc](http://web.dev/articles/client-side-ai-performance.md.txt)

### [Better prompt engineering](http://web.dev/articles/practical-prompt-engineering.md.txt)

Craft questions to get the best possible output from an LLM. [Read the doc](http://web.dev/articles/practical-prompt-engineering.md.txt)

### [Cache models in the browser](https://developer.chrome.com/docs/ai/cache-models)

Help your applications launch faster by caching the the model on-device. [Read the doc](https://developer.chrome.com/docs/ai/cache-models)

### [Download AI models with the Background Fetch API](http://web.dev/articles/background-fetch-ai.md.txt)

Improve the user experience of downloading large AI models with a progressive enhancement. [Read the doc](http://web.dev/articles/background-fetch-ai.md.txt) [![](http://web.dev/static/explore/ai/learn-ai-evals-cards.png)](http://developer.chrome.com/docs/ai/evals) COURSE

### [Test your AI applications](http://developer.chrome.com/docs/ai/evals)

Stop relying on intuition. Use measurements and data to evaluate your AI applications with evaluations. [Start learning](http://developer.chrome.com/docs/ai/evals)

## Agents

### [Introduction to agents](http://web.dev/articles/ai-agents.md.txt)

AI agents are the latest web user that benefits from your optimization. [Read the doc](http://web.dev/articles/ai-agents.md.txt)

### [Build agent-friendly websites](http://web.dev/articles/ai-agent-site-ux.md.txt)

When designing your websites for agents and humans, you can follow similar best practices. [Read the doc](http://web.dev/articles/ai-agent-site-ux.md.txt)

## Start building

### [Upgrade your site search](http://web.dev/articles/ai-rag-search.md.txt)

Discover techniques to get contextual results from generative AI, at-scale. [Start building](http://web.dev/articles/ai-rag-search.md.txt)

### [Part 1: Client-side AI to combat online toxicity](http://web.dev/articles/ai-detect-toxicity-context.md.txt)

Why toxicity detection matters and how you can use client-side AI to mitigate toxicity at its source. [Start building](http://web.dev/articles/ai-detect-toxicity-context.md.txt)

### [Part 2: Build client-side AI toxicity detection](http://web.dev/articles/ai-detect-toxicity-build.md.txt)

Learn how to build a client-side AI system to detect and mitigate toxicity at its source. [Start building](http://web.dev/articles/ai-detect-toxicity-build.md.txt)

### [Product review suggestions](http://web.dev/articles/improve-reviews-ai.md.txt)

Online stores can see a 270% increase in conversions by displaying product reviews. Support better reviews with client-side AI. [Start building](http://web.dev/articles/improve-reviews-ai.md.txt)

### [Benefits and limits of large language models](http://web.dev/articles/ai-llms-benefits.md.txt)

Describe. [Start building](http://web.dev/articles/ai-llms-benefits.md.txt)

### [Build a chatbot with WebLLM](http://web.dev/articles/ai-chatbot-webllm.md.txt)

WebLLM combines WebAssembly and WebGPU to perform on-device inference. Build a local and offline-capable chatbot in a classic to-do list application. [Start building](http://web.dev/articles/ai-chatbot-webllm.md.txt)

### [Build a chatbot with the Prompt API](http://web.dev/articles/ai-chatbot-promptapi.md.txt)

Build a local and offline-capable chatbot in a classic to-do list application with an exploratory API from Google Chrome, the Prompt API. [Start building](http://web.dev/articles/ai-chatbot-promptapi.md.txt) ![Gemini on the web.](https://web.dev/static/explore/ai/gemini-logo.svg) [Start with Gemini](https://ai.google.dev/gemini-api/docs/quickstart?lang=node)

### [Gemini on the web](https://ai.google.dev/gemini-api/docs/quickstart?lang=node)

Learn how to access the Gemini API on the web, with the Google AI JavaScript SDK. [Get started](https://ai.google.dev/gemini-api/docs/quickstart?lang=node) [The foundation model in Chrome](https://developer.chrome.com/docs/ai/built-in)

### [Generative AI samples](https://ai.google.dev/gemini-api/cookbook)

Discover example code and prompts for the Gemini API. [Cookbook](https://ai.google.dev/gemini-api/cookbook) [Prompt gallery](https://ai.google.dev/gemini-api/prompts)

### [Responsible AI toolkit](https://ai.google.dev/responsible)

Learn how to use AI responsibly, with best practices and resources. [Learn more](https://ai.google.dev/responsible) ![](http://web.dev/static/explore/ai/chrome.svg)

## AI on Chrome

Discover Google Chrome's documentation for AI, WebGPU, and WebAssembly. [Read the docs](https://developer.chrome.com/docs/ai)

### [Built-in AI APIs](https://developer.chrome.com/docs/ai/built-in-apis)

Execute our most efficient model of the Gemini in Chrome, on-device.

### [Discover Console Insights](https://developer.chrome.com/docs/devtools/console/understand-messages)

Ask Gemini to provide insights right in the DevTools Console, so you can better understand errors and warnings.

### [Use client-side AI](https://developer.chrome.com/docs/ai/client-side)

Client-side AI brings powerful models to users, while protecting data privacy and improving latency.

### [Supercharge Web AI model testing](https://developer.chrome.com/blog/supercharge-web-ai-testing)

Setting up a consistent testing environment with GPUs can be harder than expected. See the problems we faced and how we solved them, to improve your application performance.

## Watch to learn

Watch these videos to learn AI fundamentals and discover TensorFlow JS. [Video](https://www.youtube.com/watch?v=TuYbgZ59Kpg)

### [Machine Learning for web practitioners](https://www.youtube.com/watch?v=TuYbgZ59Kpg&list=PLOU2XLYxmsILr3HQpqjLAUkIPa5EaZiui&index=1)

This introduction is aimed creatives, web developers, and JavaScript practitioners interested in using machine learning in their next project or idea. [Watch on YouTube](https://www.youtube.com/watch?v=TuYbgZ59Kpg&list=PLOU2XLYxmsILr3HQpqjLAUkIPa5EaZiui&index=1) [Video](https://www.youtube.com/watch?v=bOUfOOCFCrE)

### [AI, ML, and Deep Learning](https://www.youtube.com/watch?v=bOUfOOCFCrE&list=PLOU2XLYxmsILr3HQpqjLAUkIPa5EaZiui&index=4)

Learn the foundations and definitions for some of the industry's most used buzzwords, and what they actually refer to. [Watch on YouTube](https://www.youtube.com/watch?v=bOUfOOCFCrE&list=PLOU2XLYxmsILr3HQpqjLAUkIPa5EaZiui&index=4) [Video](https://www.youtube.com/watch?v=iTlj3gMYzw8)

### [What are pre-trained models?](https://www.youtube.com/watch?v=iTlj3gMYzw8&list=PLOU2XLYxmsILr3HQpqjLAUkIPa5EaZiui&index=9)

Using pre-trained models can allow you to prototype an idea faster. In some cases, you can use these models in production. [Watch on YouTube](https://www.youtube.com/watch?v=iTlj3gMYzw8&list=PLOU2XLYxmsILr3HQpqjLAUkIPa5EaZiui&index=9)