← blog

The AI Words I Pretended to Understand (So You Don't Have To)

The 20 AI terms I wish someone explained to me simply: LLMs, tokens, inference, RAG, agents, context engineering and more, in plain English.

10 min read

When I started learning AI, every video and every tweet threw words at me like I was supposed to already know them. "Just run inference on it." "Use RAG with a vector DB." "Agents are the future." "It's not prompt engineering anymore, it's context engineering."

And I'd just nod. Inside my head: bro what is inference?? Isn't the model just… answering?

I kept opening 10 tabs for every term, half of them explaining one buzzword with three more buzzwords. So this is the post I wish I had back then: every important AI term, explained simply, in the order they actually make sense.

Let's go.

Part 1: The basics

AI vs AGI

AI is any system that does something we'd normally call "smart": recognizing faces, recommending reels, writing text. ChatGPT, Claude, your spam filter: all AI.

AGI (Artificial General Intelligence) is the hypothetical AI that can do pretty much any mental task a human can, at human level or better, across any field, without being specially built for it.

Today's AI is really good at specific things. AGI would be good at everything. Nobody fully agrees on when we'll hit AGI, or even on the exact definition, so when someone says "AGI is here," take it with a pinch of salt.

LLM (Large Language Model)

An LLM is the brain behind ChatGPT, Claude, Gemini and friends. At its core, it does one thing: predict the next piece of text.

You type "The capital of France is", and it predicts "Paris". That's it. But when a model is trained on a huge chunk of the internet, books and code, "just predicting the next word" becomes surprisingly powerful: it can write code, explain physics, or roast your resume.

"Large" because these models are massive: billions of parameters (we'll get to that) trained on trillions of words.

Tokens

Here's something that confused me: LLMs don't read words, they read tokens.

A token is a chunk of text, sometimes a full word, sometimes part of one. "unbelievable" might become un + believ + able. A rough rule for English: 1 token ≈ 4 characters ≈ ¾ of a word.

Why you should care: pricing, speed and limits are all measured in tokens. When an API says "$3 per million tokens", this is what they mean.

Parameters

Parameters are the numbers inside the model that it learned during training. Think of them as millions of tiny knobs, each tuned slightly so the model gets better at predicting text.

When you hear "a 70B model", that's 70 billion parameters. More parameters usually means a smarter model, but also one that's heavier, slower and more expensive to run.

Part 2: How a model is made and used

Training

Training is how the model learns. You feed it enormous amounts of text, it makes a prediction, checks how wrong it was, and adjusts its parameters a tiny bit. Repeat this trillions of times.

It's like studying for an exam by attempting every question ever written and correcting yourself after each one. Training a big model takes thousands of GPUs, weeks or months, and crazy money. Most AI engineers will never train a big model from scratch, and that's totally fine.

Fine-tuning

Fine-tuning is taking an already trained model and training it a little more on your specific data, so it gets better at one particular thing.

Training = going to school for 12 years. Fine-tuning = a 3-month course on one specific skill.

For example, you could fine-tune a model on your company's support chats so it replies in your brand's tone. It's cheaper than training, but still needs good data and effort, and often RAG (Part 4) solves the problem more easily.

Inference

This was the word that confused me most, and it's honestly simple:

Inference = using the trained model to get an answer.

Every time you send a message to ChatGPT and it replies, that's inference. Training is learning; inference is using what it learned.

Training happens once (and costs a fortune). Inference happens every single time someone uses the model.

That's why companies care so much about making inference fast and cheap, which brings us to Inference Engineering later.

Part 3: Talking to the model

Context Window

The context window is the model's short-term memory: the maximum number of tokens it can "see" at once. That includes your messages, its replies, any documents you paste in, and the system instructions.

If a model has a 200K-token context window, everything in the conversation has to fit inside that. Go over it, and older stuff gets cut off or the request fails.

That's why in a very long chat, the model sometimes "forgets" what you said at the start. It's not being rude; it literally can't see it anymore.

Prompt Engineering

Prompt engineering is the skill of writing instructions so the model gives you what you actually want.

Bad prompt: "write about dogs"

Better prompt: "Write a 100-word fun fact post about golden retrievers for Instagram, in a casual tone, with one emoji."

Techniques you'll hear about:

  • System prompt: background instructions that set the model's role and rules ("You are a helpful coding assistant…").
  • Few-shot prompting: giving a few examples of what you want before asking.
  • Chain-of-thought: asking the model to think step by step before answering.

Temperature

Temperature controls how random or creative the output is.

  • Low temperature (near 0): predictable, focused, consistent. Good for code, data extraction and facts.
  • High temperature (around 1): more creative and varied, sometimes chaotic. Good for brainstorming or stories.

Same question, different temperature, different vibe.

Hallucination

A hallucination is when the model says something confidently wrong: a fake fact, a library function that doesn't exist, a made-up citation.

It happens because the model is predicting likely-sounding text, not checking facts. It doesn't "know" it's lying. Rule for life: never blindly trust an LLM on facts that matter. Verify.

Part 4: Giving the model your own knowledge

Here's a problem: the model only knows what it learned during training. It doesn't know your company docs, your notes, or yesterday's news. These next terms fix that.

Embeddings

An embedding turns text into a list of numbers (a vector) that captures its meaning.

The cool part: texts with similar meanings get similar numbers. "How do I reset my password?" and "I forgot my login" end up close to each other, even though they share almost no words.

This is how computers search by meaning instead of exact keywords.

Vector DBs (Vector Databases)

A vector database stores embeddings and quickly finds the ones most similar to a query.

A normal database answers "find rows where name = 'Sanskar'". A vector database answers "find the 5 pieces of text most similar in meaning to this question."

Popular ones: Pinecone, Weaviate, Qdrant, Chroma, and Postgres with the pgvector extension.

RAG (Retrieval-Augmented Generation)

Now combine the last two and you get RAG, the most common pattern in real AI apps.

Instead of hoping the model knows the answer, you:

  1. Retrieve: search your documents (via embeddings + vector DB) for the parts relevant to the question.
  2. Augment: paste those parts into the prompt.
  3. Generate: let the model answer using that information.
flowchart LR
    A[User question] --> B[Turn into embedding]
    B --> C[Search vector DB]
    C --> D[Top matching docs]
    D --> E[Question + docs go to the LLM]
    E --> F[Answer based on your data]

It's basically giving the model an open-book exam. Fewer hallucinations, up-to-date answers, and no retraining needed. That's why RAG is usually tried before fine-tuning.

Context Engineering

Remember the context window? Context engineering is the skill of deciding what goes into it, and what stays out.

Prompt engineering is about how you word the instruction. Context engineering is about the whole package the model sees: the system prompt, retrieved documents, tool results, chat history, memory, examples.

Too little context, and the model guesses. Too much, and it gets confused, slow and expensive. Building good AI apps (especially agents) is mostly about getting this balance right, which is why people say "it's not prompt engineering anymore, it's context engineering."

Part 5: Letting the model do things

Tool Calling (Function Calling)

By itself, an LLM can only produce text. Tool calling lets it use tools.

You tell the model: "You have a tool called get_weather(city)." When a user asks "Is it raining in Prayagraj?", the model replies with something like get_weather("Prayagraj"). Your code runs that function, sends back the result, and the model writes the final answer.

The model never runs anything itself; it just asks, and your app does the work.

MCP (Model Context Protocol)

Every app used to connect tools to AI in its own custom way. Messy. MCP is an open standard, introduced by Anthropic in late 2024, for connecting AI models to tools and data sources.

Think of it as USB-C for AI: build a tool once as an MCP server (say, for GitHub, Slack or your database), and any MCP-compatible app can plug into it.

AI Agents

An AI agent is an LLM that works in a loop: it decides what to do, uses tools, looks at the results, and keeps going until the task is done.

A chatbot answers one question. An agent takes a goal like "find the bug in this repo and fix it", then reads files, runs tests, edits code, runs the tests again, and repeats until it works.

Goal → Think → Use a tool → Look at the result → Think again → … → Done

Coding tools like Claude Code and Cursor's agent mode are agents. So are AI assistants that book meetings or research topics for you.

Part 6: Shipping it for real

Evals

Evals (evaluations) are tests for AI output. Normal code gives the same output every time, but LLMs don't, so how do you know a prompt change made things better and not worse?

You build a set of test questions with expected answers or scoring rules, run your app against them, and measure. It's the difference between "feels better" and "accuracy went from 72% to 88%". Serious AI teams live by their evals.

Inference Engineering

Remember: inference happens on every request. Inference engineering is making that fast, cheap and reliable at scale.

Things these engineers deal with:

  • Latency: how quickly the first token appears, and how fast the rest streams.
  • Batching: processing many users' requests together on the same GPU.
  • Quantization: storing parameters with less precision so the model is smaller and faster, with only a small quality drop.
  • Caching: reusing work for repeated parts of prompts so you don't compute the same thing twice.

When a model replies instantly to millions of people, that's inference engineering doing its thing.

Cheat sheet

TermOne-line meaning
AI vs AGISmart at specific tasks vs (hypothetically) smart at everything
LLMA model that predicts the next piece of text, really well
TokenThe chunk of text a model reads (~4 characters)
ParametersThe learned numbers inside the model
TrainingTeaching the model from huge amounts of data
Fine-tuningExtra training on your own data for a specific task
InferenceUsing the trained model to get an answer
Context windowHow much the model can "see" at once
Prompt engineeringWriting instructions that get good answers
TemperatureHow random or creative the output is
HallucinationConfident but wrong output
EmbeddingsText turned into numbers that capture meaning
Vector DBA database that searches by meaning
RAGLook up relevant docs, then answer using them
Context engineeringDeciding everything that goes into the context window
Tool callingThe model asks your code to run a function
MCPA standard plug for connecting AI to tools
AI agentAn LLM in a loop that uses tools to finish a goal
EvalsTests that measure how good your AI's output is
Inference engineeringMaking model responses fast and cheap at scale

Final thoughts

Once these words clicked for me, AI stopped feeling like magic and started feeling like engineering: models, data, prompts, tools and loops, all stuck together in smart ways.

You don't need to master all of this on day one. Just knowing what each word means will make every tutorial, paper and tweet 10× easier to follow.