Python

14 pieces on Python, including 12 step-by-step guides.

Guides

Chain of Verification with SGLang: Reduce LLM Hallucinations
guides
Shan2026-08-29
SGLanghallucinationLLM inferencechain-of-verificationPython

Chain of Verification with SGLang: Reduce LLM Hallucinations

Build a factored Chain-of-Verification pipeline with SGLang that runs draft, verify, refine, and summarize as independent LLM calls.

Read more
guides
Shan2026-08-21
ClaudeWatermarkingC2PAPythonAI Governance

How to Remove Claude Watermarks from Text, Code, and Files

A practical guide to handling Claude watermarks across prose, Python code, and C2PA-marked files, with rewrite and inspection code.

Read more
AI Web Scraping in Python: When an LLM Earns Its Cost
guides
Shan2026-08-17
web scrapingCrawl4AIPythonLLMdata extractionautomation

AI Web Scraping in Python: When an LLM Earns Its Cost

An LLM can read any page without a selector, and it bills you every time. Here is the decision rule, the Crawl4AI code for both paths, and the hybrid that pays for a model once and then runs free.

Read more
Generate Video with Google Veo 3.1 and the Gemini Python SDK
guides
Shan2026-08-12
video generationGemini APIPythonVeogenerative AI

Generate Video with Google Veo 3.1 and the Gemini Python SDK

Call the Veo 3.1 API from Python to generate MP4s from text prompts, images, and reference assets — including audio, first/last frame control, and video extension.

Read more
Run parallel Claude agents with asyncio and a message hub
guides
Shan2026-08-10
agentsasyncioanthropicorchestrationpython

Run parallel Claude agents with asyncio and a message hub

Build a lightweight Python orchestration layer that runs multiple Claude agents concurrently, routes messages between them via a shared hub, and synthesises results.

Read more
Build a Deep Research API Agent Pipeline with OpenAI
guides
Shan2026-08-09
openaideep-researchagentspythonmcp

Build a Deep Research API Agent Pipeline with OpenAI

Run a four-agent Deep Research pipeline—clarification, prompt enrichment, MCP file search, and citation extraction—using OpenAI's agents SDK.

Read more
guides
Shan2026-05-24
Qwen3OllamaLocal LLMsPythonReasoning Models

How to Run Qwen3 Locally with Ollama: Setup, API, and a Gradio App

Set up Qwen3 locally in minutes using Ollama. Covers every model variant, thinking mode control with /think and /no_think tags, CLI, REST API, Python SDK, and a practical Gradio reasoning app.

Read more
guides
architect2026-05-23
Local LLMProjectsPythonAutomation

5 Cool Things I Did With Local Language Models

Discover five unique, practical, and incredibly fun projects you can build on consumer hardware using open source local LLMs.

Read more
guides
AI Mastery Team2026-05-23
RAGEvaluationLLMsPython

Mastering Advanced RAG Evaluation: From Basic Metrics to LLM-as-a-Judge

Read more
guides
architect2026-05-23
PythonSearchEmbeddingsLLMsNLP

Building Context-Aware Search in Python with LLM Embeddings and Metadata

A complete guide to constructing a semantic engine using SentenceTransformers and pre-filtering metadata to return context-rich results.

Read more
guides
Bala Priya C2026-04-29
PythonAgentsPydantic

Building AI Agents in Python with Pydantic AI

Read more
Guide
architect2026-04-05T09:00:00Z
LangChainRAGVector DatabasesPythonAI Engineering

Getting Started with LangChain in 2026

A comprehensive tutorial on building your first RAG application using the latest LangChain updates.

Read more

News & Analysis