AI Agents Explained: How to Build an LLM Agent with Python
AI agents explained: learn how LLM agents use tools, state, and a loop, then build a safe local agent in Python with Ollama, tests, and security guardrails.
Xray AI Lab
Everything published so far, newest first.
AI agents explained: learn how LLM agents use tools, state, and a loop, then build a safe local agent in Python with Ollama, tests, and security guardrails.
Learn how to evaluate LLM responses with test sets, code-based graders, human review, and LLM-as-a-judge, plus a runnable Python harness and common pitfalls.
Learn how backpropagation works: the chain rule, a fully worked numeric example, a NumPy implementation with gradient checking, and common pitfalls.
Learn a repeatable pandas data cleaning workflow: audit, fix text and types, parse dates, handle invalid values, remove duplicates, flag outliers, and validate.
Learn to measure data quality across six dimensions, detect and fix bad data with pandas, enforce rules with pandera, and see how bad data hurts models.
Run a complete exploratory data analysis in Python with pandas and seaborn on the Palmer Penguins data, from data quality checks to a Simpson's paradox.
Learn the probability behind machine learning: Bayes' theorem, key distributions, MLE and MAP, with worked examples and Python code you can run and check.
Agentic AI explained through research: agent architectures, planning, tools, memory, what autonomous agents can really do in 2026, and where they still fail.
Learn derivatives visually, then see how partial derivatives and gradients drive neural-network training, with worked examples and verified Python code.
What is computer vision? Learn the core tasks, the key models from CNNs to Vision Transformers, real applications, and runnable Python examples.