Lesson 1 (AI): What is an LLM?

LLM stands for "Large Language Model". It is an artificial brain trained by reading almost the entire internet.

It doesn't "think" like us, but it is excellent at predicting what the next word is in a sentence, based on statistics.

The Chatbot Simulator

Even though real LLMs are complex, we can simulate a basic "intelligence" with Python using the logic rules (IF/ELSE) you learned in Module 1.

A real LLM doesn't use IF, but billions of mathematical parameters!

Your Objective

Let's build a small Chatbot that answers simple questions.

  1. Read the code on the right. It is a function that takes text as input.
  2. Try changing the question in the user_question variable (e.g., write "how are you").
  3. Run it and see if the "Bot" responds correctly.
main.py
Initializing Python Environment...