Egypt › Secondary › Secondary Two › Programming and AI › Chapter ٧: Machine Learning and AI

Lesson ٩: Large Language Models (LLM) and Generative AI (Item ٧-٣)

Secondary TwoProgramming and AISecond Termالدرس ٩٣٠ دقيقة

فيديو الشرح

الفيديو قيد الإنتاج، وسيظهر هنا فور اعتماده.

ماذا ستتعلم؟

اختبر استعدادك أولًا

١. In the question "What is generative AI?" the options are: ١) Models that produce new content such as text, images or code ٢) A calculator ٣) A web browser ٤) A printer. What is the number of the correct answer?
٢. In the question "What are large language models LLM?" the options are: ١) Only databases ٢) Huge deep networks trained on massive text to handle language ٣) Drawing programs ٤) Sensors. What is the number of the correct answer?
٣. In the question "What core task were language models trained on?" the options are: ١) Only playing chess ٢) Drawing images ٣) Predicting the next word (token) in text ٤) Measuring heat. What is the number of the correct answer?

الشرح خطوة بخطوة

Level ١: We explore together

Lesson topic: Large Language Models (LLM) and Generative AI (Item ٧-٣). Generative AI produces new content: text, images, audio and code.

The story: Large language models LLM are deep networks trained on massive text to predict the next word. From this simple prediction arise abilities: summarizing, translation, question answering and code writing. The prompt is the instruction text we give the model; its quality decides the output quality. Models may hallucinate: producing confident but wrong information; human verification is essential. Responsible use requires crediting generated content, protecting privacy and avoiding cheating.

أخطاء شائعة وتصحيحها

أمثلة محلولة متدرجة

Easy · مثال ١

Define large language models and name two abilities.

  1. نقرأ السؤال معًا بهدوء.
  2. Text prediction.
الإجابة: Networks trained on massive text to predict the next word; abilities include summarizing and translation
Easy · مثال ٢

What is a prompt and what is the effect of its quality?

  1. نقرأ السؤال معًا بهدوء.
  2. Instructions.
الإجابة: The instruction text for the model; a clear specific prompt yields more accurate and suitable output
Easy · مثال ٣

What is model hallucination?

  1. نقرأ السؤال معًا بهدوء.
  2. Confident yet wrong.
الإجابة: Generating false information in a confident style that fakes correctness
Medium · مثال ٤

Improve this prompt: write about pollution.

  1. نقرأ السؤال معًا بهدوء.
  2. Specificity.
الإجابة: Write a one-hundred-word paragraph for middle school students about causes of air pollution in cities and three practical solutions, in an engaging style with local examples
Medium · مثال ٥

Why is hallucination a special danger in medical and legal advice?

  1. نقرأ السؤال معًا بهدوء.
  2. Confidence without verification.
الإجابة: Errors there are very costly and the model cannot tell truth confidence from wording confidence; mandatory human professional verification is required
Medium · مثال ٦

Compare traditional search with asking a language model for a recent fact.

  1. نقرأ السؤال معًا بهدوء.
  2. Freshness and sources.
الإجابة: Search gives you checkable updated sources; the model may not know events after its training and may hallucinate without a source
Medium · مثال ٧

Propose fair classroom rules for student use of generative AI in homework.

  1. نقرأ السؤال معًا بهدوء.
  2. Balance.
الإجابة: Allow brainstorming and revision with disclosure; assess understanding orally; ban submitting a fully generated text as personal work
Advanced · مثال ٨

Explain how translation ability emerges from next-word prediction.

  1. نقرأ السؤال معًا بهدوء.
  2. Pattern generalization.
الإجابة: Training on bilingual text makes the model capture cross-language pattern correspondences; sequential prediction in a translation context then yields a coherent target text
Error analysis · مثال ٩

Fix the mistake: a student used a language model answer for statistics in his research without checking any source.

  1. نقرأ السؤال معًا بهدوء.
  2. Verification.
الإجابة: The model may hallucinate confident invented figures; numbers and facts in research must be verified from their original sources before citation

الخريطة الذهنية

Large Language Models (LLM) and Generative AI (Item ٧-٣)Chapter ٧: Machine Learning and AI
▼
Models that produce new content such as text, images or codeWhat is generative AI?
Huge deep networks trained on massive text to handle languageWhat are large language models LLM?
Predicting the next word (token) in textFrom the lesson questions
Summarizing, translation and answering questions, plus writing codeName three abilities of large language models.

إنفوجرافيك: Lesson map: words of the day

Lesson map: words of the day
اضغط على أي صف لترى الفكرة.
The key ideas of the lesson in order
We review the questions after one day, then after three days

تدريبات متنوعة مع الإجابات والتفسير

اكتب الإجابة أو اختر ثم اضغط. بعد كل سؤال يظهر الحل مع التفسير.

A) I choose the answer

١. The answer "A password" to the question "What is a prompt?" is correct.
٢. The answer "Random typing" to the question "How do you get better output from a language model?" is correct.
٣. From the lesson explanation: Models may hallucinate: producing confident but wrong information; human verification is essential.
٤. The answer "High speed" to the question "What is hallucination in language models?" is correct.
٥. From the lesson explanation: How do you get better output from a language model?
٦. The answer "Measuring heat" to the question "What core task were language models trained on?" is correct.
٧. The answer "It may be stored or used beyond your control, violating your privacy" to the question "Why keep sensitive personal data out of prompts to public models?" is correct.
٨. The answer "With a clear prompt specifying task, audience and format, with examples when needed" to the question "How do you get better output from a language model?" is correct.

B) I practice and answer

١. The answer "Cheating allowed" to the question "Name two rules for responsible student use of generative AI." is correct.
٢. The answer "Always correct answers" to the question "What is hallucination in language models?" is correct.
٣. The answer "Drawing programs" to the question "What are large language models LLM?" is correct.
٤. The answer "Deleting the model" to the question "How do you handle the hallucination risk?" is correct.
٥. The answer "Only playing chess" to the question "What core task were language models trained on?" is correct.
٦. The answer "The instruction and context text the user gives the model" to the question "What is a prompt?" is correct.
٧. The answer "It is old" to the question "Why keep sensitive personal data out of prompts to public models?" is correct.
٨. The answer "A calculator" to the question "What is generative AI?" is correct.

C) I review and play

١. The answer "Shouting" to the question "How do you get better output from a language model?" is correct.
٢. From the lesson explanation: What is hallucination in language models?
٣. Which question has the answer "Disclosing use when required and never submitting output as purely personal work"?
٤. The answer "A connecting cable" to the question "What is a prompt?" is correct.
٥. The answer "A printer" to the question "What is generative AI?" is correct.
٦. From the lesson explanation: What are large language models LLM?

ملخص صوتي وقارئ الدرس

قارئ تجريبي يعمل بصوت جهازك (مجاني). ليس تسجيلًا احترافيًا، وجودة الصوت العربي تختلف من جهاز لآخر. التسجيل الصوتي الاحترافي لم يُنتج بعد.

Lesson topic: Large Language Models (LLM) and Generative AI (Item ٧-٣). Generative AI produces new content: text, images, audio and code.

We review the key points of the lesson: What is generative AI? -> Models that produce new content such as text, images or code; What are large language models LLM? -> Huge deep networks trained on massive text to handle language.

We apply what we learned by answering these questions: What is generative AI? -> Models that produce new content such as text, images or code; What are large language models LLM? -> Huge deep networks trained on massive text to handle language; What core task were language models trained on? -> Predicting the next word (token) in text.

مسار المراجعة للامتحان

  1. Day one (١٠ minutes): We read levels ١ to ٣ together, then solve exercises (A).
  2. Day two (١٠ minutes): We play the level ٤ games and solve exercises (B).
  3. Day three (١٠ minutes): Exercises (C), then the Level One test.
  4. Before the school exam: We repeat the Level Three test and look at the common mistakes.

اختبارات بثلاثة مستويات

Level One Test: The Basics

٨ أسئلة. اجب ثم اضغط «أنهِ الاختبار» لترى درجتك.

١. From the lesson explanation: The prompt is the instruction text we give the model; its quality decides the output quality.
٢. From the lesson explanation: Responsible use requires crediting generated content, protecting privacy and avoiding cheating.
٣. From the lesson explanation: What is a prompt?
٤. Which question has the answer "Summarizing, translation and answering questions, plus writing code"?
٥. The answer "Copying without credit" to the question "Name two rules for responsible student use of generative AI." is correct.
٦. The answer "Drawing images" to the question "What core task were language models trained on?" is correct.
٧. Which question has the answer "Huge deep networks trained on massive text to handle language"?
٨. From the lesson explanation: How do you handle the hallucination risk?

المصادر والحقوق

رمز QR هذه الصفحة. يفتح درس «Lesson ٩: Large Language Models (LLM) and Generative AI (Item ٧-٣)» نفسه.