Before You Use AI, Understand This First
The concepts that most people skip, and why they should not. Before learning prompt engineering techniques, this guide cuts through the hype to explain how Large Language Models (ChatGPT, Gemini, Claude) actually process text, manage memory, and generate responses under the hood.
- 01LLMs Predict, They Do Not Think: Models calculate the most probable next word repeatedly from billions of frozen training parameters rather than reasoning or learning live from your chat.
- 02Tokens: The Currency of AI: Text is split into subword units (~3-4 chars, e.g. "cat" = 1 token, "unbelievable" = 3 tokens: un / believ / able). Covers both Input tokens (prompt, history, system instructions) and Output tokens (including internal thinking/reasoning steps).
- 03Context Window & Hallucinations: AI working memory is finite; information outside the window is forgotten. When facing knowledge gaps, LLMs predict plausible-sounding false answers instead of saying "I don't know."
- 04Temperature & Knowledge Cutoff: Low temperature (near 0) enforces consistency for code and factual Q&A, while high temperature (near 1) boosts creativity (0.3-0.7 middle ground, testable in Google AI Studio). Events past the training cutoff require RAG / web search or prompt context.