You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_At the center of the bench lies the torso of a robot—an engineering marvel that has consumed months of effort. Its wooden frame is intricately carved, each joint meticulously designed for smooth movement._
@@ -75,7 +75,7 @@ It's dark and gloomy inside, the only light filtering through the grimy windows,
75
75
As your eyes adjust to the dim light, you notice a figure in the distance, waving at you. You walk towards him, your footsteps echoing on the wooden floor. The figure becomes clearer, and you recognize him from newspaper photos, it's Charles Babbage.
@@ -101,7 +101,7 @@ You awaken, disoriented. As your vision clears, an ancient city unfolds before y
101
101
People in togas move through the streets, their voices blending into a symphony of ancient dialects, air filled with the scent of exotic spices and the distant sound of merchants hawking their wares.
**You:** Surely, I must have hit my head, you think, closing your eyes and opening them again, scene remains unchanged.
@@ -113,7 +113,7 @@ Am I stuck in the past? Do I dare press that button again? Before you can decide
113
113
An elderly gentleman wearing a toga waves at you from the steps of the grand temple. His white hair and beard catch the sunlight, giving him an almost ethereal glow.
114
114
115
115
<div>
116
-
<imgsrc="./assets/dinocrates.png"alt="Dinocrates wearing a toga"width="300">
116
+
<imgsrc="/lessons/01-intro-to-genai/assets/dinocrates.png"alt="Dinocrates wearing a toga"width="300">
117
117
</div>
118
118
119
119
**Dinocrates:** "Welcome, traveler," he says warmly. "I am Dinocrates, architect of this great city. Your arrival was foretold."
@@ -145,7 +145,7 @@ A thought strikes you. Can the device understand me if I speak to it?
145
145
**You:** You're right, George is a good name, it was my father's name in fact.
146
146
147
147
<div>
148
-
<imgsrc="./assets/time-beetle.png"alt="Time travel device resembling a metallic beetle"width="300">
148
+
<imgsrc="/lessons/01-intro-to-genai/assets/time-beetle.png"alt="Time travel device resembling a metallic beetle"width="300">
149
149
</div>
150
150
151
151
_Time device, “George” the metallic beetle_
@@ -166,7 +166,7 @@ If you want to interact with Dinocrates, run the [Characters](/app/README.md) ap
166
166
> [Responsible AI disclaimer](../../README.md#responsible-ai-disclaimer)
167
167
168
168
<div>
169
-
<imgsrc="./assets/dinocrates.png"alt="Dinocrates wearing a toga"width="300">
169
+
<imgsrc="/lessons/01-intro-to-genai/assets/dinocrates.png"alt="Dinocrates wearing a toga"width="300">
170
170
</div>
171
171
172
172
**Steps**:
@@ -178,7 +178,7 @@ If you want to interact with Dinocrates, run the [Characters](/app/README.md) ap
178
178
5. Chat with Dinocrates.
179
179
180
180
> [!NOTE]
181
-
> If you're running the project locally on your machine, please review the QuickStart guide to get a [GitHub personal access](../../docs/setup/README.md#creating-a-personal-access-token-pat-for-github-model-access) token setup and replace the key in the code.
181
+
> If you're running the project locally on your machine, please review the QuickStart guide to get a [GitHub personal access](/docs/setup/README.md#creating-a-personal-access-token-pat-for-github-model-access) token setup and replace the key in the code.
Copy file name to clipboardExpand all lines: lessons/02-first-ai-app/README.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,15 +18,15 @@ _This video gives you an introduction to AI models called "large language models
18
18
19
19
*🎥 Click on the image above to watch a short video about large language models*
20
20
21
-
💼 Slides: [Introduction to large language models, LLMs](../../videos/slides/01-llms.pptx)
21
+
💼 Slides: [Introduction to large language models, LLMs](/videos/slides/01-llms.pptx)
22
22
23
23
## Narrative: Picture yourself in a boat on a river
24
24
25
25
26
26
> [!NOTE]
27
27
> _Our story so far: You are a maker of things, a craftsman from 1860s London who has traveled through time using a mysterious device called the Time Beetle. You've journeyed through the annals of history, witnessing the creation of the lighthouse at Alexandria, a marvel of ancient engineering you helped create with a little help from Dinocrates and the Time Beetle._
28
28
>
29
-
> See [Lesson 1](../01-intro-to-genai/README.md) if you want to catch up with the story from the beginning and get started with Generative AI.
29
+
> See [Lesson 1](/lessons/01-intro-to-genai/README.md) if you want to catch up with the story from the beginning and get started with Generative AI.
30
30
31
31
> [!NOTE]
32
32
> While we recommend going through the story (it's fun!), [click here](#interact-with-leonardo) if you'd prefer to jump straight to the technical content.
@@ -42,7 +42,7 @@ When you open your eyes, the world has shifted. As you manage to get up, you rea
42
42
Looking around the boat, you find a long oar resting against the side. Grasping it, you begin to row towards the distant buildings. As you get closer, the buildings come into sharper focus, they are old, their architecture reminiscent of a Renaissance painting.
43
43
44
44
<div>
45
-
<img src="./assets/boat.png" alt="Boat on the rive, man standing with a paddle" width=300" >
45
+
<img src="/lessons/02-first-ai-app/assets/boat.png" alt="Boat on the rive, man standing with a paddle" width=300" >
46
46
</div>
47
47
48
48
The question now is, where and when are you this time?
@@ -52,7 +52,7 @@ You manage to secure the boat at the dock and start walking along the wooden pla
52
52
As you walk, you notice a man with a long beard and a hat, digging through a crate of what looks like mechanical parts. His hands move deftly, sorting through gears and springs with practiced ease.
53
53
54
54
<div >
55
-
<imgsrc="./assets/leonardo.png"alt="Leonardo Da Vinci standing next to a crate in the harbour"width="300" >
55
+
<imgsrc="/lessons/02-first-ai-app/assets/leonardo.png"alt="Leonardo Da Vinci standing next to a crate in the harbour"width="300" >
56
56
</div>
57
57
58
58
### Help me, Leonardo
@@ -82,7 +82,7 @@ As you walk, you notice a man with a long beard and a hat, digging through a cra
@@ -139,7 +139,7 @@ If you want to interact with Leonardo, run the [Characters](/app/README.md) app.
139
139
For a more detailed explanation of the app, see [Detailed app explanation](/lessons/01-intro-to-genai/README.md#interact-with-dinocrates).
140
140
141
141
> [!NOTE]
142
-
> If you're running the project locally on your machine, please review the QuickStart guide to get a [GitHub personal access](../../docs/setup/README.md#creating-a-personal-access-token-pat-for-github-model-access) token setup and replace the key in the code.
142
+
> If you're running the project locally on your machine, please review the QuickStart guide to get a [GitHub personal access](/docs/setup/README.md#creating-a-personal-access-token-pat-for-github-model-access) token setup and replace the key in the code.
143
143
144
144
## Development environment setup
145
145
@@ -409,7 +409,7 @@ This means the majority of tokens can be spent on the input tokens, i.e 128k - 1
409
409
I want you to generate recipes for me.
410
410
```
411
411
412
-

412
+

413
413
414
414
Running `tokenizer` on the sentence above gives us 9 tokens.
415
415
@@ -462,7 +462,7 @@ Leonardo suddenly asked to inspect the Time Beetle closer, he looked at it from
Copy file name to clipboardExpand all lines: lessons/03-prompt-engineering/README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ _This video offers an introduction to improving your "prompting" skills, teachin
25
25
> [!NOTE]
26
26
> So far, you've been on a journey through time with Leonardo da Vinci, exploring the wonders of the Renaissance. You've encountered the Time Beetle, a mysterious device that allows you to travel through time and space.
27
27
>
28
-
> See [Lesson 1](../01-intro-to-genai/README.md) if you want to catch up with the story from the beginning.
28
+
> See [Lesson 1](/lessons/01-intro-to-genai/README.md) if you want to catch up with the story from the beginning.
29
29
30
30
> [!NOTE]
31
31
> While we recommend going through the story (it's fun!), [click here](#interact-with-sforza) if you'd prefer to jump straight to the technical content.
@@ -35,7 +35,7 @@ _This video offers an introduction to improving your "prompting" skills, teachin
35
35
Before you manage to press the button, the workshop doors slam open with a thunderous bang. A man stands in the doorway, broad-shouldered and dressed in expensive clothes, he waves a piece of paper in the air, yelling:
36
36
37
37
<div>
38
-
<imgsrc="./assets/ludovico.png"alt="An angry Ludovico Sforza busting in through the door"width="300">
38
+
<imgsrc="/lessons/03-prompt-engineering/assets/ludovico.png"alt="An angry Ludovico Sforza busting in through the door"width="300">
39
39
</div>
40
40
41
41
*Ludovico Sforza*
@@ -65,7 +65,7 @@ A swirl of colors envelops the carriage, the world around you dissolving into a
65
65
The swirl of colors fades, and you find yourself in the carriage, now racing down the Via Appia in Rome and to your astonishment, you're in the middle of a horse race. Chariots thunder past, their wheels kicking up clouds of dust.
66
66
67
67
<div>
68
-
<imgsrc="./assets/escape.png"alt="Escape from Rome"width="300">
68
+
<imgsrc="/lessons/03-prompt-engineering/assets/escape.png"alt="Escape from Rome"width="300">
69
69
</div>
70
70
71
71
**You:** Leonardo, where are we?
@@ -105,7 +105,7 @@ With a final push, the aerial screw begins to spin. The blades catch the air, an
105
105
You look out over the city; the ancient buildings stretch out below you.
106
106
107
107
<div>
108
-
<imgsrc="./assets/airborne.png"alt="Airborne, looks down at the city with feet dangling"width="300">
108
+
<imgsrc="/lessons/03-prompt-engineering/assets/airborne.png"alt="Airborne, looks down at the city with feet dangling"width="300">
109
109
</div>
110
110
111
111
## Interact with Sforza
@@ -117,7 +117,7 @@ If you want to interact with Sforza, run the [Characters](/app/README.md) app.
117
117
> [Responsible AI disclaimer](/README.md#responsible-ai-disclaimer)
## Narrative - Out of the frying pan and into the fire
26
26
27
27
> [!NOTE]
28
28
> _Our story so far: You, a mechanically trained engineer from 1860 and have been on a journey through time with Leonardo da Vinci. You've escaped Roman soldiers — or rather, you're in the process of escaping them— and you're desperately searching for a way to land the aeriel screw safely_.
29
29
>
30
-
> See [Lesson 1](../01-intro-to-genai/README.md) if you want to catch up with the story from the beginning.
30
+
> See [Lesson 1](/lessons/01-intro-to-genai/README.md) if you want to catch up with the story from the beginning.
31
31
32
32
> [!NOTE]
33
33
> While we recommend going through the story (it's fun!), [click here](#interact-with-montezuma) if you'd prefer to jump straight to the technical content.
@@ -47,7 +47,7 @@ The bright light from the Time Beetle fades, and you find yourself standing at t
47
47
The aerial screw, rests awkwardly on a large, intricately carved stone, with markings that look like a calendar
48
48
49
49
<div>
50
-
<imgalt="Aztec calendar, Wikipedia"src="./assets/aztec.png"width="300" />
50
+
<imgalt="Aztec calendar, Wikipedia"src="/lessons/04-structured-output/assets/aztec.png"width="300" />
51
51
</div>
52
52
53
53
_Aztec calendar, Wikipedia_
@@ -59,7 +59,7 @@ Leonardo da Vinci steps forward, his eyes wide with wonder.
59
59
Before you can react, a group of Aztec soldiers approaches.
60
60
61
61
<div>
62
-
<imgsrc="./assets/meeting.png"alt="Meeting with Aztecs"width="300" />
62
+
<imgsrc="/lessons/04-structured-output/assets/meeting.png"alt="Meeting with Aztecs"width="300" />
63
63
</div>
64
64
65
65
**Soldier leader:** "Who are you, and what have you done?" he demands in Nahuatl.
@@ -83,7 +83,7 @@ Upon reaching the top of the pyramid, you are led into a grand chamber where Mon
83
83
**Montezuma:** "Very well. I propose a game of [Patolli](#patolli). If I win the best of three games, you will give me your device and tell me how it works. If you win, you are free to go."
84
84
85
85
<div>
86
-
<imgsrc="./assets/game.png"alt="Playing a game of Patolli"width="300" />
86
+
<imgsrc="/lessons/04-structured-output/assets/game.png"alt="Playing a game of Patolli"width="300" />
87
87
</div>
88
88
89
89
The game begins, and the room falls silent, save for the sound of beans being rolled and pieces moving across the board.
@@ -115,7 +115,7 @@ With a final, decisive move, Leonardo wins the game. The room erupts in cheers a
115
115
> **Aztec Involvement**: Widely played by nobles and commoners, it was a favorite at Montezuma’s court. Beyond fun, it involved high-stakes gambling with bets like blankets, precious stones, or even freedom.
0 commit comments