AI & modern tech

Start here if you want to understand LLMs, tokens, context windows, RAG, agents, and MCP without hype. Begin with what an LLM is, then follow the path below.

Starter route

What is an LLM?

An LLM (large language model) is an AI system trained on huge amounts of text to predict the next piece of a sentence. By doing that prediction billions of times, it learns grammar, facts, and patterns of reasoning well enough to answer questions, write, summarize, translate, and generate code. Chatbots like ChatGPT and Claude are built on LLMs.

What are tokens in AI?

Tokens are the small chunks of text that AI language models read and write, usually a whole short word, part of a longer word, or a punctuation mark. In English, one token averages about four characters or three-quarters of a word. Tokens matter because AI pricing, speed, and context-window limits are all measured in them.

What is a context window in AI?

A context window is the maximum amount of text, measured in tokens, that a language model can consider at once. It covers everything in a single request: the system prompt, the conversation so far, any pasted documents or tool results, and the answer the model writes. Anything outside the window is invisible to the model.

What is an AI hallucination?

An AI hallucination is when a language model states something false or unsupported as if it were true, such as an invented fact, a fake citation or a quote nobody said. It happens because models generate plausible-sounding text rather than looking facts up. Grounding answers in real sources and verifying important claims are the main defenses.

What is RAG?

RAG (retrieval-augmented generation) is a technique where an AI system first searches a set of documents for passages relevant to your question, then gives those passages to a language model to write the answer. It lets the model use current, private, or specialized information it was never trained on, and makes answers easier to check against sources.

What is an AI agent?

An AI agent is software that uses an AI model to pursue a goal over several steps, deciding for itself which tools to use and what to do next. It runs a loop: plan, take an action such as a search or API call, check the result, and repeat until the task is done or it needs a human.

What is MCP (Model Context Protocol)?

MCP, the Model Context Protocol, is an open standard for connecting AI applications to external tools and data, such as files, databases, calendars and business software. Anthropic introduced it in November 2024. Instead of building a custom integration for every pairing, a tool is wrapped once as an MCP server and then works with any MCP-compatible AI app.

Explainers

What is an LLM?

What is an LLM? A plain-English guide to large language models: how they are trained, what parameters are, what they do well, and where they still fail.

What are tokens in AI?

What are tokens in AI? Learn how LLMs split text into tokens, how many tokens a word or page uses, and why tokens drive AI pricing and context limits.

What is RAG?

What is RAG? A plain guide to retrieval-augmented generation: how it works step by step, why it cuts hallucinations, and when to use it vs fine-tuning.

What is an AI agent?

What is an AI agent? A plain-English guide to the agent loop, tool use, agents vs chatbots vs workflows, real examples, risks, and when you need one.

What are embeddings?

What are embeddings? Learn how AI turns text into numbers that capture meaning, how similarity search works, vector databases, and real uses like RAG.

What is fine-tuning?

What is fine-tuning? How it differs from pretraining and prompting, the main types (SFT, RLHF, LoRA), when it beats RAG, data needs, costs and risks.

What is a context window in AI?

What is a context window in AI? Learn what counts toward it, what happens when you exceed it, typical sizes in late 2026, and long context vs RAG.

What is an AI hallucination?

What is an AI hallucination? Learn why LLMs make things up, common types like fake citations, how to spot them, and practical ways to reduce them.

What does temperature mean in AI?

What does temperature mean in AI and LLMs? A plain-English guide to sampling, low vs high temperature, top-p, which values to use, and why 0 isn't exact.

How many tokens is 1,000 words?

How many tokens is 1,000 words? About 1,300–1,400 in English. See a word-to-token table, how language and code change it, and how to count exactly.

What is a system prompt?

What is a system prompt? Learn how it differs from a user prompt, what to put in one, real examples, and why it is not a real security boundary.

What is MCP (Model Context Protocol)?

What is MCP (Model Context Protocol)? A plain-English guide to how hosts, clients and servers connect AI apps to tools and data, with examples and risks.

Comparisons

Glossary in this topic

LLMAn LLM (large language model) is an AI model trained on huge amounts of text to predict the next piece of text in a sequence. That one skill lets it answer questions, write, summarise, translate and code. ChatGPT, Claude and Gemini are apps built on LLMs.TokenIn AI, a token is the small unit of text a language model reads and writes. A token can be a whole word, part of a word, a punctuation mark or a space. In English, one token averages about four characters, or roughly three-quarters of a word.Context windowA context window is the maximum amount of text, measured in tokens, that an AI model can work with in a single request. It covers everything at once: instructions, conversation history, attached documents and the model’s own reply. Anything beyond the limit must be cut or summarised.RAGRAG (retrieval-augmented generation) is a technique where an AI system first searches a collection of documents for passages relevant to a question, then gives those passages to a language model to write the answer. It lets a model use current or private information it was never trained on.HallucinationAn AI hallucination is when a language model produces information that sounds confident and plausible but is false, invented or unsupported by its sources, such as a fake citation, a wrong date or a quote nobody said. The model is not lying; it is generating likely-sounding text.AI agentAn AI agent is software that uses an AI model to pursue a goal over multiple steps, deciding for itself which actions to take, such as searching, running code or using other apps, then checking the results and continuing until the task is done or it needs a human.EmbeddingAn embedding is a list of numbers (a vector) that represents the meaning of a piece of content, such as a word, sentence, document or image. Content with similar meaning gets similar numbers, so software can find related items by measuring how close their embeddings are.Fine-tuningFine-tuning is extra training applied to an already-trained AI model, using a smaller set of examples, so it performs better at a specific task, style or domain. It changes the model’s internal weights, producing a customised version rather than just giving it new instructions.Temperature (AI)Temperature is a setting that controls how random a language model’s word choices are. Low temperature keeps the model on its most likely next words, giving focused, repeatable answers; high temperature spreads choices to less likely words, giving more varied text that is also more error-prone.System promptA system prompt is a set of instructions given to an AI model before the conversation starts, telling it what role to play, which rules to follow and how to format answers. It applies to the whole conversation and is usually written by the app’s developer, not the person chatting.MCP (Model Context Protocol)MCP (Model Context Protocol) is an open standard for connecting AI applications to external tools and data, such as files, databases and business apps. A service is wrapped once as an MCP server and then works with any AI app that supports MCP, instead of needing a custom integration for each.Open-weight modelAn open-weight model is an AI model whose trained weights, the billions of numbers that hold what it learned, are published for anyone to download, run, inspect or fine-tune on their own hardware. The training data and code may stay private, and the licence may restrict use.