MarzleyTech Learn

Home / Learn / AI tools for work & study / What is AI? Machine learning, large language models, how chatbots work, what they can and can't do, and staying safe

What is AI? Machine learning, large language models, how chatbots work, what they can and can't do, and staying safe

Artificial intelligence (AI) is now part of everyday life: chatbots like ChatGPT, Claude, Gemini, Copilot and Meta AI (inside WhatsApp) answer questions and write text; phones recognise faces and translate speech; banks detect fraud; Google Maps predicts traffic; TikTok and YouTube recommend videos; M-Pesa and lenders use models to assess risk. Knowing what AI really is (and isn't) helps you use it well for study and work, judge its answers, protect your privacy, and see the career opportunities it creates.

Key terms

TermMeaningExample
Artificial intelligence (AI)Computer systems doing tasks that normally need human intelligenceUnderstanding language, recognising images, making predictions
Machine learning (ML)AI that learns patterns from data instead of following hand-written rulesA spam filter learning from millions of emails
Deep learningML using large neural networks with many layersFace recognition, speech-to-text
Generative AIAI that creates new contentText, images, music, video, code
Large language model (LLM)A deep learning model trained on huge amounts of text to predict and generate languageThe models behind ChatGPT, Claude, Gemini
ModelThe trained system that makes predictions—
Training dataThe examples a model learns fromBooks, websites, code, images
PromptThe instruction or question you give a generative AI"Explain photosynthesis for a Form 2 student"

AI you already use

AreaExample
PhonesFace unlock, voice typing, photo enhancement, keyboard suggestions
Social mediaFeed recommendations, auto-captions, filters
Maps and transportTraffic predictions, route suggestions, ride-hailing pricing
FinanceFraud detection, credit scoring, chatbots for customer care
EmailSpam filtering, smart replies
HealthReading scans, triage chatbots (with medical oversight)
AgricultureCrop disease detection from leaf photos, weather predictions
EducationTutoring assistants, automatic transcription and translation

How LLM chatbots generate answers

  1. Training: the model reads a massive amount of text and learns statistical patterns: which words and ideas tend to follow others.
  2. Fine-tuning and safety training: humans and techniques guide it to follow instructions helpfully and avoid harmful outputs.
  3. Generating: when you type a prompt, the model predicts the next piece of text (a token, roughly a word or part of a word) again and again, building an answer.
Python · runs live in the interactive lesson
# A toy illustration of "predict the next word" (real LLMs are vastly more complex)
import random
random.seed(3)
text = "the farmer plants maize the farmer sells maize at the market the market is busy"
words = text.split()
following = {}
for a, b in zip(words, words[1:]):
    following.setdefault(a, []).append(b)

word, sentence = "the", ["the"]
for _ in range(8):
    word = random.choice(following.get(word, words))
    sentence.append(word)
print(" ".join(sentence))

Important consequences:

  • The model produces likely-sounding text, not guaranteed truth.
  • It doesn't "look up" facts like a database unless the tool is connected to search or documents.
  • Its knowledge has a cutoff date unless it can browse the web.
  • Wording matters: clearer prompts give better results (next lesson).

Many assistants now can also search the web, read files (PDFs, spreadsheets), see images, speak, and run code, which helps with accuracy and new tasks, but you still need to check results.

Popular AI tools

ToolNotes
ChatGPT (OpenAI)General assistant; writing, analysis, images
Claude (Anthropic)General assistant; strong at long documents, writing and coding
Gemini (Google)Integrated with Google services
Microsoft CopilotIn Windows, Edge and Microsoft 365
Meta AIInside WhatsApp, Facebook and Instagram
PerplexityAI search with sources
Canva Magic Studio, Adobe FireflyAI design and images
Otter, Whisper-based toolsTranscription
GitHub Copilot and coding assistantsProgramming help

Free versions are enough to learn; paid plans add more capable models and limits. Features change quickly.

What AI is good at

  • Explaining concepts in simple language, with examples.
  • Drafting and editing text: emails, CVs, proposals, social posts, reports.
  • Summarising long documents and meetings.
  • Brainstorming ideas (business names, content plans, lesson ideas).
  • Translating and adjusting tone (formal English, simple Kiswahili).
  • Writing and explaining code; creating formulas in Excel/Sheets.
  • Analysing data you provide; creating tables and outlines.

Limits and risks

LimitWhat it meansWhat to do
HallucinationsConfident but false answers, made-up references, wrong numbersVerify important facts with reliable sources
Outdated knowledgeMay not know recent laws, prices, eventsCheck current official sources (e.g. KRA, CBK, eCitizen)
BiasCan reflect biases in training dataReview outputs critically, especially about people and groups
Local context gapsMay be weaker on Kenyan specifics, Sheng, local proceduresProvide context; verify locally
No real understanding of your situationDoesn't know your full circumstancesUse for guidance, not final decisions on health, legal, finance
Over-relianceWeakens your own skillsUse AI to learn, not to avoid learning

Privacy and safety rules

  • Don't paste passwords, PINs, ID numbers, M-Pesa statements, medical records or confidential client/company data into public AI tools.
  • Check your employer's or school's AI policy.
  • Turn off chat history/training in settings if you don't want conversations used to improve models (options vary by tool).
  • Be careful with AI-generated images and voices: deepfakes and voice-cloning scams exist; verify unusual requests by calling people directly.
  • Follow academic integrity rules: using AI to write graded work you submit as your own is often cheating (see the study lesson).

AI and jobs in Kenya

AI changes tasks more than it replaces whole jobs, but people who use AI well will outperform those who don't.

OpportunityExamples
Productivity in existing jobsTeachers preparing materials, accountants checking data, marketers drafting content
AI training/data workAnnotation and evaluation work (see Make Money Online: AI data work)
AI-enabled freelancingFaster content, design and coding services (with human quality control)
Building AI productsDevelopers integrating AI APIs into apps (see the AI subject)
Local solutionsAgriculture, health, fintech, education tools for African contexts and languages

Skills to build: clear writing and prompting, critical thinking and fact-checking, domain knowledge, digital skills (Excel, design, coding), and ethics.

Think about it: A student asks a chatbot for "the KRA filing deadline and current turnover tax rate" and gets a confident answer. How should they treat it?Show answer

As a starting point only: AI can be outdated or wrong (hallucination). They should confirm on KRA's official website or iTax, or with a tax professional, before relying on it, especially since tax rules change with Finance Acts.

Summary

  • AI does tasks needing human-like intelligence; machine learning learns from data; deep learning uses neural networks; generative AI creates content.
  • LLMs predict text token by token from patterns learned in training, so answers sound fluent but aren't guaranteed true.
  • Popular assistants include ChatGPT, Claude, Gemini, Copilot and Meta AI; many can search, read files and see images.
  • AI is great for explaining, drafting, summarising, brainstorming, translating and coding help; it can hallucinate, be outdated or biased.
  • Protect private data, verify important facts, follow integrity rules, and build AI skills for the changing job market.

Check yourself

  1. What does LLM stand for?

    Show answer

    large language model

  2. When an AI confidently gives a false answer, it's called a…

    Show answer

    hallucination

  3. Should you paste passwords or ID numbers into a public AI chatbot? (yes or no)

    Show answer

    no

  4. What type of AI learns patterns from data instead of hand-written rules? (two words)

    Show answer

    machine learning

  5. What is the small unit of text an LLM predicts, roughly a word or part of a word?

    Show answer

    token

  6. AI-generated fake videos or voices of real people are called what?

    Show answer

    deepfakes

Lesson 1 of 8 in AI tools for work & study · Written by · Course notes