How AI Assistants Work
Chapters and transcript
How AI Assistants Work You type a question into an AI assistant. Your words travel to a computer far away. A moment later, a smooth, confident answer comes back. But is it true? And where did your words go? In this lesson, you will learn how AI assistants work, why they make mistakes, and what happens to the information you type.
What a language model is Most AI assistants are built on a large language model, or LLM. It is a computer program that has learned patterns from a very large amount of text. That text includes books, websites, and code.
What a language model is Its main job is simple. It predicts the next piece of text. You write a prompt. The model looks at your words and predicts the next small piece, called a token. Piece by piece, it writes the response. It is like predictive text on your phone. Type see you, and it suggests tomorrow. A language model is just far larger.
Useful words Here are some useful words. Training is how the model learns patterns, before you ever use it. The prompt is the text you give it. The response is what it writes back. A token is a short word or part of a word. And the context window is all the text it can consider at one time, including earlier messages and attached files.
Why AI makes mistakes The model does not understand the world like a person. It produces text that fits the pattern. So it can give a hallucination. That is an answer that sounds confident, but is wrong or made up. For example, a court case that does not exist, a web address that leads nowhere, or a wrong number in a summary.
Why AI makes mistakes Watch this chat. A user asks for a court case to support a report. The assistant gives a case name and a page number. The user asks, are you sure? The assistant says yes, it is certain. But the case may not exist at all. The model is not lying on purpose. Asking are you sure does not fix it. Only a trusted source can.
Why AI makes mistakes There are other reasons an answer can be wrong. Old knowledge. The model learns from text up to its training cutoff, so it may not know recent events. Bias, repeated from unfair training text. Missing context, because it does not know your company unless you tell it. And pleasing the user. If your question holds a wrong idea, it may simply go along with it.
Quick check Quick check. An AI assistant gives you a web address for a supplier support page, and a price from their catalogue. You need both for an email to your manager. What should you do? Take a moment, then choose.
What data the AI sees Now follow your data. The model does not run on your laptop. Your prompt and any attached files travel over the internet to the provider servers. The provider receives everything you type. The response comes back to you. And depending on the service, your chat may be stored in chat history.
What data the AI sees So ask four questions about any AI service. Is my chat history stored? Stored chats can be read by anyone who gets into your account. Is my data used to train future models? Can staff at the provider review chats? And where is the data stored, and for how long? That can matter for company policy and data protection rules.
What data the AI sees The answers depend on the plan. Business and enterprise plans often give stronger promises, such as not using your data for training. Free consumer versions may have different terms. So do not assume. Read the settings and the privacy policy, and follow your company rules.
Check your settings Here is what checking looks like. In this example AI tool, the user opens the data settings. Chat history is on, and chats are used to improve the model. The user does not need that, so they turn off training. Every service is different, and some may not allow it. But always look.
Assistants and agents Many newer tools can do much more than chat. The assistant can search the web and read pages. It can read your email and files through connectors. An agent can even take actions, like sending an email for you. Some of that outside text may be written by an attacker. So remember the rule. The more an AI tool can read and do, the more care it needs.
What to do Use these habits every time. Treat every answer as a draft. Check facts, names, numbers and links in a trusted source. Know which tool you are using, free or company approved. Look at the privacy settings. Think before you connect your email or files. And ask for sources, then open them.
Key takeaways Let us put it together. A language model predicts the next piece of text. It can hallucinate, so its output is a draft, not a fact. What you type goes to the provider servers. And the more a tool can read and do, the more care it needs. In the next lesson, you will learn what never to paste into an AI tool at work.
AI assistants such as chatbots and writing helpers are now part of daily work for many people. To use them safely, you first need a simple picture of how they work, why they make mistakes, and where your information goes when you type it in.
What a language model is
Most AI assistants are built on a large language model, often called an LLM. A language model is a computer program that has learned patterns from a very large amount of text, such as books, websites and code.
The main job of a language model is simple to describe: it predicts the next piece of text. When you write a question, the model looks at your words and produces the answer one small piece at a time. Each piece is called a token. A token is usually a short word or part of a word.
Think of the predictive text feature on your phone keyboard. When you type "See you", the phone may suggest "tomorrow". A language model does something similar, but it is far larger and has learned from much more text, so it can write whole paragraphs, summaries, emails and code.
Some useful words:
- Training: the process where the model learns patterns from a large collection of text. This happens before you ever use it.
- Prompt: the text you give the model, such as a question or an instruction.
- Response or output: the text the model writes back.
- Context window: the amount of text the model can consider at one time. This includes your prompt, earlier messages in the chat, and any files you attach.
A language model does not "understand" the world the way a person does. It is very good at producing text that sounds natural and fits the pattern of your request. This is useful, but it also explains many of its weaknesses.
Why AI makes mistakes
Because the model predicts likely text, it can produce answers that sound confident but are wrong. This is called a hallucination. The model is not lying on purpose. It is simply producing words that fit the pattern, even when no real fact supports them.
Common examples of hallucinations:
- A book, research paper or court case that does not exist
- A website address that looks real but leads nowhere
- A wrong number in a calculation or a summary
- A command or software setting that does not exist
- A quote that the named person never said
Other reasons AI output can be wrong:
- Old knowledge. A model learns from text collected up to a certain date, called its training cutoff. It may not know about recent events, new laws or new software versions unless the tool can search the web.
- Bias. If the training text contained unfair or one-sided views, the model can repeat them.
- Missing context. The model does not know your company, your customers or your local rules unless you tell it.
- Pleasing the user. Models are often tuned to be helpful. If your question contains a wrong idea, the model may go along with it instead of correcting you.
The key lesson is this: AI output is a draft, not a fact. Asking the model "Are you sure?" does not fix the problem, because it can confidently confirm a wrong answer. Check important facts in a trusted source.
What data the AI sees
When you use an AI assistant in a browser or app, your prompt is usually sent over the internet to the provider's servers. The model runs there, not on your phone or laptop. The response is then sent back to you.
This means the provider receives everything you type or upload. What happens next depends on the service:
| Question to ask | Why it matters |
|---|---|
| Is my chat history stored? | Stored chats can be read by anyone who gets into your account. |
| Is my data used to train future models? | Some free or personal services may use chats for training unless you turn it off. |
| Can staff at the provider review chats? | Some services review samples for safety or quality. |
| Where is the data stored, and for how long? | This can matter for company policy and data protection rules. |
Business and enterprise plans often give stronger promises, such as not using your data for training. Free consumer versions may have different terms. Do not assume. Read the settings and the privacy policy, and follow your company's rules.
Remember that the model also sees everything in its context window. If you attach a document, paste an email or connect the assistant to your files, all of that text is sent to the model too.
Assistants, plugins and agents
Simple chatbots only read your message and write a reply. Many newer tools can do much more:
- Web search: the assistant fetches web pages and reads them before answering.
- File and email access: the assistant can read your documents, mailbox or calendar.
- Plugins or connectors: add-ons that link the assistant to other services.
- Agents: assistants that can take actions on their own, such as sending an email, booking a meeting, running code or changing a file.
Each new ability makes the tool more useful, but it also means the model reads more text from outside sources and can do more things. Some of that outside text may be written by an attacker. You will learn about this risk, called prompt injection, later in this path.
A simple rule: the more an AI tool can read and do, the more care it needs.
What to do
Use these habits every time you work with an AI assistant:
- Treat every answer as a draft. Read it carefully before you use, send or publish it.
- Check facts, names, numbers and links in a trusted source, especially for legal, medical, financial or technical topics.
- Know which tool you are using. Is it a free public service or a company-approved business tool? The rules for your data may be very different.
- Look at the privacy settings. Find out if chat history is saved and if it is used for training. Turn off what you do not need, if the service allows it.
- Think before you connect. Only give an assistant access to your email, files or accounts if you understand what it will be able to read and do.
- Ask for sources, then open them. If the tool gives references, check that each one exists and says what the AI claims.
In the next lesson, you will learn what information should never be typed into an AI tool at work, and how to use AI in a way your company and customers can trust.
Check your understanding
Answer every question correctly to complete this lesson. If you miss one, try the quiz again.
1. An AI assistant gives you a court case name and a page number to support your report. What should you do before using it?
2. What is a large language model mainly trained to do?
3. You paste a customer list into a free public AI chatbot. Which statement is most accurate?
Locked: answer every quiz question above correctly to complete this lesson.
Spotted a mistake or something unclear? Report a mistake