Sugata AI SUGATA AI Get the PDF β†’
πŸ“– Reading free. Want the PDF to keep? Get it + the weekly AI brief β†’
Sugata AI Β· Free Field Guide

AI for
Beginners

How modern AI works β€” and how to build with it.
β˜… 50 tools Β· 30 prompts Β· 80-term glossary
7
Parts
50
Tools
30
Prompts
A field guide by Sugata AIsugataai.com

Contents

What's inside
1   How AI works β€” ML, LLMs, transformers, timeline, architecturefundamentals
2   The 50 AI tools β€” write, code, image, video, voice, agents…8 categories
β˜…   Bonus: 30 prompts that save hourscopy-paste
3   Models & machines β€” pick a model, open vs closed, local AI, GPUschoosing
4   Building with AI β€” APIs, structured output, RAG, agents, MCP, evalsfor devs
5   Using AI well & safely β€” prompting II, context, security, costcraft
6   Now go build β€” 10 projects, roadmap, careersapply
7   Reference β€” which tool, cheatsheets, glossary, resourcesbookmark
New to all this? Good. You don't need to understand the math. You need to know what each tool does, how it works in plain words, and when to reach for it. That's this book. Short. Honest. Use what fits β€” then get back to work.
β˜…First, the basicsWhat is this thing, really?

You keep hearing the words. Machine learning. Deep learning. Transformers. They sound like a wall. They are not. Here is the whole story in three short steps β€” no math, just the idea.

Machine learning the idea

Old software followed rules a human wrote, line by line. Machine learning flips that. You do not write the rules β€” you show it thousands of examples and let it find the rules itself. Show it enough photos of cats and it learns "cat." Nobody defined fur or whiskers. It worked them out on its own.

Deep learning the muscle

Deep learning is machine learning with layers β€” many of them, stacked. The first layer notices edges. The next, shapes. The next, faces. Stack enough and the machine can handle messy, real-world things: images, speech, language. "Deep" just means "a lot of layers." That is the whole secret of the word.

Transformers the breakthrough

In 2017 a new design appeared: the transformer. Its trick is attention β€” it looks at every word at once and decides which ones matter to each other. That is why a model can follow a long thought and not lose the thread. Every big AI you know is a transformer. The "T" in ChatGPT stands for it. That is the engine under the whole show.

β˜…How LLMs actually workThe twelve words people throw around

You now know the shape: machine learning, deep learning, transformers. Here is the next layer down β€” the dozen terms you will hear every day, each in plain words. Read these and most AI conversations suddenly make sense.

Tokens the unit

An LLM does not read words. It reads tokens β€” chunks of text, roughly ΒΎ of a word. "Unbelievable" might be three tokens. It reads in tokens, thinks in tokens, and β€” this matters β€” bills in tokens. A page is about 500. When people say "cost per token," this is the thing being counted.

Context window its desk size

The context window is how much it can hold in mind at once β€” your prompt plus its reply, in tokens. Think of it as the size of a desk. A small desk (8k) fits a few pages. A big one (200k+) fits a whole book. Go past the edge and the earliest pages fall off the back β€” it simply forgets the start.

Embeddings meaning as numbers

How does a machine know "king" and "queen" are related? It turns every word into a list of numbers β€” an embedding β€” that captures meaning. Similar meanings land near each other in that number-space. This is the engine under search, memory, and RAG: turn things into numbers, then find what is close.

Attention the breakthrough

Attention is the transformer's superpower. For every word it asks: which other words matter to this one? In "the trophy did not fit in the suitcase because it was too big," attention is what ties "it" to the trophy, not the suitcase. Doing that across a whole passage is how it holds a thought.

β˜…How LLMs work…continued β€” how it learns
Parameters the learned dials

Parameters are the dials the model tuned while learning. A "70B model" has 70 billion of them. More usually means more capability β€” and more cost to run. Everything it "knows" lives here: not as facts in a table, but as patterns spread across billions of numbers.

Training the expensive part

Training is the long haul. The model reads a huge slice of the internet and plays one game, endlessly: hide the next token, guess it, check, nudge the dials. Across trillions of tokens, those nudges add up to something that can write, reason, and code. It takes months and millions of dollars β€” and happens once.

Fine-tuning making a specialist

Training makes a generalist. Fine-tuning makes a specialist. Take a trained model, show it a smaller, focused set β€” your support tickets, your code, your house style β€” and it adapts. Far cheaper than starting over. It is how you get a model that sounds like you.

RLHF learning manners

A raw model will happily produce something useless or unsafe. RLHF β€” reinforcement learning from human feedback β€” fixes that. People rank answers best to worst, and the model learns the preference. This is why ChatGPT is helpful, polite, and refuses the obviously bad. It learned what humans actually wanted.

β˜…How LLMs work…continued β€” when you use it
Inference running the engine

Training builds the engine. Inference drives it. Every time you send a prompt and get a reply, that is inference β€” the model running forward, producing tokens one by one. Training happens once; inference happens millions of times. It is what you pay for day to day.

Temperature the creativity dial

Temperature controls randomness, from 0 to about 2. Low (0–0.3): focused, repeatable, safe β€” use it for code and facts. High (0.8+): surprising, varied, occasionally unhinged β€” use it for brainstorming. Same prompt, different temperature, different soul.

Top-p the other dial

Top-p (nucleus sampling) is the second randomness control. Instead of a temperature, it says: only pick from the most likely words that together make up, say, 90% of the probability. Lower top-p = narrower, safer choices. Tune temperature or top-p β€” rarely both.

Hallucinations confident, and wrong

The model's job is to produce plausible text, not true text. Usually those line up. Sometimes they do not, and it states a confident falsehood β€” a fake citation, an invented API. That is a hallucination. It is not lying; it has no idea it is wrong. The fix: feed it real sources (RAG) and always verify.

β˜…The AI timelineSeventy years in one page

AI did not arrive in 2022. It was seventy years of slow build, then a sudden rush. Here is the short version β€” the moments that actually changed the path.

1956
The field is named. A summer workshop at Dartmouth coins "artificial intelligence." Big dreams, small computers.
1997
Deep Blue beats Kasparov. A machine out-plays the world chess champion. Brute force, not understanding β€” but a milestone.
2012
AlexNet. Deep learning crushes an image contest and the modern era quietly begins. GPUs prove their worth.
2017
The transformer. Google's "Attention Is All You Need" introduces the design behind every LLM since.
2020
GPT-3. 175 billion parameters. The world sees a model that can write almost anything. Scale works.
2022
ChatGPT. AI gets a chat box. 100 million users in two months. Everything changes.
2023
GPT-4 & the rivals. Claude, Gemini, open models. The race is on; quality jumps fast.
2024
Reasoning models. Models that "think" before answering β€” stronger at math, code, and hard problems.
2025
AI agents. Models stop just answering and start doing β€” using tools, taking steps, finishing tasks.
2026
Agentic software. Whole workflows run by fleets of agents. The thing this book is really about.
β˜…How to talk to itPrompt engineering, in plain words

A model is only as good as what you ask. "Prompt engineering" is a grand name for a simple skill: asking well. There are no magic words. There are clear instructions. Get good at these five and you will outperform people using far fancier tools.

Be specific. Vague in, vague out. "Write something" gets mush. "Write a 100-word, friendly product email for busy founders" gets gold.
Give context. Tell it what you are doing and who it is for. The more it knows, the less it guesses.
Show an example. Paste one good sample. "Make it like this." Imitation is its strongest skill.
Give it a role. "Act as a tax accountant." "You are a strict editor." A role sharpens the answer.
Ask for the shape. Say what you want back: a table, five bullets, JSON, a tweet. It will deliver the format.

And when the first answer is wrong, do not start over. Just tell it what to fix. It is a conversation, not a slot machine.

β˜…The modern AI stackAgents, RAG, MCP & friends

A chatbot answers. A real AI system does things. To get there, a few parts work together. Here is how they fit β€” then what each one means.

YOUR GOAL / PROMPT THE AGENT plans Β· acts Β· checks Β· repeats REASONS REMEMBERS ACTS The Model (LLM) a transformer, trained by deep learning RAG your documents become its memory MCP tools & your systems (its hands) RESULT / ACTION DONE FRAMEWORKS THAT BUILD AGENTS LangChain Β· LangGraph Β· CrewAI Β· n8n
How the pieces fit: an agent reasons with a model, remembers with RAG, acts through MCP.
Agent β€” AI that does, not just says. It plans, takes a step, uses a tool, checks itself, and tries again.
RAG β€” Retrieval-Augmented Generation. Feed the model your documents so it answers from your facts, not just its training. Its memory.
MCP β€” Model Context Protocol. The standard plug that lets a model use tools and reach your systems. Its hands.
LangChain β€” The toolkit to wire models, data, and tools together.
LangGraph β€” LangChain's bigger sibling β€” for agents that loop, branch, and remember. Flowcharts for AI.
CrewAI β€” Spin up several agents that split the work like a small team.
n8n β€” Drag-and-drop automation to connect it all β€” little or no code.
β˜…The full pictureHow a real AI system fits together

The earlier diagram showed the idea. This one shows the plumbing β€” what actually happens, top to bottom, when a question becomes an answer (or an action) in a production AI system. Bookmark this one.

User Prompt LLM (the model)transformer Β· the reasoning core RAG  (retrieval) Vector DB  (your knowledge) Memory  (past context) Tools MCPthe standard plug for tools APIs & your systems Response / Action
The path of a real request: prompt β†’ model β†’ grounded with RAG + memory β†’ acts through tools via MCP β†’ result.

You're just getting started β€” there's a lot more

Unlock the full handbook

The 50 tools, 30 prompts, agents, RAG, MCP, evals, security, projects, the glossary & more. Drop your email to keep reading β€” and get the weekly AI brief. No spam, unsubscribe anytime.

Prefer a PDF to keep? Get it here β†’