Skip to main content

Featured

Space Explorers Book 7: Answers and Explanations

Memunic Space Explorers › Book 7: Memoon and the Search for Another Home › Answers and Explanations Answers and Explanations Habitable means life could live there; inhabited means life does live there. A world can be habitable and empty, as an unoccupied flat has a roof and water but nobody in it. The Moon has almost no air, so water would boil or freeze, and its gravity is only about one-sixth of Earth’s, too weak to keep air. Accept also: no greenhouse blanket, so it swings between very hot and very cold. Venus. It matches Earth in size and roughly in mass, but its thick carbon dioxide air traps heat, making it hot and crushing. “Twin” is only true for size and weight. A dip of 1 per cent means (planet width divided by star width) squared is 0.01, so the ratio is 0.1: the planet is about a tenth as wide as the star. Repeats at the same gap show the planet is going round the star in 12 days, and rule out a one-time event such as a passing object. A planet shines only by reflected l...

Byte by Byte Book 6: Chapter 15 – Chatbots, Prompts and Using AI Honestly

Byte by Byte › Book 6: Python, Data and How Computers Work › Chapter 15: Chatbots, Prompts and Using AI Honestly

Chapter 15: Chatbots, Prompts and Using AI Honestly

You will learn: what a chatbot is, how a large language model generates answers by predicting the next token, what generative AI can do well, why chatbots make mistakes (including hallucinations), how to write a good prompt, how to check an AI's answers, how to keep your information private, and how to use AI honestly for schoolwork.

🌟 The Adventure

Deep in a cave below Pearlhaven, Octavia showed them the last of the Old Makers' machines: an enormous spiral conch shell, taller than Simbha, glowing softly from inside.

"The Echo Shell," she said. "Ask it anything, and it answers. It was asleep for thirty years. Nimo woke it up last week, and now I cannot get the visitors to leave it alone."

It was true. A queue of frogs, rabbits and fish stretched out of the cave. Hop the rabbit asked who built the Moonbrook lighthouse. The Shell answered at once, in a warm, confident voice: "The Moonbrook lighthouse was built in the year 1066 by a colony of penguins led by Admiral Featherby." Hop thanked it and hopped away, delighted.

"There are no penguins in Memunic," whispered Nimo. "And it was built by the Old Makers, three hundred years ago."

Then Kachui arrived, looking unusually stern. Since the Festival he had been helping at the Pearlhaven fish school. "I asked the young fish to write about What the sea means to me," he said. "Thirty-two essays came back. They are all beautifully written. And they all say almost exactly the same thing." He held one up. "They asked the Echo Shell to write them."

Memoon looked at the glowing Shell. It sounded so sure of itself. It was clearly useful. It was also, it seemed, very good at being confidently wrong.

💡 Learn With Memoon

What is a chatbot? A chatbot is a computer program that holds a conversation with people using text or speech. Early chatbots were rule-based: they followed scripts written by programmers. One of the first, ELIZA, was made in 1966 and simply turned your sentences into questions using patterns ("I feel sad." "Why do you feel sad?"). Many customer-service chatbots still work like this, offering a menu of choices.

Modern AI chatbots, such as ChatGPT, Gemini, Claude and Microsoft Copilot, are very different. They are built on large language models.

What is a large language model? A large language model (LLM) is an AI model trained on an enormous amount of text: books, websites, articles and more, far more than any person could read in thousands of lifetimes. It is trained to do one task: predict the next token in a piece of text. (Remember from Chapter 14: a token is a word or part of a word.)

You already know how this works on a small scale. Your phone keyboard suggests the next word as you type. Type Happy and it suggests birthday. It learned that from patterns in text. An LLM does the same thing on a gigantic scale. To make its predictions it adjusts billions of numbers, called parameters, during training, until it has captured an incredibly detailed picture of how language is used: grammar, facts, styles of writing, even patterns of reasoning.

After this first training, LLMs are trained further, with feedback from people, to follow instructions, be helpful, and refuse harmful requests.

How a chatbot writes an answer. When you send a message, the model reads it and predicts the most suitable next token, adds it, then predicts the next one, and the next, one token at a time, until the answer is complete. It is a little like a very well-read person continuing a sentence. Because there is some chance involved in choosing each token, asking the same question twice can give different answers.

AI that creates new content, such as text, images, music or video, is called generative AI.

What chatbots do well.

  • Explaining a topic in simple words, or in a different way when the textbook is confusing.
  • Answering follow-up questions patiently, as many times as you like.
  • Quizzing you on a topic to help you revise.
  • Brainstorming ideas for a project or story.
  • Summarising a long piece of text.
  • Helping with code: explaining an error message or suggesting how to fix a bug.
  • Translating and checking grammar.

Why chatbots make mistakes. An LLM produces text that sounds right, based on patterns. It does not check facts the way a person looks something up, and it has no idea when it does not know something unless it has been trained to say so. This leads to some important limitations.

LimitationWhat it meansExample
HallucinationMaking up information that sounds believable but is false, often with total confidencePenguins building the lighthouse; invented quotes; books and websites that do not exist
Knowledge cutoffIt only learned from text up to a certain date, so it may not know recent eventsNot knowing who won last week's match
BiasIt learned from text written by people, including their unfair stereotypesAssuming a doctor is a man
Mistakes in reasoningIt can get calculations, counting and logic puzzles wrong, while sounding sureA wrong answer to a maths word problem
No real understanding or feelingsIt predicts text; it does not have experiences, care about you, or know you personally, even when it sounds friendlySaying "I understand how you feel"

Some chatbots can search the internet or look things up in documents before answering, which helps them give more accurate and up-to-date answers. But they can still misunderstand what they find, so checking is still your job.

Staying safe with chatbots.

  • Check the age rules. Most AI chatbot services require users to be at least 13 years old, some require 18, and teenagers usually need a parent's permission. Use them with a grown-up who knows what you are doing.
  • Keep personal information private. Never type your full name, address, school, phone number, passwords, or photos of yourself or others. Conversations may be stored and used to improve the service.
  • A chatbot is not a friend or a counsellor. If you are worried, upset or unsafe, talk to a trusted adult, or call Childline 1098 (Book 3). Real people can help in ways a program cannot.

Writing good prompts. The message you give an AI is called a prompt. The clearer your prompt, the more useful the answer. Compare:

Vague prompt: Tell me about binary.

Better prompt: I am a Class 7 student in India learning number systems. Explain how to convert a decimal number to binary using the division method, with one worked example using the number 37. Use simple words and keep it under 150 words. Then give me two practice questions without the answers.

A good prompt usually includes some of these five parts:

PartQuestion it answersExample
RoleWho should the AI act as?"Act as a patient maths tutor."
TaskWhat exactly do you want?"Explain the division method for binary."
ContextWhat does it need to know?"I am in Class 7 and I understand place value."
FormatHow should the answer look?"Use a numbered list and one example."
ConstraintsWhat limits should it follow?"Under 150 words; don't give the answers."

Prompting is a conversation. If the first answer is not right, iterate: ask a follow-up. "Can you explain step 3 again more simply?" "Give me a harder example." "What mistakes do students usually make here?"

Some prompts that help you learn rather than do the work for you:

  • "Ask me five questions about this chapter, one at a time, and tell me whether I am right."
  • "Here is my answer. Don't rewrite it; tell me what is unclear."
  • "Explain this error message in my Python code, but don't fix it for me. Give me a hint."

Checking an AI's answers. Treat an AI's answer as a starting point, not the final word. Use the skills you learned for checking websites in Book 3:

  1. Is it important? The more an answer matters (for homework, health, money or safety), the more carefully you must check it.
  2. Check it against a reliable source: your textbook, your teacher, an official website, or an encyclopedia.
  3. Check any sources it gives. Does the book, article or link actually exist? Does it really say that? Hallucinated references are common.
  4. Test it yourself where you can: run the code, redo the calculation, convert the binary number back.
  1. Watch for signs of trouble: very specific details with no source, answers that contradict themselves, and things that sound too surprising to be true.

Using AI honestly. AI can be a wonderful tutor. It can also tempt people to cheat. The difference is whether you are still doing the thinking and learning.

Honest useDishonest use
Asking for an explanation of a topic you find hardAsking AI to write your essay or answers and handing them in as your own
Asking it to quiz you before a testUsing AI during a test when it is not allowed
Getting feedback on a draft you wroteCopying its feedback-rewritten version and calling it yours
Brainstorming ideas, then choosing and developing your ownPresenting AI ideas or AI images as your own original work
Asking it to explain a bug, then fixing it yourselfPasting its code into an assignment without understanding it

Three rules to follow:

  1. Follow your school's rules. Different teachers allow different uses. When in doubt, ask.
  2. Be open about it. If you used AI to help, say how, for example: "I used an AI chatbot to explain the binary division method, then wrote this answer myself."
  3. The explain-it test. Could you explain your work, in your own words, without the AI? If not, you have not learned it yet, and the work is not truly yours.

Remember why you do homework: not because your teacher needs another essay about the sea, but because writing it builds your brain. Letting AI do it is like sending a robot to the gym for you.

💡 Memoon’s tip: Ask an AI to make you think, not to think for you. The best prompt for learning usually ends with "...but don't give me the answer."

Illustration from Byte by Byte Book 6: Chapter 15 – Chatbots, Prompts and Using AI Honestly

✍️ Try It Yourself

Activity 1: Be a language model (unplugged). One person says the start of a sentence, such as "Every morning I eat..." Each person in turn adds just one word that fits. Keep going for 20 words. Did the sentence make sense? Was it true? Now play again, but after each word everyone must vote on the three most likely next words, and the group picks one. This is roughly how an LLM writes: one likely word at a time, without checking facts.

Activity 2: Improve the prompts. Rewrite each vague prompt into a strong one using at least four of the five parts (role, task, context, format, constraints):

  1. "Help with my science project."
  2. "Write about Python."
  3. "Fix my code."
  4. "Tell me about the monsoon."

Activity 3 (with a grown-up): Compare prompts. Using a chatbot your family allows, type one of your vague prompts from Activity 2, then your improved version. Compare the two answers. Which is more useful, and why?

Activity 4 (with a grown-up): Fact-check the AI. Ask a chatbot three questions:

  1. One you already know the answer to (for example, convert 156 to binary).
  2. One about a local or recent event.
  3. One asking for three books on a very narrow topic, with their authors.

Check each answer: convert the binary back yourself; search for the event on a news website; search for each book in a library catalogue or online bookshop. Did any book turn out not to exist? Record what you found.

Activity 5: Honest or not? Discuss each case and decide whether it is honest use. If not, how could the student use AI honestly instead?

  1. Riya asks an AI to explain photosynthesis three different ways until she understands it, then writes her own notes.
  2. Arjun asks an AI to write his Hindi essay and copies it out by hand so it looks like his writing.
  3. Sana writes a story, asks an AI to point out spelling mistakes, and fixes them herself.
  4. Dev uses an AI to generate a picture for his art homework and does not mention it.

Activity 6: Write an AI-use note. Imagine you used AI to help with your project in this book. Write a two-sentence note explaining exactly how you used it, ready to hand to your teacher.

🎉 Memoon Solves It

Memoon started with Hop. She found him telling everyone in Moonbrook about Admiral Featherby and his penguins, and gently showed him the Old Makers' tablet that recorded the real history of the lighthouse. "The Echo Shell wasn't lying on purpose," she explained. "It doesn't know things the way you do. It makes the most likely-sounding answer. Usually that's right. Sometimes it's penguins."

Then she and Nimo improved the Shell. They connected it to Beautine's database and the Old Makers' records, so that before answering a question about Memunic it could look up real facts. Its answers became far more accurate. Not perfect, but much better. Beside the Shell, Memoon carved a sign: The Echo Shell can be wrong. Check important answers.

The essays were harder. Kachui wanted to ban the Shell from the school completely. Memoon suggested something else. She showed the young fish how to ask the Shell to quiz them, to explain hard words, and to give feedback on their own drafts without rewriting them. Kachui set a new rule: use the Shell to learn, never to do the work, and always write down how you used it.

A week later the fish handed in new essays. They were less polished than the Shell's. Some had spelling mistakes. But each one was different. One young clownfish wrote that the sea meant the colour blue that is inside you even when you are on land. Kachui read it three times.

That evening, Octavia gathered everyone in the core of the Engine. She was wearing something new: a small pearl badge, shaped like a spiral, that glowed in the light of the core.

"For two hundred years I have been Keeper of the Deep Engine," she said. "It is time for a new Keeper. But the Old Makers left one last rule. Before the Keeper's pearl can be passed on, the new Keeper must complete the Keeper's Trial."

Everyone turned to Memoon.

❓ Check Your Knowledge

  1. What is the difference between a rule-based chatbot and an AI chatbot built on a large language model?
  2. What one task is a large language model trained to do?
  3. Why can the same question give different answers from a chatbot?
  4. What is generative AI? Give three examples of what it can create.
  5. What is a hallucination? Give an example.
  6. Name four limitations of AI chatbots.
  7. Name three pieces of information you should never type into a chatbot.
  8. List the five parts of a good prompt and give an example of each.
  9. Rewrite this prompt to make it better: "Explain fractions."
  10. Give three ways to check an answer from an AI.
  11. What is the explain-it test?
  1. Is it honest to ask an AI to write an essay and hand it in as your own? Explain.
  2. Why should you talk to a trusted adult, not a chatbot, if you are worried or upset?
  3. Challenge: Your younger cousin says, "I don't need to learn anything at school any more because AI knows everything." Write a short, kind reply using at least three things you learned in this chapter.

📚 Word Bank

  • Chatbot: a program that holds a conversation with people using text or speech.
  • Rule-based chatbot: a chatbot that follows scripts and patterns written by programmers.
  • Large language model (LLM): an AI model trained on huge amounts of text to predict the next token.
  • Parameters: the billions of numbers inside a model that are adjusted during training.
  • Generative AI: AI that creates new content such as text, images, music or video.
  • Hallucination: false information produced by an AI that sounds believable.
  • Knowledge cutoff: the date after which an AI model has no training data.
  • Prompt: the instruction or question given to an AI.
  • Prompt engineering: the skill of writing prompts that get useful results.
  • Iterate: improve something by repeating and adjusting, such as asking follow-up prompts.
  • Fact-checking: checking whether information is true using reliable sources.
  • Academic honesty: doing your own work and being open about any help you used.

Keep learning with Byte by Byte

Explore Book 6: Python, Data and How Computers Work. Find the ebook, purchase details and teaching slides on MemuniCity.

Watch this chapter on YouTube

Comments

Popular posts from this blog

CA-7 Job Status and Failure Reason Codes

Here are the various status codes that You may see for jobs in the Queue or Logs in CA-7. R-C0002 R-C0003 R-C0099 R-C0255 R-JCLER A-U0002 A-U0004 A-U0015 A-U0043 A-U4095 A-SOC7 A-U4000 Reason Code/Job Status Code explanation: The indication of the job's current disposition. Values and their meanings are: A-Snnnn-- The job has failed with a system abend. A-Unnnn --The job has failed with a user abend. C-Cnnnn --The job has completed successfully and is going through completion processing. E-ARFATT-- An error occurred during the attempt to attach ARF definitions. This can result if the ARFSET specified is not defined. A diagnostic message may have been written to the CA-7 log, the OS console, or to the trailer queue for the job (in which case it can be displayed using LQ,JOB=x,LIST=ALL). E-ARFERR ---The job encountered an error in the ARF processing. Do a LARFQ command for the job to get more specific information. E-SEGERR --The job has been requeued...

Whistling Winds and Waterfalls: 4 Days of Magic in Shillong

Nestled in the clouds, where the scent of pine trees mingles with the rhythm of waterfalls and the tunes of local guitar-strumming youth—Shillong is more than a place. It’s a vibe. If you’ve got 3 nights and 4 days, you’ve got just enough time to fall in love. Here’s how to make the most of it—food, fun, fog and fantastic views included. Day 1: Shillong, We’re Coming for You! You land in Guwahati, barely out of the airport when the hills start calling. You hop into your cab, Spotify on, windows down, and the three-hour ride to Shillong begins. Just when you think it can’t get better, you stop at Umiam Lake —a lake so calm, it looks like someone ironed the water. By evening, you’re sipping hot chai in Laitumkhrah, maybe nibbling on spicy momos or pork jadoh from a roadside stall. You’re checked into your charming hotel ( Tripura Castle if you fancy old-world royalty, Ri Kynjai if you’re into lakeside poetry). The breeze whispers secrets of waterfalls and pine forests. Sleep well, drea...

Installing and Configuring Hadoop on Ubuntu as a Pseudo Distributed Single Node Cluster

Briefly what is psuedo-distributed single node Hadoop cluster: It is a Hadoop distributed cluster having Single Node. All the five daemons (NN,DN,JT,TT,SNN) are running as individual JVM (java process) instances. We will get all distributed features of Hadoop. This mode is used to develop, test, and staging (before production) Map Reduce programs quickly. It writes all the system, daemon and user logs to different files on the cluster To install Hadoop in this mode, we have to modify the hadoop-env.sh, core-site.xml, hdfs-site.xml, mapred-site.xml. hadoop-env.sh contains all the Environment variables which are required for running Hadoop. All the default values are fine, Only we have to modify the JAVA_HOME=“The location of Java Home Directory” Core-site.xml contains all the cluster specific information like io, temp directory, sorting, file system uri etc. Hdfs-site.xml contains all the parameters which are specific to HDFS like name node directory, data node directory...