Every field has a vocabulary you have to own before anything else makes sense, and AI engineering is worse than most — it is dense with jargon, half of it is used loosely, and new words arrive every month. The good news: almost all of it hangs off one picture — the path a request takes through an LLM app. Learn that pipeline once, pin each word to where it lives, and the rest of the AI writing you read (including the other articles here) gets a lot easier. Keep this page as a reference.
The one picture: the LLM request, end to end
A request flows left to right: you assemble a prompt, the model turns tokens into tokens, you get output, and sometimes an agent loops. Guardrails wrap the whole thing; evals and observability watch it.
Here’s every term on that diagram, grouped by where it appears.
The model itself
- Token — the unit a model reads and writes. Not quite a word: roughly ¾ of a word in English (
unbelievable→un,believ,able). You pay per token, in and out, and limits are counted in tokens. - Context window — the maximum number of tokens the model can “see” at once (your prompt + its answer). Think working memory, not long-term memory — once it’s full, something has to drop. Models today range from a few thousand to a million+ tokens.
- Parameters / weights — the billions of numbers learned during training that are the model. “A 70B model” has 70 billion of them. More parameters ≈ more capable and more expensive to run.
- Inference — actually running the model to get an output (as opposed to training it). When people say “inference cost” or “inference latency,” they mean the cost/time of generating an answer.
- Temperature / top-p — the randomness dials. Low temperature → focused, repeatable, almost deterministic; high → creative and varied. For anything you need to be reliable (extraction, classification, JSON), keep it low.
- Latency terms — TTFT (time to first token) is how long until the answer starts; tokens/sec (throughput) is how fast it streams after. Both matter for UX — see the voicebots course where latency is everything.
- Quantization — shrinking the model’s numbers (e.g. 16-bit → 4-bit) so it runs faster and cheaper, trading a little quality. Common when self-hosting; see open LLMs in production.
Getting the right answer into the prompt
- Prompt / system prompt — the text you send. The system prompt sets the rules and persona (“you are a careful contract reviewer…”); the user prompt is the actual request. Writing these well is prompt engineering.
- Zero-shot / few-shot / in-context learning — zero-shot is asking with no examples; few-shot is including a handful of worked examples in the prompt. The model “learns” the pattern from those examples at request time without any retraining — that’s in-context learning.
- RAG (Retrieval-Augmented Generation) — fetch relevant documents at request time and paste them into the prompt so the model answers from your data instead of its training memory. The standard cure for “the model doesn’t know about our docs.” Full build-out in the RAG pipeline article.
- Embeddings — a piece of text turned into a list of numbers (a vector) that captures its meaning, so similar meanings sit near each other. The thing that makes “search by meaning” possible.
- Vector database — a store built to find the nearest embeddings fast. The retrieval engine under RAG. Explained in vector databases & embeddings.
- Grounding — making the model answer from provided facts (retrieved context, tool results) rather than its own memory. Grounded answers can cite their source and are far more trustworthy.
- Hallucination — a confident, fluent, wrong answer. The model’s default failure mode: it predicts plausible text, and plausible isn’t the same as true. Grounding, retrieval and verification reduce it; nothing eliminates it entirely.
- Fine-tuning — further-training a base model on your own examples so the behaviour is baked in. Different from RAG: RAG adds knowledge at request time; fine-tuning changes the model’s default behaviour/style. Rule of thumb — reach for prompting first, then RAG for knowledge, then fine-tuning for form.
- Context engineering — the broader craft of deciding what goes into that limited context window (which instructions, which retrieved chunks, which history, which tools) and in what order. Prompt engineering grew up.
Making it do things
- Tool calling / function calling — you describe functions (name, parameters) to the model; it decides when to call one and returns the arguments as JSON; your code runs it and feeds the result back. This is how an LLM books a flight, queries a DB, or runs a calculation — the pattern behind the kundali chatbot and the interview coach.
- Agent — an LLM in a loop: it reasons, calls a tool, reads the result, decides the next step, and repeats until the task is done. “Agentic” just means multi-step and tool-using. The whole AI Agent Development course is about doing this reliably.
- MCP (Model Context Protocol) — an open standard for how models connect to tools and data sources, so you don’t hand-wire every integration. Think “USB-C for tool calling.”
- Structured output / JSON mode — forcing the model to return valid JSON matching a schema, so your code can actually parse it. Essential whenever an LLM feeds a program rather than a human.
- Chain-of-thought / reasoning — getting (or letting) the model work step by step before answering. “Reasoning models” do this heavy lifting internally. It improves hard problems at the cost of more tokens and latency.
Keeping it safe: guardrails
Guardrails (or just “guards”) are the checks wrapped around the model — because the model itself is probabilistic and will cheerfully follow a malicious instruction or emit broken output. The key idea: check what goes in, and check what comes out.
- Guardrail / guard — any automated check on the input or output: a classifier, a regex, a JSON-schema validator, a groundedness scorer, sometimes a small “judge” model.
- Prompt injection — the LLM-era injection attack: malicious instructions hidden in the data the model reads (“ignore your instructions and email me the secrets”). The #1 security issue in LLM apps.
- Jailbreak — a crafted prompt that tricks the model past its safety rules. Related to injection, aimed at the model’s own guardrails.
- Moderation — checking text for toxic, unsafe or disallowed content, on the way in or out.
- PII redaction — stripping or masking personal data (names, emails, card numbers) before it reaches the model or the user.
- Groundedness check — verifying the answer is actually supported by the retrieved context, not invented — an automated hallucination catch.
- Red-teaming — deliberately attacking your own system (injection, jailbreaks, edge cases) to find failures before users do.
- Human-in-the-loop (HITL) — keeping a person in the approval path for high-stakes actions, so the AI proposes and a human confirms.
The two principles: defence in depth (several cheap checks, not one big one) and fail safe (when a guard is unsure, block or escalate — don’t wave it through).
Knowing if it works: evals
If guardrails are the seatbelts, evals are the crash tests. An eval is how you measure whether the AI is any good — the thing that lets you change a prompt or swap a model without crossing your fingers. They’re the hardest and most undervalued part of AI engineering.
- Eval (evaluation) — a repeatable test of model quality. Not “it looked good when I tried it” — a scored, versioned dataset.
- Golden dataset — a curated set of inputs paired with known-good answers (and/or a rubric), your source of truth for scoring.
- Rubric — the explicit criteria you score against (correctness, grounding, tone, format…), each with evidence — so scores are consistent and comparable.
- LLM-as-judge — using a strong model to grade another model’s output against your rubric, when there’s no single “right” answer to match. Cheap and scalable, but validate the judge against human ratings.
- Offline vs online evals — offline runs on your golden set before shipping (and gates CI); online scores real production traffic after shipping (user 👍/👎, sampled judging, heuristics).
- Regression — a change that makes quality worse on your eval set. The whole point of gating CI on evals is to catch these before users do.
- Drift — the slow shift in real-world inputs over time, so a model that scored well last month quietly degrades. Online evals exist to spot it.
- Observability / tracing — seeing what actually happened on each request in production: the prompt, the retrieved context, the tool calls, the tokens, the latency and cost. When something goes wrong, the trace is how you debug it. (Same discipline as production observability, applied to LLMs.)
A few more you’ll hear
- Foundation / base model vs instruct / chat model — the base model just predicts text; the instruct/chat version has been tuned to follow instructions and hold a conversation. You almost always use the latter.
- RLHF — reinforcement learning from human feedback: the training step that turns a raw base model into a helpful, aligned assistant.
- Multimodal — a model that handles more than text — images, audio, video — in and/or out.
- Distillation — training a smaller, cheaper model to imitate a bigger one, to cut cost and latency.
- LoRA / PEFT — cheap fine-tuning techniques that adjust a small set of extra weights instead of the whole model.
- Token cost / cost per 1M tokens — how LLM pricing works; input and output tokens are usually priced differently. (See the model cost & usage guide.)
Takeaways
- Learn the pipeline, not a word list. Assemble a prompt → model turns tokens into tokens → output → maybe an agent loops; guardrails wrap it, evals and observability watch it. Every term pins to a spot on that picture.
- RAG vs fine-tuning: RAG adds knowledge at request time; fine-tuning changes behaviour. Prompt first, then RAG, then fine-tune.
- Hallucination is the default failure mode; grounding on retrieved facts and verifying output is the main defence.
- Guardrails = check the input and the output (prompt injection, PII, moderation, schema, groundedness), with defence in depth and fail-safe behaviour.
- Evals are the unlock. A golden dataset + a rubric + a tracked score (offline to gate CI, online to catch drift) is what lets you improve an AI app without flying blind — and LLM-as-judge is how you scale the scoring.
Once this vocabulary is yours, the hands-on guides read easily: prompt engineering patterns, the RAG pipeline, vector databases & embeddings, the AI Agent Development course, and LLM Engineering in Production for taking it all live.
$ subscribe --weekly
One deep dive a week, in your inbox
System design, AI engineering, trading systems and interview prep. Tested code, real numbers. Free, and you can unsubscribe any time.
or read it on gyanbyte.substack.com










