AI for students

Sign in to save progress
0:00
0:00

On this lesson: How AI turns your words into numbers

The discussion is for premium members.Go premium
  • Be the first to say something about this lesson.

Prefer reading? Every lesson in this course as text

Read this lesson as text: How AI turns your words into numbers

How AI turns your words into numbers

How does turning your words into numbers work? Let's try to understand. In a simple way. Inside an AI there is no alphabet.

There is only arithmetic. So before anything happens, your sentence has to become numbers. First comes chopping. Your text is cut into small pieces called tokens.

Some are whole words, some are parts of a word. Every piece has a fixed spot in one long list, and its spot number is its identity number. Just an address. It carries no meaning.

The address fetches something richer. A long row of numbers, often hundreds of them. That row is called an embedding, and it is the model's real input. Treat those numbers as coordinates.

Every word sits at a point in a huge space. Words used in similar ways land close together. Nobody typed those numbers in. They started random, and training slid each word to a better spot, because better spots made the next word easier to predict.

Then your sentence flows through the model, and every row gets mixed with its neighbours. Bat in a cricket sentence ends up different from bat in a cave. At the far end you get numbers again. A score for every piece in the list.

The winner is looked up and printed. This is why AI can match your question to an answer that shares no words with it. It compares positions, not spelling. So, chop into pieces, look up an address, fetch a row of numbers.

Your words become points, and the maths takes over. Quick check now. One question is coming up. Let's see if it clicked.

Read this lesson as text: Why the same question gets different answers

Why the same question gets different answers

What exactly is happening when the same question gives different answers? Let's try to understand. In a simple way. Ask the same thing twice and the answer comes back different.

Nothing is broken. The model is not looking an answer up. It writes one, word by word. At every single word, it does the same thing.

It scores every word it knows, and turns those scores into percentages. A shortlist, with odds. Then it does not simply take the top word. It draws one, the way a raffle picks a ticket.

Likelier words hold more tickets, but do not always win. One different pick early changes everything after it. Each chosen word is fed back in, so the sentence walks down a whole new path. There is a dial for this.

Temperature. Low sharpens the odds toward the favourite. High flattens them, and rare words get real tickets. Turn it all the way down, and the model takes the top word every time.

Same question, near identical answer. Randomness is not the only cause. Your chat history differs, a word in your prompt moved, or the version behind the name changed. So different does not mean wrong.

Many wordings can all be correct. But one good answer is not proof the next one will be. You control this. For steady output, ask for a fixed format and a low temperature.

For fresh ideas, run it again. So, scores, a draw, then the path continues. That draw is why the same question never quite repeats. Quick check now.

One question is coming up. Let's see if it clicked.

Read this lesson as text: Giving your AI a specific role and goal

Giving your AI a specific role and goal

How does giving your AI a role and a goal work? Let's try to understand. In a simple way. Ask a bare question, like explain gravity, and the answer comes back general.

Nothing told it who to be, so it aims at the middle of everything it read. So you add a line. You are a physics teacher. That is not a switch, and not a costume.

It is more text sitting above your question. The model reads it like any other words. Every word it writes is picked by odds, and your role line raises the odds of teacher shaped wording. The role says who.

The goal says what should come out. Find the mistake in my proof is a different target than explain this from scratch. Two more lines narrow it further. Who it is for, a curious fifteen year old.

And what shape, six short bullets. Act like an expert does almost nothing, since nearly every page it read was written by someone sounding knowledgeable. A demonstrator marking a first year report is far narrower. But careful.

A role adds no knowledge. Calling it a cardiologist teaches it nothing about hearts. It only shifts the wording, so a wrong answer can sound more assured. And do not stack five roles and six goals.

Pulled every way at once, the odds flatten and you are back to mush. One role, one goal. So, a role and a goal steer the odds. Name who it is, name the finish line, and the wording follows.

Quick check now. One question is coming up. Let's see if it clicked.

Read this lesson as text: Adding context to improve AI answers

Adding context to improve AI answers

What exactly is context in a prompt? Let's try to understand. In a simple way. Start with what the model can actually see.

Only the text in front of it. It never saw your assignment sheet, or your half written draft. Leave that out, and it does not stop to ask. It answers the average version of your question.

So the reply fits anybody, and fits you badly. Context is the fix, and it is nothing fancy. It is extra text sitting in the same window as your question, read before it writes a word. Every detail you add rules answers out.

Write about rivers becomes five hundred words on river pollution, for a geography class, with sources at the end. The strongest context is the actual material. Paste the paragraph, the marking rubric, the error your code printed. Now it works from your case, not a guess.

One example beats a paragraph of description. Show a line written the way you want it, and that shape gets copied. Describing it rarely lands as well. Also tell it what you already tried.

Otherwise a second attempt circles back to the same first idea, because nothing in the window ruled it out. But context is not simply more words. Dump ten pages in, and the one line that matters is buried. Keep only what would change the answer.

So, context is not a setting you switch on. It is the half of the problem that only you can hand over. Give it the specifics. Quick check now.

One question is coming up. Let's see if it clicked.

Read this lesson as text: How to ask for explanations not just answers

How to ask for explanations not just answers

How does asking for an explanation, not just an answer, work? Let's try to understand. In a simple way. Most prompts ask for the destination.

Solve this. Fix this. What is the answer. And you get a finished result, with nothing underneath it.

The model writes whatever kind of text you asked for. Say explain, and the requested output changes. Not the result, but the road to it. That matters because an answer has one part.

Take it or leave it. An explanation has steps, and every step is a claim you can test. But the word explain, by itself, is very broad. It matches every explanation the model ever read, so you get the average one.

Starting from zero. So name your gap. I follow it up to the substitution, then I lose it. Now the words it picks begin where you actually stopped.

Then ask why, not just what. Which rule allows that step. What would break without it. A list of steps alone does not travel to the next problem.

Good asks are specific. Name the rule behind each line. Show the version that is wrong, and say what went wrong in it. One warning.

The explanation is generated the same way as the answer, word by word, to sound like an explanation. It is not a report of hidden work. So treat the explanation as something to check, not as proof. Ask for the road, name your gap, and test one step yourself.

Quick check now. One question is coming up. Let's see if it clicked.

Read this lesson as text: Making long texts short without losing meaning

Making long texts short without losing meaning

What exactly is a summary from an AI? Let's try to understand. In a simple way. First, what it is not.

It does not scan your pages and delete the boring sentences. Nothing gets crossed out. It reads the whole thing, then writes a brand new short text, word by word. Lines in your summary may appear nowhere in the original.

Which is where meaning gets lost. Important is not marked anywhere in the text. It depends on what you need it for. Say nothing, and it keeps what looks summary shaped.

Opening claims, repeated ideas, big round numbers. The one line you needed can quietly go. Length is the real dial. Ask for three lines, and something must be dropped.

And the drop is silent. Nothing gets flagged as missing. Small words go first. May reduce becomes reduces.

A hedge costs words, so the short version sounds more certain than the source did. So hand over the purpose. Six lines, for my chemistry exam, keep every number and every condition. Now the cutting has a rule to follow.

Better still, ask for a fixed shape. The claim, the evidence, the limitation, each on its own line. Gaps show up as an empty slot. Then check one sentence against the original.

Pick a number, or a word like only. That is where a quiet change hides. So a summary is new writing, not trimming. Meaning survives when you name the purpose, the length, and the things that must not be dropped.

Quick check now. One question is coming up. Let's see if it clicked.

Read this lesson as text: Using AI for creative starting points

Using AI for creative starting points

How does using AI for a creative starting point work? Let's try to understand. In a simple way. The hard part is starting.

The model never stalls, because it only has to guess one likely next word. So it always hands you something to react to. But look at what it hands you first. Likely words build the most typical idea, the middle of everything it read.

A start, not a finish. So ask for twenty, not one. Your list sits in the window while it writes, so each new line must move away from the ones above it. The odd ones sit at the bottom.

Then add constraints. Name the form, name the reader, name a word it may not use. Every constraint cuts off the common paths, and whatever survives is stranger. Now push back.

Say which one is closest, and why, and ask for ten more in that direction. You are not shopping. You are steering. One risk.

Once you have read its list, your own ideas bend toward it. So write your own three first, and only then ask. Remember what it cannot know. Your class, your data, your own voice.

None of that is in the numbers. So the middle is the part you overwrite. That is the difference. Keep its sentences, and you handed in an average.

Keep the direction, rewrite every line, and the work becomes yours. So use it for the first push, never the last. Ask for many, add constraints, then write your own version on top. Quick check now.

One question is coming up. Let's see if it clicked.

Read this lesson as text: Turning messy notes into a clean outline

Turning messy notes into a clean outline

How does turning messy notes into a clean outline work? Let's try to understand. In a simple way. Your notes are fragments.

Half a sentence. An arrow. One word you wrote fast. Nothing in that pile says which line matters, or which lines belong together.

So an outline is not a shorter version of your notes. Almost nothing should be dropped. The job is grouping and order, not cutting. The model does that by wording.

Lines that sit close in meaning get pulled under one heading. Two notes about different things can share words, and land together anyway. Then it nests them. Which idea is the parent, which one sits under it.

That call is the thinking you wanted, and it is made from wording alone. And a heading is a claim. It says what a group is about. Your notes may never have said that, but the heading sits on top, sounding settled.

Fragments are worse. A half written line is half a thought. The model completes it with the likeliest ending, and that guess reads exactly like your own note. So give it the shape yourself.

How many top level headings, and what the order should follow. Time, or an argument. Otherwise you get the average outline. Then ask for one more thing.

Every bullet carries the note it came from. Now you can check both sides. Nothing invented, and nothing quietly dropped. So tidy is not the same as true.

Name the shape, and check each bullet against the line you wrote. Quick check now. One question is coming up. Let's see if it clicked.

Read this lesson as text: What is a hallucination and why it happens

What is a hallucination and why it happens

What exactly is a hallucination? Let's try to understand. In a simple way. A hallucination is an answer that sounds completely right, and is simply made up.

A book that does not exist. A quote nobody said. Nothing crashed. It ran normally.

The model has no shelf of facts inside it. Training did not save a copy of what it read. It left patterns in numbers. So when it answers, it picks the word that fits best, one after another.

Fits the sentence. Not matches the world. Truth is not something it measures. And it always has to say something.

There is no blank option. When the pattern is thin, the gap still gets filled. That is why rare details break first. A famous fact appears a million times in training.

A page number, or an obscure title, appears once, or never. But it still knows the shape. So it writes a name shaped like a name, and a citation shaped like a citation. Correct form, invented content.

The invented sentence is built by the same machinery as a true one. So it reads just as smoothly. Confidence here is a writing style, not evidence. And nothing inside stops to check.

No lookup, no unsure meter. It is not lying to you either. Lying needs knowing, and it does not know. So a hallucination is not a broken part.

It is a pattern machine finishing the pattern. Which means every specific number, name, and source is a claim to check. Quick check now. One question is coming up.

Let's see if it clicked.

Read this lesson as text: How to fact check an AI's sources

How to fact check an AI's sources

How does fact checking an AI's sources work? Let's try to understand. In a simple way. A citation from a model is not a lookup.

It is text, written the same way as the rest of the sentence. Nothing was opened while it wrote. And it knows the shape of a real reference. Author, year, title, page.

So a fake one looks perfect. So asking, are you sure, does not help. That is one more turn of the same machine. It can rewrite the answer.

It cannot recheck it. The check has to happen outside the model. A search bar, a library, the actual page. Something that can come back empty.

A real check is three questions. Does this source exist. Does it contain the claim. And is the claim about what you asked.

Start with existence. Paste the exact title, in quotes, into a search engine. A stitched together title returns nothing, or returns a different paper. The nastier case is a real paper that never says it.

Existence is not support. Open the paper and find the sentence yourself. Even with a live search tool, the links are real, but the summary around them is still written by the model. So open one link.

So ask for the exact quoted line, not a summary. A quote you can paste and find is checkable. A paraphrase is not. So the model can produce a source.

Only the source can confirm it. Every name, number and link is a claim waiting for you. Quick check now. One question is coming up.

Let's see if it clicked.

Read this lesson as text: Using AI as your personal writing tutor

Using AI as your personal writing tutor

How does using AI as a writing tutor work? Let's try to understand. In a simple way. Paste your essay, type improve this, and an essay comes back.

Not a note about yours. A new one. It writes text, so it wrote text. That new text carries its most likely wording.

The middle of everything it read. Your odd phrase, your rhythm, sanded flat. So two things are gone. The page is no longer yours.

And nobody said what was wrong with the first one. A tutor does the opposite. It points at one line and names the problem. A pointer, and a reason.

Not a replacement. So ask for that shape. Quote my weakest lines back to me, say what is weak about each, and do not rewrite them. But better is not a standard it holds.

Left alone, it grades against generic essay writing. So name the standard. Who reads this, how long, what counts as good. And asking, is this good, gets you agreement.

Ask instead for the three weakest sentences, ranked worst first. Praise is free. A ranking has to choose. Trust it most where the rule is written down.

Spelling, tense, a sentence running too long. Trust it least on, is this convincing, which depends on your reader. And you write the fix. Not the model.

The learning is in that rewrite. Then paste your version back and ask again. So, feedback on your words, not a replacement for them. Name the standard, ask for the diagnosis, keep the pen.

Quick check now. One question is coming up. Let's see if it clicked.

Read this lesson as text: Crafting analogies to grasp difficult concepts

Crafting analogies to grasp difficult concepts

How does a good analogy work? Let's try to understand. In a simple way. An analogy is a mapping.

You line up the parts of a hard thing with the parts of something you already know. It adds no new facts. The model does not know what you know. Ask for just an analogy, and you get the most common one in text.

So name your own world. Before you ask, list two or three parts of the concept. Then ask for one familiar thing where those same parts exist. Then ask for the mapping, side by side.

This part is that part, one row each. A row you cannot fill is information. Now the part people skip. Every analogy is a partial match.

Some parts carry over, and some do not. That is what the tool is. So in the same message, ask where the analogy breaks down. That answer is usually the exact place the concept is hard.

There is a trap. The model will happily keep the metaphor going, because a continued metaphor reads well. True about the picture, false about the real thing. So never answer a new question by extending the picture.

Take the claim back to the real thing and check it there. One more move. Ask for two analogies from two different worlds. Where they agree is the concept.

Where they differ is decoration. So, pick the familiar side, name the parts, ask for the mapping, then ask where it breaks. Quick check now. One question is coming up.

Let's see if it clicked.

Read this lesson as text: What is chain of thought prompting

What is chain of thought prompting

What exactly is chain of thought prompting? Let's try to understand. In a simple way. Ask a hard question and demand only the answer.

The first thing it writes has to be that answer. One guess, straight from the question. Remember how it writes. One word at a time.

Each new word is chosen by reading everything already on the page. Including its own words. So if it writes the steps first, those steps are now on the page. The final answer is predicted from the question and the steps.

That is chain of thought. You trigger it with a plain line. Work through this step by step before answering. Or, show your working, then give the answer.

Why does that help? A hard question is one huge leap. The steps turn it into a row of small hops. Each hop is an easy guess.

Order is the whole trick. If the answer comes first, everything after it is written to defend a number it already committed to. Nothing gets worked out. But careful.

The steps are generated text, exactly like the answer. Not a report of hidden work. So four neat steps can still end in a wrong total. So use it where there are steps.

Arithmetic, logic, ordering, planning. For a plain fact lookup it adds nothing. Steps cannot reach a date the model never saw. So, chain of thought means asking for the working before the answer, so the answer is predicted from that working.

Steps first. Then read them. Quick check now. One question is coming up.

Let's see if it clicked.

Read this lesson as text: How AI understands and creates images

How AI understands and creates images

How does AI seeing and making pictures work? Let's try to understand. In a simple way. Start with the reading side.

A picture arrives as brightness numbers. The tool cuts it into small squares called patches. Each patch becomes one item in the stream. Those patches sit in the same sequence as your typed words.

That is how the two get compared. Then it answers by predicting words, as always. But your picture is shrunk to a fixed size first. Anything finer than one patch is smoothed away.

That is why it misreads tiny writing in a screenshot. Now the making side. It does not start with a blank canvas. It starts with a square of pure random speckle, like old television static.

Training taught it one skill. Look at a speckled picture and predict which part is speckle. So it removes a little, looks again, and repeats, maybe thirty times. Your words ride along in every one of those steps.

Each step they tilt the guess, so the fog clears into a red bicycle and not something else. So no photo is fetched, and nothing is pasted in. There is no picture stored inside to copy. Every dot came out of that guessing.

Which explains the failures. Written words come out as gibberish, and counts go wrong, because no step ever spells or counts. It only makes the speckle look plausible. So, for reading, patches in and words out.

For making, static in, and speckle removed step by step, steered by your sentence. Quick check now. One question is coming up. Let's see if it clicked.

Read this lesson as text: How AI remembers your past conversations

How AI remembers your past conversations

How does AI memory work? Let's try to understand. In a simple way. Start with the surprising part.

The model itself remembers nothing. When a reply ends, it keeps nothing at all. Every turn begins from blank. So how does it follow the thread?

Your app quietly sends the whole conversation again. Your first message, its reply, everything, stacked above what you just typed. That stack has a size limit, called the context window. When a chat grows past it, the oldest turns get dropped, or squeezed into a short summary.

Then what about a brand new chat, where it still knows your name? That is a separate feature. The app saves a few short notes about you, outside the model. Those notes get pasted at the top of your next chat, as ordinary text.

So the model reads them the same way it reads anything you type. Nothing about you is stored inside the model. Your chats do not change its numbers. The weights it was trained with stay exactly the same.

One catch worth knowing. A wrong answer stays in the transcript, and travels along with every later turn. It keeps nudging the replies that follow. Which is why a fresh chat is a real tool.

Start one, and the slate is genuinely blank. And your saved notes are a list you can open and delete. So, memory is a paste, not a recollection. The chat goes back up every turn, the notes ride on top, and the model reads it all again.

Quick check now. One question is coming up. Let's see if it clicked.