Tutorials

Blog, page 3

Page 3 of 16: every tutorial, newest first.

Tutorials

Newest first · 61 to 90 of 461

  1. Generative AI and NLPLangGraph Checkpointing: Save & Resume Graph StateSave and resume LangGraph agent state with checkpointers so your conversations survive crashes, restarts, and long breaks between sessions.11 min readCode to run on your machine
  2. Generative AI and NLPLangGraph Debugging with LangSmith Tracing GuideMaster LangGraph debugging with LangSmith tracing, follow step-by-step examples to inspect agent runs, tag traces, and monitor production performance.10 min read2 runnable examples
  3. Generative AI and NLPLangGraph Multi-Agent: Supervisor, Swarm & NetworkBuild multi-agent AI systems in LangGraph using supervisor, swarm, and network patterns, with full code for each and a guide to choosing the right one.13 min readCode to run on your machine
  4. Generative AI and NLPLangGraph Memory: Short-Term, Long-Term & ConversationBuild LangGraph agents with lasting memory using sliding windows, summaries, and cross-session stores to manage tokens and recall user context.13 min read1 runnable example
  5. Generative AI and NLPLangGraph Map-Reduce: Parallel Execution with Send APILearn how to run LangGraph branches in parallel using the Send API and map-reduce pattern to process multiple items at once and merge results cleanly.12 min read2 runnable examples
  6. Generative AI and NLPLangGraph Installation & Setup: Build Your First GraphComplete your LangGraph installation setup in minutes, then build and run your first StateGraph that calls an LLM and returns a response.8 min read2 runnable examples
  7. Generative AI and NLPLangGraph Human-in-the-Loop: Add Approval StepsLearn to pause LangGraph agents for human review, accept edits, and resume safely with working interrupt and Command patterns.10 min read2 runnable examples
  8. Generative AI and NLPLangGraph Nodes, Edges & State: Core Concepts ExplainedUnderstand LangGraph nodes edges state and conditional routing through visual diagrams and runnable Python examples you can copy and extend.10 min read13 runnable examples
  9. Generative AI and NLPLangGraph Error Handling: Retries & Fallback StrategiesMake your LangGraph agents production-ready with retry logic, fallback paths, and error tracking that keeps pipelines alive when things go wrong.13 min read4 runnable examples
  10. Generative AI and NLPLangGraph Cycles & Recursion Limits: Control Agent LoopsMaster LangGraph cycles and recursion limits, stop runaway agents, handle GraphRecursionError, and build clean exit strategies for your loops.10 min readCode to run on your machine
  11. Generative AI and NLPLangGraph Conditional Edges: Dynamic Routing GuideBuild LangGraph workflows that branch at runtime using conditional edges and routing functions. Route by LLM output, user input, or custom logic with examples.8 min read2 runnable examples
  12. Generative AI and NLPLangGraph Code Generation Agent: Build & Run PythonStep-by-step guide to building a LangGraph agent that writes Python code, runs it safely, checks the output, and self-corrects until it works.11 min read3 runnable examples
  13. Generative AI and NLPLangChain Crash Course, Chains, Models, and Output ParsersFollow this hands-on LangChain tutorial to master chat models, prompt templates, output parsers, and LCEL chains with runnable Python examples.11 min read5 runnable examples
  14. Generative AI and NLPIntroduction to LLMs and the OpenAI API in PythonStart using the OpenAI API Python SDK today. Build your first LLM-powered app with runnable code for chat completions, streaming, and token management.13 min readCode to run on your machine
  15. Generative AI and NLPUnsloth Fine-Tuning, Train LLMs 2x Faster with 70% Less MemoryFine-tune LLMs with Unsloth, 2x faster training, 70% less GPU memory. Step-by-step guide with LoRA, QLoRA, code examples, and deployment tips.15 min read1 runnable example
  16. Generative AI and NLPHow to Evaluate LLMs, Metrics, Benchmarks & Python CodeLearn LLM evaluation from scratch -- benchmarks, metrics (BLEU, ROUGE, perplexity), LLM-as-judge, and custom pipelines with runnable Python code.15 min read27 runnable examples
  17. Generative AI and NLPHow to Evaluate an LLM: Benchmarks, Metrics, and Practical WorkflowsEvaluate your LLM using MMLU, MT-Bench, LLM-as-judge, and ROUGE. Covers lm-evaluation-harness, fine-tuned model comparison, and evaluation pitfalls. With code.15 min read3 runnable examples
  18. Machine LearningFine-Tuning LLMs with LoRA and QLoRA in Python, A Complete GuideFine-tune LLMs with LoRA and QLoRA in Python. Complete guide covering memory math, PEFT setup, 4-bit QLoRA, adapter merging, and common mistakes, with runnable code.13 min read2 runnable examples
  19. Generative AI and NLPDPO (Direct Preference Optimization), A Simpler Alternative to RLHFAlign LLMs with human preferences using one loss function -- no reward model, no RL. Complete guide with derivation, PyTorch code, and DPO variants.19 min read13 runnable examples
  20. Machine LearningHow to Build a Custom Instruction Dataset for LLM Fine-TuningLearn how to build a custom instruction dataset for LLM fine-tuning, covering Alpaca, ShareGPT, and DPO formats, quality filtering, synthetic data generation, token budgeting, and HuggingFace Hub upload with Python.16 min read11 runnable examples
  21. Generative AI and NLPHow LLMs Work: Transformers Explained Step-by-StepLearn how LLMs work step by step. Build an inference simulator in Python, tokenize, embed, compute attention, sample, and decode with runnable code at every stage.17 min read16 runnable examples
  22. Machine LearningHow to Fine-Tune LLMs with LoRA in Python, A Complete GuideLearn how to fine-tune large language models with LoRA in Python using PEFT and TRL, covers LoraConfig, QLoRA, SFTTrainer, model merging, and common mistakes on consumer GPUs.17 min readCode to run on your machine
  23. Generative AI and NLPBuild an AI Chatbot with Memory in Python (2026)Build a Python AI chatbot with conversation memory that actually remembers. Raw HTTP tutorial with streaming, 3 hands-on exercises, and complete code you can run today.12 min read4 runnable examples
  24. PythonBuild Your First AI App with Python, Step-by-Step TutorialBuild your first AI app with Python and the OpenAI API. Step-by-step tutorial covering chat completions, streaming, error handling, and cost control, with runnable code.11 min read10 runnable examples
  25. PythonWhy Python Lacks Traditional OOP EncapsulationUnlike Java Python treats encapsulation as a guideline, not a rule. Understand how this philosophy shapes OOP practices.3 min read8 runnable examples
  26. PythonMemory Optimization in Python: How slots WorksUnderstand __slots__ in Python, a technique that replaces dynamic dictionaries with fixed attributes for faster, more efficient classes.2 min read3 runnable examples
  27. PythonUnderstanding Python Descriptors and the __set_name__ MethodLearn how Python descriptors work with __set_name__. Control attribute access and understand descriptor protocols with clear examples.3 min read13 runnable examples
  28. PythonPython’s Magic Methods: How to Overload Operators ProperlyDiscover how operator overloading is implemented using magic methods, allowing custom classes to integrate with Python's core operations.3 min read10 runnable examples
  29. PythonPython @property: Getters, Setters, and Attribute Control GuideLearn to use Python's @property decorator to implement getters and setters for safe attribute access and data validation in OOP.2 min read6 runnable examples
  30. PythonPython Method Decorators- @classmethod vs @staticmethod vs @propertyUnderstand Python's key method decorators: when to use @classmethod for class state, @staticmethod for pure functions, and @property for attribute control.4 min read7 runnable examples