1. Home
  2. Explore
  3. Computer Science
  4. Common AI Terminology

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Common AI Terminology

Speaker 1Speaker 2

Common AI Terminology

18:44
0:00-18:44
  1. Michael

    Welcome. Today we’re building a practical vocabulary for AI, especially useful if you’re developing applications and need to talk clearly with your team. We’ll start with how language models process text, then move through training, application design, and efficiency.

  2. Anna

    And the goal isn’t to master every technical detail in one conversation. It’s to understand what the common terms mean and how they fit together, so deeper topics become easier to learn.

  3. Michael

    First up: a large language model, or LLM. At a high level, it’s a neural network trained to predict the next token in an input sequence. Give it “all that glitters,” for example, and it might continue with “is not gold.”

  4. Anna

    So the model doesn’t begin by composing a whole answer in one leap. It produces a continuation, token by token, until it has a response. We’ll unpack what tokens and neural networks mean as we go.

  5. Michael

    That brings us to tokenization: breaking incoming text into discrete pieces called tokens. A token might be a whole word, part of a word, or even a space or punctuation mark. The model works with those pieces rather than treating a sentence as one indivisible block.

  6. Anna

    Why not just split everything at spaces? Because language has useful patterns inside words, too. For example, endings such as “-ing” can help identify forms like “eating,” “dancing,” and “singing,” while “-ers” appears in words such as “shimmers” and “murmurs.”

  7. Michael

    Exactly. Tokenization gives the model manageable units to process, while those units can preserve patterns that help it work with natural language. It’s one part of the larger challenge of handling human language effectively.

  8. Anna

    Once text is split into tokens, the model needs a way to represent what those tokens mean. That leads to vectors: numerical coordinates in a space with many dimensions. The idea is that words with similar meanings can be placed near one another, while less related or opposite meanings can be farther apart.

  9. Michael

    The process of mapping words or tokens into those representations is called vectorization. You can picture it as giving each item a location in a meaning-space. Nearby locations represent similarities the model can use when it processes language.

  10. Anna

    But a word’s meaning often depends on where it appears. “Apple” might mean a fruit in “a tasty apple,” a company in “Apple’s revenue,” or someone cherished in “the apple of my eye.” The spelling alone doesn’t tell you which meaning is intended.

  11. Michael

    That’s where attention comes in. The model can use nearby words as context when interpreting a token. “Tasty” points toward the fruit, while “revenue” points toward the company. Attention is a way for the model to weigh relationships among tokens, rather than interpret each token in isolation.

  12. Anna

    So the representation of “apple” can be adjusted by its surrounding context. It’s not simply adding two word-vectors together; the attention operation helps direct the representation toward the meaning that fits the sentence. This ability to use context was a major development in language modeling.

  13. Michael

    The source highlights the attention breakthrough in 2017 and the much wider attention that language models received later, including with GPT-2’s release in 2022. The key idea is that contextual meaning helps a model produce more appropriate continuations than a word-by-word approach without context.

  14. Anna

    Now let’s ask how a model learns to predict the next token. One important idea is self-supervised learning: the data itself provides a learning challenge, so people don’t have to label every example with the answer.

  15. Michael

    Think of a sequence like “five, four, three, two, blank.” You can guess that the missing number is one because the sequence has a pattern. The input contains clues about what belongs in the gap, and the model can learn by trying to predict the missing or next piece.

  16. Anna

    With supervised learning, a person might explicitly provide an input and its desired answer: “all that glitters” should be followed by “is not gold.” With self-supervised learning, the text already exists, and training creates prediction tasks from it. For a sequence such as “Et tu, Brutus,” the model can be asked to predict what follows different positions in the sequence.

  17. Michael

    The model makes predictions, and those predictions are compared with the tokens that actually appeared in the text. If the prediction is wrong, the loss increases and the model’s internal weights are updated; if it matches, less or no correction is needed for that prediction. The important point is that the training examples can be generated from existing text without a human writing an answer for each one.

  18. Anna

    That makes the approach scalable because a large collection of existing material can provide many learning challenges. The same broad idea can apply beyond text: an image model might predict removed image patches, while a video model might learn patterns in how objects move.

  19. Michael

    Next is the transformer. An LLM is defined by what it does—predicts the next token from an input sequence. A transformer is a particular architecture for doing that, not another name for the language model itself.

  20. Anna

    In the description we’re following, tokens pass through an attention block and then a feedforward neural network. The resulting representations can move through more layers of attention and feedforward processing. Earlier layers might help resolve a word’s meaning, while later layers can represent more complex relationships or implications.

  21. Michael

    For example, in “a crane was hunting a crab,” context can help distinguish a bird from a piece of machinery. Further processing may support richer interpretations of the situation, such as the crane being hungry or the crab being at risk. Stacking many layers lets the model repeatedly process and transform information before generating an output.

  22. Anna

    The number of layers varies: the discussion gives 12 as one possible scale and notes that some newer GPT architectures have many more. It also mentions that the attention operation has a cost that grows on the order of the square of the input length. But the big distinction is still that a transformer is one possible engine for an LLM, not the whole product.

  23. Michael

    A useful analogy is a car and its engine. The LLM is the broader product, while the transformer is an architecture that can power it. Other architectures could potentially be used instead; the source mentions state-space models and diffusion models as alternatives being considered for text generation.

  24. Anna

    Once a base model has learned general patterns, it can be adapted through fine-tuning. Fine-tuning takes a model and trains it further on a more specific set of examples, often questions and answers, so it responds in a desired way or specializes in a domain.

  25. Michael

    For example, a model used for medical explanations may be adapted to respond with medical terminology, while a model focused on financial operations may be shaped around financial questions. Fine-tuning also teaches response preferences: a model might be encouraged to give a direct answer or acknowledge when it doesn’t know, rather than offer an unhelpful or unsuitable response.

  26. Anna

    And the same base model can be fine-tuned in different ways for different uses. A company could adapt it to answer customer questions according to its own needs. That’s a change made to the model through additional training.

  27. Michael

    A different technique is few-shot prompting. Instead of changing the model through training, you add examples to the prompt when making a request. The examples show the model what kind of response is appropriate for that particular task.

  28. Anna

    Imagine a customer asks, “Where is my parcel?” The application can send that question along with examples of how similar questions should be answered. This happens at inference time—in other words, when the system is using the model to respond—so the examples provide guidance for that request.

  29. Michael

    Now let’s build on that with retrieval-augmented generation, usually shortened to RAG. The application retrieves relevant information, such as company policies or terms and conditions, and sends it to the LLM alongside the user’s question. It can also include examples that demonstrate the desired response format.

  30. Anna

    That gives the model two helpful kinds of context: examples for how to respond and retrieved material for what the response should be based on. At a high level, RAG means retrieve context, augment the request with it, and then generate a response.

  31. Michael

    A common way to find relevant material is with a vector database. Suppose someone says, “I’m upset with your payment system. I expect a refund.” A company policy might not contain the word “upset,” but it might discuss low ratings or customers dropping off.

  32. Anna

    If the text is represented as vectors that capture meaning, a similarity search can find documents related to the user’s concern even when they use different wording. The application retrieves those documents and gives them to the LLM along with the original question, adding relevant company context.

  33. Michael

    A vector database stores representations that support these similarity searches and helps retrieve relevant documents efficiently. There are different ways to store or find information, including graph databases or keeping material in memory or a cache, but the central job here is finding useful context for the incoming request.

  34. Anna

    RAG typically brings in information that the application can retrieve from its own sources. But what if the useful information or action is outside that system? That brings us to the Model Context Protocol, or MCP: a protocol for connecting a model with external tools or data sources.

  35. Michael

    In the example, a user asks about flights. An MCP client can let the model connect to airline MCP servers, which act as wrappers for services such as airline databases. Those servers can return flight details, and the application can give that information back to the model along with the user’s request and any other relevant context.

  36. Anna

    The model might then decide that a particular flight should be booked. The client can make another call to the relevant MCP server to carry out that action, then pass the result back to the user. So the interaction can go beyond presenting instructions: connected tools can help the system act on the user’s request.

  37. Michael

    The broader term for designing and managing the information and tools supplied to a model is context engineering. It brings together techniques we’ve discussed: few-shot examples, retrieved documents through RAG, and connections to external services through MCP.

  38. Anna

    Context engineering also includes deciding what conversation history and user preferences to send. One approach is a sliding window: include the last 100 chats directly and summarize earlier history in a few sentences. Other approaches might emphasize keywords or keep the most recent chat alongside a summary.

  39. Michael

    Documents can also be summarized before they reach the main model. A smaller or less expensive model could help produce that summary, which is then sent along with the request. The aim is to supply useful context without sending an unlimited amount of material.

  40. Anna

    That helps distinguish context engineering from prompt engineering. Prompt engineering generally concerns shaping a particular prompt, often in a stateless way. Context engineering is broader and can change over time with a user’s declared preferences and previous chat history.

  41. Michael

    A longer-running system that can pursue a user’s goal is often called an agent. You can think of it as a process with capabilities: it may query an LLM, contact external systems, or work with other agents to meet a request.

  42. Anna

    A travel agent is a clear example. It might be able to book flights and hotels or manage email while someone is away. If a suitable opportunity appears, it could act according to the user’s preferences. The key idea is a process that can use capabilities over time toward a goal.

  43. Michael

    Let’s turn to reinforcement learning, especially reinforcement learning with human feedback. One version of the idea is that a model produces two possible responses, and a person chooses which one is better. The preferred response gets a positive signal, while the other gets a negative one.

  44. Anna

    Conceptually, the feedback encourages the model toward response patterns associated with better outcomes and away from patterns associated with worse ones. You can picture a path through a space of possible outputs: feedback gives a signal about whether that path was desirable. It’s a simplified picture, but it captures why repeated feedback can shape behavior.

  45. Michael

    The source compares reinforcement to Pavlov’s dog: when a behavior is repeatedly followed by food, the dog learns to associate a bell with that outcome. In AI, feedback can reinforce outputs people prefer, which is one reason the technique is powerful.

  46. Anna

    But reinforcement from outcomes is not the same as a full mental model of how the world works. Consider repeated heads from a coin that is known to be fair. A person who understands what “fair coin” means still recognizes that the next result could be heads or tails, each with a 50 percent chance.

  47. Michael

    The point is that simply rewarding what happened before doesn’t, by itself, guarantee an understanding of the underlying process. Reinforcement learning can encourage useful behavior, but the source cautions against treating it as a complete explanation of human intelligence.

  48. Anna

    Another idea is chain of thought: training or prompting a model to work through a problem in steps rather than jumping straight to a final response. Breaking a problem down can support a higher-quality answer, especially when the task is complex.

  49. Michael

    Step-by-step examples are related to few-shot prompting, but the emphasis here is on the reasoning process. A model may use more steps for a harder problem and fewer for an easier one. Models designed to solve problems through such reasoning are often called reasoning models; the source gives DeepSeek and OpenAI’s O1 and O3 as examples.

  50. Anna

    Chain of thought isn’t the only possible approach. The source also mentions tree of thought, graph of thought, and using tools. The broader idea is that a reasoning model can work out how to approach a problem, potentially using different strategies rather than only producing an immediate answer.

  51. Michael

    Now for multimodal models. A text-focused language model works with text, while a multimodal model can work with other kinds of input or output, such as images and video. For example, it might analyze an image, count apples in it, or help create or modify an image.

  52. Anna

    The same idea applies to video. Models that can work with video could support tasks involving moving images, and the source points to possible applications in areas such as creating advertisements. It also notes that quality is still developing, even though these capabilities could reduce the cost of producing video.

  53. Michael

    More generally, a modality is a kind of input data. Training across text and images, for example, can connect words such as “cat” and “feline” with pictures of cats. The source suggests this can give a model a richer grasp of objects and improve performance compared with training only on text.

  54. Anna

    Another direction is small language models, or SLMs. Compared with LLMs, they have fewer parameters—the internal weights and connections used by the neural network. The source gives rough illustrative ranges of 3 million to 300 million parameters for an SLM and 3 billion to 300 billion for an LLM.

  55. Michael

    A smaller model can be trained on narrower, company-specific or task-specific data. A model focused on customer questions or sales may do that job reasonably well without being designed to give detailed weather analysis. The point is to build for the use case a company actually needs.

  56. Anna

    That can also give companies more control over what their models generate and help keep data close to the organization. A company might want an expert model for its own tasks rather than a general-purpose model that needs to handle every subject.

  57. Michael

    One way to make a smaller model is distillation. A large model acts as a teacher: it receives an input and produces an output, while a smaller student model tries to imitate that output. When the student’s prediction differs, its weights can be adjusted so it learns to approximate the teacher.

  58. Anna

    The aim is to condense useful behavior into a model with fewer parameters. If it performs well enough for the intended task, it can be faster to run and easier to host than the larger model. That’s especially relevant at inference time, when the model is responding to production queries.

  59. Michael

    The final term is quantization. Neural-network weights are numbers, and quantization represents them using fewer bits. The example in the source is reducing a weight from 32 bits to 8 bits, which could save about 75 percent of the memory used for those weights.

  60. Anna

    That doesn’t mean the entire system’s memory use automatically falls by 75 percent. The savings apply to the quantized weights, and the attention mechanism still has its own costs. The source also emphasizes that quantization is generally applied after the model has been trained, so it mainly targets the cost of running the model, not the cost of training it.

  61. Michael

    Let’s connect the whole picture. An LLM predicts tokens; tokenization breaks text into those units; vectors represent meaning; and attention uses context. Transformers are one architecture for processing those representations, while self-supervised learning provides a scalable way to train prediction.

  62. Anna

    Then fine-tuning adapts a model through additional training, and few-shot prompting supplies examples at response time. RAG retrieves relevant documents, vector databases help find them, MCP connects models with external tools and services, and context engineering coordinates the information and history the model receives.

  63. Michael

    Agents can use those capabilities over time to pursue a goal. Reinforcement learning with human feedback can encourage preferred outputs, reasoning models can work through problems in steps, and multimodal models handle more than text. Finally, smaller models, distillation, and quantization are ways to focus or reduce the cost of deploying models.

  64. Anna

    That’s a solid working vocabulary for conversations with engineers and for exploring the deeper ideas behind AI. These are broad explanations, not a replacement for studying each technique in detail, but now you can recognize how the terms relate. Thanks for learning with us.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent