NLP & Generative AI
10 min
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
Language models, embeddings, transformers and generative methods.
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 Retrieval-Augmented Generation (RAG) works, why it outperforms basic LLMs for custom data, and how to build a working RAG app in Python.
Learn data cleaning with Python and pandas: fix text, dates, types, duplicates and missing values with a tested pipeline you can check against ground truth.