Tutorials

Blog, page 2

Page 2 of 16: every tutorial, newest first.

Tutorials

Newest first · 31 to 60 of 461

  1. Generative AI and NLPGPT vs Claude vs Gemini: Python Benchmark (2026)Build a Python benchmarking harness to compare GPT-4o, Claude, Gemini, and Llama on quality, latency, and cost with LLM-as-judge and radar charts.13 min read4 runnable examples
  2. Generative AI and NLPLLM Evaluation: Build an LLM-as-Judge PipelineBuild an LLM evaluation pipeline in Python with LLM-as-judge scoring, rubric design, A/B testing, and regression alerts. Runnable code examples included.14 min read9 runnable examples
  3. Generative AI and NLPBuild an LLM Benchmarking Platform (Python Project)Build an LLM benchmarking platform in Python from scratch. Define test suites, compare providers with raw HTTP, score with LLM-as-judge, and generate reports with confidence intervals.10 min read18 runnable examples
  4. Generative AI and NLPLLM API Pricing Guide: Compare & Optimize CostsLearn to count LLM tokens with tiktoken, compare API pricing across OpenAI, Claude, and Gemini (March 2026), and cut costs by 90% with 10 proven strategies and code.13 min read9 runnable examples
  5. Generative AI and NLPOpenAI, Claude & Gemini API Tutorial in Python (2026)Learn to call OpenAI, Claude, and Gemini APIs from Python in 15 minutes. Includes code examples, error handling, streaming, and a unified wrapper.13 min read2 runnable examples
  6. Generative AI and NLPKV Cache Explained: Build a Cache Manager in PythonLearn how KV caching works in LLMs, calculate VRAM usage for real models, and build a PagedAttention-style cache manager with token eviction in pure Python.14 min read21 runnable examples
  7. Generative AI and NLPGroq vs Fireworks vs Together AI: Speed BenchmarkBuild a Python benchmark harness comparing Groq, Fireworks, Together AI, and Replicate on latency, throughput, and cost with runnable code.10 min readCode to run on your machine
  8. Generative AI and NLPHugging Face Inference API Tutorial in PythonMaster Hugging Face inference in 20 minutes. Run LLMs locally with Pipeline API or serverless via HTTP, with Python examples you can copy and run.10 min readCode to run on your machine
  9. Generative AI and NLPGemini API Tutorial: Multimodal AI in PythonBuild a multimodal document analyzer with the Google Gemini API in Python. Analyze images, PDFs, and text with structured JSON output, using raw HTTP requests.13 min read3 runnable examples
  10. Generative AI and NLPLLM Context Windows Explained: Token Budget GuideLearn how LLM context windows work, count tokens with tiktoken, estimate API costs, and build a Python token budget manager that allocates context across system prompts, examples, and input.10 min read8 runnable examples
  11. Generative AI and NLPConstitutional AI: Build a Self-Critique Loop (Python)Build a Constitutional AI safety loop in Python. Generate, critique, and revise LLM responses with raw API calls, no fine-tuning needed.9 min read1 runnable example
  12. Generative AI and NLPHow LLM Tokenization Works: Build a BPE TokenizerBuild a working BPE tokenizer in Python, learn how text becomes tokens, and use tiktoken to count tokens and estimate LLM API costs across providers.12 min read8 runnable examples3 exercises
  13. Generative AI and NLPClaude API Tutorial: Messages, Tools & StreamingMaster the Claude API with raw HTTP, messages, streaming, tool use, extended thinking, and prompt caching with runnable Python code examples.8 min read19 runnable examples
  14. Practice exercises101 Pandas Exercises for Data Analysis (Interactive)101 interactive pandas exercises with solutions. Edit and run every code block directly in your browser, no installation needed.11 min read119 runnable examples
  15. Generative AI and NLPWhat Is LangGraph? How It Works and When to Use ItDiscover what is LangGraph, how it compares to LangChain, and when graph-based orchestration is the right choice for building reliable AI agents.10 min read4 runnable examples
  16. Generative AI and NLPPrompt Engineering Fundamentals, Reliable LLM OutputsApply prompt engineering fundamentals, zero-shot, few-shot, chain-of-thought, and structured output, to get consistent, reliable results from any LLM.17 min read8 runnable examples
  17. Generative AI and NLPLangGraph Tool Calling: Build Agents That Take ActionBuild LangGraph agents that call tools with @tool, bind_tools, and ToolNode. Step-by-step examples for web search, database queries, and API calls in Python.10 min read1 runnable example
  18. Generative AI and NLPLangGraph Subgraphs: Compose Reusable WorkflowsLearn how to build modular LangGraph apps with subgraphs you can develop, test, and reuse across projects, with full code examples and patterns.11 min readCode to run on your machine
  19. Generative AI and NLPLangGraph Structured Output & Self-Correcting AgentsBuild LangGraph agents that return validated, typed data using Pydantic models, with automatic retry loops that self-correct on validation failures.11 min read3 runnable examples
  20. Generative AI and NLPLangGraph Streaming: Real-Time Agent Output GuideAdd real-time streaming to your LangGraph agents, pick the right stream mode, show tokens as they arrive, and build chat UIs that feel instant.13 min read1 runnable example
  21. Generative AI and NLPLangGraph State Management: TypedDict & ReducersMaster LangGraph state management with TypedDict schemas, reducer functions, and add_messages. Learn how nodes share data, merge updates, and track message history.9 min read7 runnable examples
  22. Generative AI and NLPLangGraph ReAct Agent: Build from ScratchLearn to build a ReAct agent from scratch in LangGraph with this hands-on guide, wire the think-act-observe loop, add tools, and debug agent cycles.13 min read2 runnable examples
  23. Generative AI and NLPLangGraph RAG Agent: Self-Correcting Retrieval PipelineBuild a RAG agent in LangGraph that routes questions, grades documents, detects hallucinations, and rewrites queries when results are poor. Full code included.11 min read1 runnable example
  24. Generative AI and NLPLangGraph SQL Agent: Answer Business QuestionsStep-by-step guide to building a LangGraph SQL agent that turns plain English into SQL, runs queries, retries on errors, and explains results clearly.17 min read10 runnable examples
  25. Generative AI and NLPLangGraph Multi-Agent Research Assistant ProjectBuild a multi-agent research pipeline in LangGraph with planner, researcher, writer, and reviewer agents that turn any topic into a polished report.12 min read3 runnable examples
  26. Generative AI and NLPLangGraph + FastAPI: Build a Full-Stack AI AppBuild a full-stack AI app from scratch with FastAPI and LangGraph, streaming responses, saved chats, API key auth, and a live chat frontend in one project.11 min read1 runnable example
  27. Generative AI and NLPLangGraph Document Processing Agent: Multi-ModalBuild a LangGraph agent that reads PDFs, images, and text, cross-checks facts across sources, and writes a clean JSON report, with full code walkthrough.10 min read1 runnable example
  28. Generative AI and NLPLangGraph Customer Support Agent with EscalationLearn to build a LangGraph customer support agent that classifies queries, searches a knowledge base, escalates to humans, and logs every step.11 min read3 runnable examples
  29. Generative AI and NLPLangGraph Web Scraping Agent: Autonomous PipelineLearn to build a LangGraph pipeline that scrapes websites on its own, pulls structured data, handles pagination and errors, and writes analytical reports.13 min read4 runnable examples
  30. Generative AI and NLPLangGraph Platform: Deploy Agents as APIsDeploy LangGraph agents as scalable APIs with LangGraph Server, step-by-step guide covering SDK setup, streaming, background runs, and cloud hosting.13 min readCode to run on your machine