AITeky Learn

AiTeky Original Interactive Learning & Practice Intermediate

Generative AI and large language models

See how a language model writes one word at a time, control it with temperature and prompts, give it your own documents with retrieval, check what it says, and decide when a support assistant is good enough to ship.

You type a question and a chat assistant answers in fluent English. A bank's help page drafts a reply for the agent. A phone writes the summary of a long message. All of them are built on large language models (LLMs): programs that write text one small piece at a time, by guessing what comes next.

In this course you will first build a tiny language model yourself from counting, so that the big ones stop being magic. Then you will see how temperature changes what a model writes, and how a prompt is built. You will run a real open model on a free GPU in Google Colab, give it your own FAQ with retrieval (RAG), and check what it says, because LLMs also write confident nonsense. The last lesson is a decision: is a support assistant good enough to put in front of customers, and what does it cost?

You need Python basics and the machine learning course; the NLP course helps a lot for lessons 4 to 6. The first part runs in your browser. Lessons 3 and 5 also have a notebook for Google Colab.

  • Learn lessons explain one idea at a time, with small exercises you can try again and again.
  • Industry ready lessons give you real business questions, an honest comparison of methods, and the interview questions that go with them.

Locked. Sign up free

Learn

Understand each idea with everyday examples. No coding background needed.

  1. 01 30 min Free sample πŸ”’ AiTeky Pass How a language model writes Build a tiny language model from nothing but counting, in 3,000 food delivery reviews, see how it writes new reviews one word at a time, and learn why a bigger memory of the last few words makes the text better and also less new.
  2. 02 30 min πŸ”’ AiTeky Pass Temperature and sampling Turn a model's scores into probabilities with softmax, turn a dial called temperature to make the next-word pick careful or bold, cut the unlikely words with top-k and top-p, and measure how surprised the model is with entropy.
  3. 03 40 min πŸ”’ AiTeky Pass Talking to a real model Look at how a chat message is turned into tokens and roles, run a real open model in Colab, see its real next-word probabilities, and test three ways of asking it to sort support tickets, with a score for each.
  4. 04 35 min πŸ”’ AiTeky Pass Search first, then answer: RAG by hand Give a language model your own facts by searching a help centre first and pasting the best entries into the prompt, build the search and the prompt by hand, and find out how often the search brings back the wrong entry.
  5. 05 40 min πŸ”’ AiTeky Pass RAG with a real model Replace the word search with embeddings, let a real open model answer from the help entries, and measure in Colab how often it finds the right entry, answers correctly, and admits that it does not know.
  6. 06 40 min πŸ”’ AiTeky Pass Checking what the model wrote Score the ticket labels of a language model with a range instead of one number, see why 40 examples cannot separate two prompts, sort the help-desk answers into right, over-careful and dangerously wrong, and test a code guard that blocks the wrong ones.

Industry ready

Real problems from real jobs, and the questions interviewers ask about them.

  1. 07 40 min πŸ”’ AiTeky Pass On the job: should the app ship a support assistant? A grocery app wants a language model to answer customer chats. Turn the measured results into rupees: what the assistant saves, what its wrong answers cost, what the model costs per question and how long it takes, and decide how to launch it, with the interview questions that go with it.

We use essential cookies to run the site. With your permission we also set one anonymous ID to count unique visitors, and analytics cookies to see which pages help learners. Cookie notice

Join AiTeky Learn. It's free.

Create a free account to track your progress, save items for later and get study suggestions.

Sign up free Log in