AI Basics
6 min read
·┌──────────────────────────────────────────────────────────┐ │ ═══════════════════════════════════════════════════ │ │ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ │ │ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ │ │ ──────────────────────────────────────────────────── │ │ ██████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░ │ │ █████████████████████████████████░░░░░░░░░░░░░░░░░░ │ │ ██████████████████████████████████████░░░░░░░░░░░░░ │ │ ████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ │ │ ──────────────────────────────────────────────────── │ │ ███████████████████████████████████████░░░░░░░░░░░░ │ └──────────────────────────────────────────────────────────┘
A language model is a type of AI that understands and generates human language. It's trained on massive amounts of text to predict what words should come next in a sentence.
Language models can:
Language models learn patterns from text. When you give them a prompt like "The weather today is", they predict likely completions based on what they've learned from billions of examples.
They don't "understand" language the way humans do—instead, they recognize statistical patterns in how words appear together.
Popular language models include:
These models power chatbots, writing assistants, and coding tools.
[Tokens]: Language models break text into tokens—small pieces that can be words or parts of words. Understanding tokens helps you understand how models process text.
[Context window]: The amount of text a model can consider at once. Larger context windows let models understand longer conversations or documents.
[Prompting]: The art of writing instructions that get the best results from a language model. Good prompts are clear, specific, and provide context.