BookBot · language and creative choices

BookBot

How can the same collection of words
produce different writing?

And what makes an output worth keeping?

Paper first. Then a Toy language model.

Working with Gen AI · Unit 1 · Lesson 31
Warm-up · 5 minutes

the robot paints a ______

Write one word. Then we tally the room.

Which words appeared often? Which appeared once?

A distribution shows how the choices are spread.

Working with Gen AI · Unit 1 · Lesson 32
BookBot · 12 minutes across the next four slides

Six lines. Our whole book.

the robot paints a moon .
the robot paints a star .
the robot folds a map .
the fox paints a moon .
the fox folds a map .
the robot paints a moon .

Count repeats. Treat the period as a token.
Never count across a line break.

Working with Gen AI · Unit 1 · Lesson 33
BookBot · language and creative choices

What follows a?

Find every occurrence. Keep the repeats.

Next wordTallyCount
moon 
map 
star 
Working with Gen AI · Unit 1 · Lesson 34
BookBot · language and creative choices

The counting is ready

Current wordEvery next word, repeats kept
therobot, robot, robot, fox, fox, robot
robotpaints, paints, folds, paints
foxpaints, folds
paintsa, a, a, a
foldsa, a
amoon, star, map, moon, map, moon
moon · star · map. (always)
Working with Gen AI · Unit 1 · Lesson 35
BookBot · language and creative choices

Always take the most common next word

Start at the. Read its row.
Write the most common next word. Repeat.

the????.

Stop at the period. Record your sentence.

Working with Gen AI · Unit 1 · Lesson 36
The catch · 5 minutes

Why did we get the same sentence?

the robot paints a moon .

Same book. Same start. Same selection rule.

What if another next word gets a chance?

The computer can count the patterns.
We can investigate how it chooses among them.

Working with Gen AI · Unit 1 · Lesson 37
Setup · 8 minutes across two slides

The Toy model

Machine Learning for Kids · generating text · Toy

BookBotOn screen
Our bookCorpus: the text we supply
Current wordSmallest context setting
Always take the most commonTemperature: change how strongly common options are favored
Working with Gen AI · Unit 1 · Lesson 38
BookBot · language and creative choices

Our shared starting point

Open the activity and copy the corpus

Use the smallest context setting.
Keep top-p at the high end.

Starting text: the robot

The Toy model continues this text.
Restore the same start before every run.

Working with Gen AI · Unit 1 · Lesson 39
Experiment · 20 minutes across two slides

One change: temperature

Condition A

Temperature toward low.
Generate 3 times.

Condition B

Temperature toward high.
Generate 3 times.

Keep corpus, starting text, context and top-p fixed.

Predict first. Screenshot the settings for A and B.

Working with Gen AI · Unit 1 · Lesson 310
BookBot · language and creative choices

What actually changed?

Screenshot every run.
Copy the first 10 generated words from A1 and B1.

  • Which words or phrases repeat?
  • Which combinations surprise you?
  • Which phrases could you use—and for what?

Loops and identical outputs are evidence too.

Working with Gen AI · Unit 1 · Lesson 311
Creative decision · 8 minutes

A title for an imaginary artwork

Imagine an artwork: a robot’s nighttime garden.

Choose a phrase you generated.
Keep it, edit it, or replace it as the artwork’s title.

My final title is ______.
I chose / changed ______ because ______.

Keep the original phrase beside your final version.

Working with Gen AI · Unit 1 · Lesson 312
Reflection + submission · 7 minutes

A claim your evidence supports

I changed ______ and kept ______ fixed.
I observed ______.
My evidence is ______.
This does not establish ______.

What did you decide that the model did not?

Working with Gen AI · Unit 1 · Lesson 313
BookBot · language and creative choices

Your experiment and your title

  • A photo of both pages of your activity sheet
  • Your A/B settings and run screenshots
  • Your final title and claim, typed in Classroom

Filename: Lastname-U1D3

Working with Gen AI · Unit 1 · Lesson 314
BookBot · language and creative choices

What changes with a different model?

Today: one model, different settings.
Next: the same task, different models.

Bring a task you care about.
Decide what a useful result would look like.

← Unit 1Activity + corpusPoster templates
This deck is built for a projector.Slides are a fixed 1920×1080 canvas, so text is tiny on a phone. Open it on a laptop or the classroom display. The worksheet reads fine on a phone.
← → navigate · N notes · F fullscreen