# Chapter 1: What AI is

Part of the course “AI from Zero to Autonomous Agents” (https://llm.yoga/en). Page for humans: https://llm.yoga/en/01-was-ist-ki

*From rules to learned patterns: AI, machine learning, neural networks, foundation models and language models, clearly told apart.*

About 25 min to read · about 20 min hands-on exercise

**Start with the missions**

This chapter also comes as 3 short missions with a case, a decision and feedback, about 10 minutes each:

- [1.1 Does the chatbot know our price list now?](https://llm.yoga/en/einsatz-1-1.md)
- [1.2 Which lead will buy, and is this a job for a language model?](https://llm.yoga/en/einsatz-1-2.md)
- [1.3 Gemini or Gemma for the tax firm?](https://llm.yoga/en/einsatz-1-3.md)

For agents, this page is split into 3 parts so that each part can be fetched in full. Read the parts the question needs.

## Parts

### Part 1: https://llm.yoga/en/01-was-ist-ki-1.md

- **Getting started**: Imagine you have to teach a child to tell dogs from cats.
- **One term inside another: AI, machine learning, deep learning**: The term artificial intelligence comes from a research proposal dated August 31, 1955.
- **How machines learn: supervised, unsupervised, reinforcement**: Machine learning comes in three basic forms.
- **What a model is: training and inference**: A model in the machine learning sense is a function: data goes in, a prediction comes out.

### Part 2: https://llm.yoga/en/01-was-ist-ki-2.md

- **Neural networks and parameters as adjusting screws**: Artificial neural networks are loosely inspired by the brain.
- **Why this needs graphics cards**: A dense language model computes with all of its parameters for every word it generates.
- **Language as data: NLP**: NLP (natural language processing) is the field in which computers process human language: analyzing texts, detecting sentiment, translating, understanding spoken commands, generating language.
- **Generative AI, foundation models and LLMs**: Until a few years ago, you built a separate model for each task: one for spam, one for translation, one for sentiment.

### Part 3: https://llm.yoga/en/01-was-ist-ki-3.md

- **Open and closed weights: Gemini and Gemma**: Once a model is fully trained, its parameters are one big file.
- **Exercise: query an open model and place its size**: Goal: you experience inference with a model whose weights are on your disk, read its key figures, and count the parameters of a small network yourself.
- **Common misconceptions**: AI and ChatGPT are the same thing.
- **Review questions**: 1. A network has 10 inputs, two hidden layers with 8 neurons each, and 3 outputs, all layers fully connected.
- **Go further**: McCarthy, Minsky, Rochester, Shannon: A Proposal for the Dartmouth Summer Research Project on Artificial Intelligence (August 31, 1955), the proposal that brought the term into the world.
