Every tutorial builds toward a live project and AI literacy.
I work through the sources, build with what I learn, and write up what holds up. I'd like more people in India to become AI literate, and this is a small step toward that.
- 01
Gather
Courses, docs and papers I find useful.
- 02
Explain
Why it exists first, then how it works, in plain language.
- 03
Build
Each topic goes into a project I'm taking toward a live version.
1. Start here
Orientation and the Python you need.
AI Fluency: the 4Ds
Delegation, Description, Discernment, Diligence. The skills for working with any AI that outlast any single model or tool.
DelegationDescriptionDiscernmentDiligence Read the tutorial → Tutorial 02Python fundamentals for AI
The small set of Python ideas that almost every AI program is built from, ending in a direct model call.
f-stringsDictionariesLoopsClassesAPI call Read the tutorial →2. Working with LLMs
What models can do, how to ask, and how to steer them.
What LLMs can do
The short list of text operations behind most language-model applications, and how they chain into an agent.
InferenceExtractionTranslationExpandingTemperature Read the tutorial → Tutorial 04Prompt engineering tactics
Nine prompting tactics that still hold, and why each matters.
DelimitersFew-shotStructured outputGrounding Read the tutorial → Tutorial 05Sampling parameters
How a model picks its next token, and what newer models changed.
TemperatureTop-kTop-pMax tokens Read the tutorial →3. How LLMs work
A working picture of what happens inside.
How a transformer works
The path from your text to the next token, and how attention lets words take meaning from each other.
TokensEmbeddingsAttentionBERT vs GPT Read the tutorial → Tutorial 07How LLMs are built
Pre-training, instruction tuning, RLHF and PEFT, and which lever to pull.
Pre-trainingRLHFLoRAFine-tuning Read the tutorial →4. Building with APIs
Conversation state, context and the Claude API.
Conversation state and the context window
Why a chatbot has no memory, and how to trim, summarise or cache past the limit.
StatelessContext windowCaching Read the tutorial → Tutorial 09Building with the Claude API
Tool use, extended thinking, caching, streaming and MCP, with what has changed.
Tool useThinkingStreamingMCP Read the tutorial →5. Agents
Models that use tools in a loop.
An agent is prompts joined by logic and memory
A plain definition of an agent, the chain that leads into one, and where it goes wrong.
ChainsLogicMemoryAgent loop Read the tutorial → Tutorial 11Agent frameworks and APIs
The four parts every agent stack shares, how the main options differ, and which names are out of date.
ToolsAgent loopClaudeOpenAILlamaIndexLangGraph Read the tutorial →6. Retrieval (RAG)
Answering from your own documents.
Retrieval in three layers
Chunking, search and reranking: what each layer fixes, and how to tell which one to change.
ChunkingHybrid searchRerankingVector stores Read the tutorial → Tutorial 13Advanced retrieval
Sentence-window and auto-merging retrieval: search on small pieces, return bigger ones.
Sentence-windowAuto-mergingLlamaIndex Read the tutorial → Tutorial 14Evaluating RAG
Precision, recall, faithfulness and relevance, and how to tell which half of the system broke.
PrecisionRecallFaithfulnessEval loop Read the tutorial →7. Production engineering
Making AI apps observable and dependable.
Logging for AI apps
Replace print() with logging, record what matters for each model call, and keep secrets out of your logs.
Logging levelsStructured JSONToken usageRedaction Read the tutorial → Tutorial 16Tracking production agents
How to track what an agent did and how it performed: the options, and the same agent tracked with Python logging and with LangSmith.
Why it mattersOptionsPython loggingLangSmith Read the tutorial → Tutorial 17Retries and failure handling
How many attempts, how long to wait, and what to wrap: retrying failed AI calls with Tenacity, and the mistake hiding in the wait settings.
TenacityExponential backoffWhat to retry Read the tutorial → Tutorial 18The Batch API as a cost lever
Same model, half the price, if the answer can wait: deciding what goes in a batch, and running one.
Batch APICostcustom_id Read the tutorial → Tutorial 19Securing AI agents: the OWASP agentic Top 10 in practice
Ten ways an AI agent goes wrong, and the controls that belong in code: bound tokens, untrusted agent output, re-checks before acting.
OWASPAgent securityJWT Read the tutorial →