Why this matters
You don’t need to be a mechanic to drive a car well. But you do need to know what the warning lights mean, why the car pulls to one side in the wet, and that the fuel gauge can be wrong when the tank is nearly empty.
AI is the same. Leaders don’t need the maths, but they need a working picture of the engine. Without one, every strange behaviour is a mystery: why the assistant invented a supplier’s address, why two staff got different answers to the same question, why it knows about a 2019 tax rule but not this year’s. With a working picture, those behaviours become predictable, and predictable risks can be managed. This lesson gives you that picture, without a single equation.
Learning objectives
Estimated time: about 21 minutes (a 9-minute video and about 12 minutes of reading).
By the end of this lesson, you will be able to:
- Explain in plain language how a large language model is built and why it writes so fluently.
- Explain why AI assistants can be confidently wrong, and why they give different answers to the same question.
- Tell the difference between what a model learned in training and what you give it in context, and what that means for your company’s information.
- Describe how tools and agents extend what AI can do, and the new risks they bring.

1. The engine: a machine that predicts the next word
At the heart of ChatGPT, Claude, Gemini, Copilot and similar assistants is a large language model (LLM). In lesson 1.3 we described AI as cheap prediction. An LLM is a prediction machine for text: given some words, it predicts the most likely next piece of a word (called a token), adds it, and repeats.
To learn this, the model is pretrained on an enormous amount of text: websites, books, articles and code. In his widely watched Intro to Large Language Models, the AI researcher Andrej Karpathy uses Meta’s Llama 2 model as an example. It was trained on roughly ten terabytes of text, using about 6,000 specialised chips for about twelve days, at a cost of around $2 million. The result was a single file of about 140 gigabytes. Karpathy describes it as a kind of “lossy compression” of the internet: the model keeps the patterns, not the pages.
Ethan Mollick, in Co-Intelligence, compares this to an apprentice chef who reads millions of recipes and slowly learns which ingredients go together, without ever memorising any single recipe. The patterns are stored as billions of numbers called weights, which nobody programs by hand.
This explains both the strength and the weakness. Because the model has absorbed the patterns of so much human writing, it writes fluently on almost any topic. Because it stores patterns rather than facts, it can produce something that sounds right but isn’t: a plausible address, a likely reference number, a court case that never happened. This is what people call hallucination.
Working example: a buyer asks an AI assistant for the head-office address of a mid-sized packaging supplier in Gqeberha. The assistant gives a confident street address. It is invented: the pattern of a South African address, not a fact.
Warning sign: staff use a general AI assistant as if it were a search engine or a database, for names, numbers, addresses or legal references, without checking the source.
2. From text predictor to helpful assistant
A freshly pretrained model is not yet an assistant. So companies fine-tune it: they train it further on examples of good questions and answers, and then use people to rate its responses. This is called reinforcement learning from human feedback. As lesson 1.3 showed, some of that rating work is done by low-paid workers in countries such as Kenya.
Fine-tuning shapes the assistant’s personality: polite, helpful and eager to give an answer. Mollick points out a side-effect. An assistant is, in effect, trying to give you an answer you will like, and that pull can be stronger than the pull to be accurate. Ask insistently about something it doesn’t know, and it may make something up rather than say “I don’t know”. Newer models do this much less, but not never.
Two more behaviours follow from how the engine works:
- Variation. Most assistants add a little randomness when choosing the next word. Ask the same question twice and you may get two different answers. Useful for ideas; risky for facts and figures.
- Sensitivity to wording. The answer depends heavily on how you ask, what you include, and even the order of your instructions. Lesson 2.3 turns this into practical habits.
Many assistants can now also “reason” step by step before answering, which improves accuracy on maths and logic. It is still prediction underneath.
Working example: two sales reps ask the same assistant to estimate the size of the frozen-food market in Gauteng. They get figures R4 billion apart. Neither figure came from a source; both were plausible predictions.
Warning sign: a team treats one AI answer as “the” answer, without asking for sources, re-running the question, or checking against a known figure.
3. Training versus context: what it knows and what you tell it
This is the single most useful idea for a business leader. An AI assistant has two kinds of knowledge:
- Training knowledge: everything it absorbed during pretraining. It is broad and general, but frozen at a cutoff date, and it contains nothing about your business that isn’t public.
- Context: everything in the current conversation: your question, any documents you paste or upload, earlier messages, and information it fetches with tools. This is the model’s working memory, and it is called the context window.
The model answers using both, but context is where you have control. If you want an accurate answer about your own price list, leave policy or contract, give it the document. Many business AI products do this automatically: they search your files for relevant passages and feed them into the context before the model answers. This is often called retrieval-augmented generation, or RAG, and it is how “chat with your documents” tools work.
Two practical consequences follow. First, the assistant does not “remember” your company between conversations unless the product is set up to store information. Second, what you put into the context goes to the AI provider. Whether it is stored, viewed or used to train future models depends on the product and plan. Business and enterprise plans usually promise not to train on your data; free consumer versions often allow it unless you switch it off.
Working example: a customer-service team asks an assistant about the company’s returns policy and gets a generic answer that sounds right but is wrong. When they upload the actual policy and ask again, the answer is accurate and quotes the right clause.
Warning sign: staff paste customer names, ID numbers, payslips or contracts into free AI tools, and no one knows the tool’s data settings.
4. Tools: from talking to doing
On its own, an LLM can only produce text. Modern assistants are connected to tools that let them do more:
- Web search, to find recent information beyond the training cutoff, with links you can check.
- Code and calculators, so that sums and data analysis are calculated rather than predicted. This fixes much of the “weak at maths” problem from lesson 1.3.
- File reading, for spreadsheets, PDFs and images, including photos of handwritten forms.
- Connectors to business systems such as email, calendars, accounting packages or a CRM.
Tool results go into the context. Tools make AI more accurate and useful, but they also let it see more of your business, so manage its access like any other system access.
Working example: a finance manager asks an assistant with a code tool to analyse a year of debtors data. It calculates the ageing exactly and flags three customers whose payment days have doubled.
Warning sign: an AI tool is connected to the company email or accounting system, and nobody has decided what it may read, and what it may change.
5. Agents: AI that works towards a goal
An agent is an AI system that is given a goal rather than a single question, and then plans, uses tools and takes further steps until the goal is reached. “Find the three cheapest compliant quotes for 2,000 cardboard boxes and draft an order” is an agent task.
The AI company Anthropic draws a useful distinction. In a workflow, people design the steps in advance and the AI does each step. In an agent, the AI decides the steps itself. Workflows are more predictable; agents are more flexible but harder to control. Most businesses should start with workflows.
Agents are improving fast (lesson 1.2 showed computer-use success rising from about 5% to 66% in a year), but they bring new risks. A small error early on can compound over many steps. An agent that can send emails or make payments can do real damage quickly. And an agent reading outside content, such as emails or web pages, can be tricked by hidden instructions planted there, an attack called prompt injection.
Working example: a distributor sets up an agent to chase overdue invoices. In the first version, it drafts reminder emails and a person approves them. After three months of accurate drafts, the team allows it to send first reminders on its own, but final demands still need a person.
Warning sign: an agent is given the power to send, pay, delete or change records, with no approval step, no limits, and no log of what it did.
How the parts work together
A next-word predictor, fine-tuned into an eager assistant, is fluent and sometimes confidently wrong. Its training knowledge is broad but frozen; the context you give it is specific and under your control. Tools let it search, calculate and connect to your systems, and agents chain all of this towards a goal. Each step adds usefulness, and each adds risk that a leader must manage.
Diagram: Inside an AI assistant. Training knowledge and the context window you control both feed a next-token prediction model. The model can use tools such as search, code, files and business systems, whose results go back into the context; an agent repeats this loop until its goal is met. A person checks the answer before it reaches a customer, money or a decision about a person. (Download: ai-enabled-company-ep2-inside-an-ai-assistant.png)
The South African angle
- Languages and tokens: models learn mostly from English text. They usually perform worse in African languages, and the same message often uses more tokens in isiZulu or Sesotho than in English, which can mean higher costs on paid plans. Test before relying on them.
- Where your data goes: most AI services process data overseas. POPIA section 72 sets conditions for sending personal information outside South Africa. Several major cloud providers now have South African data centres, so ask vendors where data is processed and stored.
- Connectivity: cloud AI needs a reliable connection. For critical processes, plan what happens during an outage.
- Free versus business plans: free tools are widely used in South African businesses. Check their data settings, or move important work to a business plan with clear data terms.
Hadeka Foods
Hadeka’s quality manager asked a free AI assistant to “list the allergens in Hadeka’s chicken pie”. It answered confidently, listing wheat, milk and egg. It had never seen the recipe; it had predicted a typical pie. The real pie also contains mustard. The answer came from training knowledge, not from Hadeka’s information.
The finance manager ran a second test with the company’s business AI plan. They uploaded the approved product specification (which contains no personal information) and asked the same question. The answer was correct and quoted the right line. The rule for the team: for anything about Hadeka, give the AI Hadeka’s documents, and check the answer.
The sales director then suggested an agent that would read WhatsApp orders and enter them straight into the system. The MD agreed to explore it, but as a workflow, not a free agent: the AI would read and structure each order, and a person would approve it before it went into the system.
In a larger organisation
Keep a register of approved AI models and tools, with each one’s data terms, where data is processed, and what systems it can access. Treat agent permissions like employee access rights: the least access needed, approval steps for anything that sends, pays or changes records, and full activity logs. Your information-security team should review every new connector.
Self-check
Score your organisation from 1 (not at all) to 5 (fully) on each statement.
- Our leaders can explain in plain language how an AI assistant produces an answer.
- Our staff know that AI can be confidently wrong, and check names, numbers and references.
- When we need answers about our own business, we give the AI our own documents.
- We know the data settings of every AI tool our staff use, including free ones.
- We decide what each AI tool or connector may read and what it may change.
- Any AI agent that can send, pay or change records has approval steps, limits and a log.
Key takeaways
- An LLM is a next-word predictor trained on vast text. That makes it fluent, and sometimes confidently wrong.
- Training knowledge is broad but frozen and generic. Context, what you give it, is where you have control.
- What you put into an AI tool goes to the provider. Know the data settings.
- Tools and agents make AI more useful and more risky. Start with workflows and approval steps.
Think about it
- Which questions do your staff ask AI that depend on training knowledge, but should depend on your own documents?
- If an AI agent in your business could send one kind of message without approval, which would be safest, and which would be most dangerous?
- Which AI tools are your staff using today, and who knows where the data goes?
Scoring guidance
Self-check: add your six scores (maximum 30).
- 24 to 30: a strong working picture. Use lesson 2.2 to map where AI helps and hurts in your own work.
- 15 to 23: a common position. Focus on statements 3 and 4: give AI your own documents, and know where your data goes.
- 6 to 14: start with statement 2. Share this lesson with your team and agree one simple rule: check every name, number and reference AI produces.
Think about it, what good answers include:
- Specific examples such as product specifications, prices, policies or contract terms, with a note on where the right document lives.
- A low-risk message (such as a delivery confirmation) contrasted with a high-risk one (such as a final demand, a price change or a payment), and the reason for the difference.
- A named list of tools, including personal and free ones, and an honest answer about who knows each tool’s data settings, which is often “no one”.
References
- Andrej Karpathy, Intro to Large Language Models (video, 2023)
- Ethan Mollick, Co-Intelligence: Living and Working with AI (Portfolio, 2024)
- Ajay Agrawal, Joshua Gans and Avi Goldfarb, Power and Prediction (Harvard Business Review Press, 2022)
- Anthropic, Building effective agents (2024)
- University of Helsinki and MinnaLearn, Elements of AI (free online course)
- Stanford HAI, AI Index Report 2026
- Protection of Personal Information Act (POPIA), section 72
Hadeka Foods is a fictional company. Rocksoup is a team of practitioners; if you would like help with AI in your business, contact us at rocksoup.co.za.
Read the transcript (Lerato and Peter, 9 minutes)
Opening
Lerato: Welcome back to Building an AI-enabled company. I’m Lerato.
Peter: And I’m Peter. This is lesson 2.1, the first lesson in Episode 2, AI literacy for leaders. Today: how do AI assistants and agents actually work?
Lerato: Peter, I’m not technical. Do I really need to know this?
Peter: Think about driving. You don’t need to be a mechanic. But you do need to know what the warning lights mean, and why the car slides on a wet road. Leaders need the same for AI: not the maths, but a working picture of the engine. Then the strange behaviour stops being a mystery, and you can manage it.
The engine
Lerato: So what is the engine?
Peter: Inside ChatGPT, Claude, Gemini or Copilot is a large language model, an LLM. In lesson 1.3 we said AI is cheap prediction. An LLM predicts text. You give it some words, it predicts the most likely next piece of a word, called a token, adds it, and does that again, and again.
Lerato: One token at a time? That’s how it writes a whole report?
Peter: One at a time, very fast. That’s all it’s doing underneath.
Lerato: And how does it learn what comes next?
Peter: By reading a staggering amount of text. That’s called pretraining. Andrej Karpathy, a well-known AI researcher, gives an example in his talk, Intro to Large Language Models. One of Meta’s models was trained on about ten terabytes of text, using about six thousand specialised chips for twelve days. It cost around two million dollars. And the result was one file of about a hundred and forty gigabytes.
Lerato: The internet squashed into a file.
Peter: That’s close to how he describes it: a lossy compression of the internet. It keeps the patterns, not the pages. Ethan Mollick, in Co-Intelligence, uses a nice picture: an apprentice chef who reads millions of recipes and learns which ingredients go together, without memorising any single recipe.
Lerato: Patterns, not pages. Why does that matter to me?
Peter: Because it explains both the magic and the problem. It has absorbed the patterns of so much writing that it can write fluently about almost anything. But because it stores patterns and not facts, it can produce something that sounds right and isn’t. Ask it for a supplier’s address in Gqeberha, and it may give you a perfectly formed street address that doesn’t exist.
Lerato: That’s the hallucination problem.
Peter: Yes. So never use a general assistant as a database for names, numbers, addresses or legal references, unless you check the source.
From predictor to assistant
Lerato: But it doesn’t feel like autocomplete. It feels like an assistant.
Peter: That comes from the second stage, fine-tuning. The company trains the model further on examples of good answers, and then people rate its responses. That’s called reinforcement learning from human feedback. It’s what makes it polite and helpful.
Lerato: And eager to please?
Peter: Exactly. Mollick makes this point. The assistant is trying to give you an answer you’ll like, and that can be stronger than the pull to be accurate. Push it on something it doesn’t know, and it may make something up rather than say “I don’t know“. Newer models do this much less. But not never.
Lerato: Here’s something I’ve noticed. I ask the same question twice and get two different answers.
Peter: That’s by design. Most assistants add a little randomness when they choose words. Great when you want ideas. Risky for facts. Picture two sales reps asking for the size of the frozen-food market in Gauteng, and getting answers four billion rand apart.
Lerato: And neither came from a source.
Peter: Neither. The answer also depends heavily on how you ask, which is why lesson 2.3 is all about good habits.
Training versus context
Lerato: You said there’s one idea that matters most for leaders.
Peter: Training versus context. An assistant has two kinds of knowledge. Training knowledge is everything it absorbed in pretraining. It’s broad, but it’s frozen at a cutoff date, and it knows nothing private about your business. Then there’s context: your question, the documents you upload, the earlier conversation, anything a tool fetches. That’s its working memory, the context window.
Lerato: And context is the part I control.
Peter: Exactly. If you want an accurate answer about your own returns policy, give it the policy. Many business tools do this automatically. They search your files and feed the right passages in before the model answers. People call that retrieval-augmented generation, or RAG.
Lerato: But if I give it our documents, where do they go?
Peter: To the AI provider. Whether they’re stored, or used to train future models, depends on the product and the plan. Business plans usually promise not to train on your data. Free consumer versions often do, unless you switch it off.
Lerato: So staff pasting payslips into a free chatbot is a real problem.
Peter: A real problem, and a POPIA problem. Know the data settings of every tool your people use.
Tools and agents
Lerato: Some assistants now search the web and build spreadsheets. How?
Peter: Tools. On its own, an LLM can only produce text. Connect it to tools and it can search the web, run code to do exact calculations, read spreadsheets and PDFs, or connect to your email or accounting system. That fixes some of the problems from lesson 1.3, like shaky maths and out-of-date knowledge.
Lerato: And the catch?
Peter: It can now see more of your business. So you manage its access like any other system access. Decide what it may read, and what it may change.
Lerato: And agents? Everyone’s talking about agents.
Peter: An agent gets a goal instead of a question. Something like: find the three cheapest compliant quotes for two thousand boxes and draft an order. It plans, uses tools, checks results, and keeps going until it’s done. Anthropic, the company behind Claude, draws a helpful line. In a workflow, people design the steps and the AI does each one. In an agent, the AI decides the steps itself.
Lerato: Which should a business start with?
Peter: Workflows, nearly always. They’re more predictable.
Lerato: What can go wrong with agents?
Peter: Three things. A small mistake early on can grow over many steps. An agent that can send emails or make payments can do damage fast. And an agent reading emails or web pages can be tricked by hidden instructions planted there. That’s called prompt injection.
Lerato: So how do you use them safely?
Peter: Start small, with approvals. Picture a distributor whose agent chases overdue invoices. At first it only drafts reminders, and a person approves each one. After three months of good drafts, it may send first reminders alone. Final demands still need a person. And everything is logged.
South Africa and Hadeka Foods
Lerato: Anything particular for South Africa?
Peter: Three things. Models learn mostly from English, so they’re usually weaker in African languages, and the same message can use more tokens in isiZulu, which can cost more. Most AI services process data overseas, and POPIA section 72 sets conditions for sending personal information out of the country. And cloud AI needs a reliable connection, so plan for outages.
Lerato: What happened at Hadeka Foods?
Peter: The quality manager asked a free assistant to list the allergens in Hadeka’s chicken pie. It confidently said wheat, milk and egg. It had never seen the recipe. It predicted a typical pie. The real pie also contains mustard.
Lerato: That’s a serious mistake for a food company.
Peter: Very serious. So the finance manager tried again on the company’s business plan. They uploaded the approved product specification and asked the same question. Correct answer, with the right line quoted. The rule became: for anything about Hadeka, give the AI Hadeka’s documents, and check.
Lerato: And agents?
Peter: The sales director wanted an agent to read WhatsApp orders and enter them straight into the system. The MD said yes, but as a workflow. The AI reads and structures each order, and a person approves it first.
Wrap-up
Lerato: So, to sum up?
Peter: An LLM predicts the next word. That makes it fluent, and sometimes confidently wrong. Training knowledge is broad but frozen. Context is where you have control, so know where your data goes. And tools and agents add power and risk, so start with workflows and approvals.
Lerato: Next time, in lesson 2.2, the jagged frontier: where AI helps, and where it quietly makes things worse.
Peter: See you then.