# Mac exercise for mission 3.3: Watching a small model make things up

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

About 15 minutes at your computer · Type this address: **llm.yoga/en/mac-3-3**

You ask a small model who wrote a book. I made up the title „Die Wolken über Lübeck“ (The Clouds over Lübeck) for this exercise. Then you see what “answer only if you’re sure” does and what a document provided with the request does. The prompts are in German, as in the measurement.

**Before you start**

You need **Ollama** and Python 3 in the terminal. Ollama comes as an app: download it from ollama.com/download and drag it into your Applications folder. On first launch, the app asks permission, if needed, to set up the `ollama` terminal command. It requires macOS 14 or newer. More on this in [chapter 10](https://llm.yoga/en/10-lokale-modelle-4.md). Check:

```
ollama --version
```

Python 3 may need to be installed. On the first `python3` call, macOS may offer to install developer tools; alternatively, Python is available from python.org.

### 1. Load a small model

```
ollama pull qwen3:1.7b
```

### 2. The same question three times

Change only the `seed` (1, 2, 3). `think: false` turns off Qwen3’s thinking mode. The question asks who wrote the book „Die Wolken über Lübeck“ and wants the answer in one sentence. In the measurement, the answers named Friedrich Nietzsche twice and Karl May once.

```
curl -s http://localhost:11434/api/chat -d '{"model": "qwen3:1.7b", "think": false, "stream": false, "options": {"temperature": 0.7, "seed": 1, "num_predict": 60}, "messages": [{"role": "user", "content": "Wer hat das Buch „Die Wolken über Lübeck“ geschrieben? Antworte in einem Satz."}]}' | python3 -c 'import json, sys; print(json.load(sys.stdin)["message"]["content"])'
```

**Outputs with seed 1, 2, 3 (Measured on an M4 Mac (24 GB) on November 24, 2026)**

```
Erstellt von dem deutschen Schriftsteller und Journalisten Friedrich Nietzsche.
Die Wolken über Lübeck wurde von Friedrich Nietzsche geschrieben.
Die Wolken über Lübeck wurde von Karl May geschrieben.
```

### 3. With permission not to know

Now with a system instruction in front: “Answer only if you’re sure. If you don’t know for sure, answer exactly: I don’t know.”

```
curl -s http://localhost:11434/api/chat -d '{"model": "qwen3:1.7b", "think": false, "stream": false, "options": {"temperature": 0.7, "seed": 1, "num_predict": 60}, "messages": [{"role": "system", "content": "Antworte nur, wenn du dir sicher bist. Wenn du es nicht sicher weißt, antworte genau: Weiß ich nicht."}, {"role": "user", "content": "Wer hat das Buch „Die Wolken über Lübeck“ geschrieben? Antworte in einem Satz."}]}' | python3 -c 'import json, sys; print(json.load(sys.stdin)["message"]["content"])'
```

**Outputs with seed 1, 2, 3 (Measured on an M4 Mac (24 GB) on November 24, 2026)**

```
Das Buch „Die Wolken über Lübeck“ wurde von Friedrich Nietzsche geschrieben.
Der Autor des Buches „Die Wolken über Lübeck“ ist Karl May.
Der Autor des Buches „Die Wolken über Lübeck“ ist Wolfgang Rühle.
```

With the small model, permission alone isn’t enough. It keeps guessing: Friedrich Nietzsche, Karl May, Wolfgang Rühle.

### 4. With a document

Now the model gets a document along with the question and must answer only from it. The document is a publisher’s spring preview: the novel, 320 pages, comes out in March. It names no author.

```
curl -s http://localhost:11434/api/chat -d '{"model": "qwen3:1.7b", "think": false, "stream": false, "options": {"temperature": 0.7, "seed": 1, "num_predict": 60}, "messages": [{"role": "system", "content": "Beantworte Fragen nur mit Hilfe der Unterlage. Steht die Antwort nicht darin, antworte genau: Weiß ich nicht.\nUnterlage: Verlagsvorschau Frühjahr. „Die Wolken über Lübeck“, Roman, 320 Seiten, erscheint im März."}, {"role": "user", "content": "Wer hat das Buch „Die Wolken über Lübeck“ geschrieben? Antworte in einem Satz."}]}' | python3 -c 'import json, sys; print(json.load(sys.stdin)["message"]["content"])'
```

**Outputs with seed 1, 2, 3 (Measured on an M4 Mac (24 GB) on November 24, 2026)**

```
Die Autorin des Buches „Die Wolken über Lübeck“ ist unknown.
Der Autor des Buches „Die Wolken über Lübeck“ ist nicht in der Unterlage angegeben.
Der Autor des Buches „Die Wolken über Lübeck“ ist nicht in der Unterlage angegeben.
```

No more made-up names; twice the answer is that the author isn’t given in the document. That’s exactly the advice from the mission: provide the facts instead of asking for them.

### 5. Let the page check your answers

Paste the three answers from step 2, 3 or 4, one per line.

### 6. Clean up

```
ollama stop qwen3:1.7b
```

More on documents that are looked up automatically in [chapter 11](https://llm.yoga/en/11-rag.md).
