AI weekly: 23–29 November 2026
Every article published from 23–29 November 2026, newest first, with a short summary of each.
This week's articles
smolagents 1.26 in depth: code agents versus JSON tool calls, sandboxes and managed agents
Run Hugging Face smolagents 1.26 offline with a scripted model: CodeAgent vs ToolCallingAgent, blocked imports, answer checks, max_steps and managed agents.
cmHC explained: fixing how hyper-connections mix residual streams with one dial
China Telecom's cmHC pulls doubly stochastic residual mixing toward the uniform matrix to stop under- and over-mixing. Method, maths, results, limits.
Vector databases explained: HNSW, IVF and product quantisation measured with FAISS
How vector databases search millions of embeddings: HNSW, IVF and product quantisation, a FAISS benchmark, pgvector settings and a product comparison.
Unsupervised learning explained: clustering, PCA, density estimation and anomaly detection
24 November · Unsupervised learning
How unsupervised learning finds structure without labels: k-means, HDBSCAN, PCA, Gaussian mixtures and isolation forests, with worked numbers and runnable code.
Tutorial: build a read-only SQL data agent with LangChain 1.5 and test it without an LLM
Build a LangChain 1.5 agent that answers questions from SQLite, recovers from SQL errors, obeys call limits and passes four pytest tests with a scripted model.
Tree of Thoughts explained: propose, evaluate and search with a runnable Game of 24
24 November · Tree of Thoughts
How Tree of Thoughts makes a model search: proposals, sure/likely/impossible values, BFS with beam b=5, the paper's 74% Game of 24 result and runnable code.
Supervised learning explained: losses, generalisation and honest evaluation, step by step
24 November · Supervised learning
How supervised learning works: regression and classification losses, why models generalise or overfit, and how to evaluate them honestly with scikit-learn 1.9.
Semi-supervised learning explained: pseudo-labels, consistency training and label propagation
24 November · Semi-supervised learning
How semi-supervised learning turns a few labels and lots of unlabelled data into a better model: self-training, FixMatch and label propagation, with code.
How self-supervised learning creates labels from raw data: next-token and masked prediction, perplexity, scaling rules and a tiny PyTorch model you can run.
Self-consistency explained: sample many reasoning paths, vote, and know when it pays
How self-consistency samples several chains of thought and majority-votes the answer: the paper's algorithm and gains, agreement as confidence, cost and code.
Self-RAG and CRAG explained: grading passages, corrective retrieval and web fallback
How Self-RAG and Corrective RAG check their own retrieval: reflection tokens, a grader with two thresholds, knowledge strips and web fallback, in Python.
Reranking for RAG: cross-encoders, LLM rerankers and the latency and cost of each
How rerankers reorder RAG candidates: cross-encoders versus pointwise, pairwise and listwise LLM rerankers, nDCG worked by hand, and token cost per query.
Reflexion explained: agents that learn from failure with verbal feedback, step by step
How Reflexion turns failures into written lessons an agent reuses on its next try: actor, evaluator, self-reflection, memory, paper results and LangGraph code.
ReWOO explained: plan every tool call up front and cut agent tokens, step by step
How ReWOO plans all tool calls in one pass with #E placeholders, runs them without the LLM, then solves: the 5x token claim, worked maths and runnable code.
ReAct explained: the reason-act-observe loop from the paper to LangChain 1.5 code
How ReAct interleaves thoughts, tool calls and observations: the 2022 paper step by step, its prompt, results, costs and runnable Python and LangChain 1.5 code.
RAG evaluation step by step: recall@k, MRR, nDCG, faithfulness and when a gain is real
How to evaluate a RAG system in two halves: retrieval metrics computed by hand and checked with pytrec_eval, generation metrics in Ragas, DeepEval and TruLens.
RAG basics: the retrieve-then-generate pipeline, step by step, and when it beats fine-tuning
How retrieval-augmented generation works step by step: indexing, retrieval, prompt assembly and generation, with worked costs and when RAG beats fine-tuning.
Query transformation for RAG: multi-query, HyDE, step-back, decomposition and routing
How query transformation fixes RAG retrieval misses: multi-query, HyDE, step-back prompts, decomposition and routing, with runnable BM25 code and costs.
Production RAG: ingestion, freshness, access control, caching, latency and cost per answer
How to run RAG in production: incremental ingestion with content hashes, access control before ranking, semantic caching, latency budgets and cost per answer.
Power BI storage modes explained: Import, DirectQuery, Dual and Direct Lake compared
How Power BI storage modes work and when to use each: Import, DirectQuery, Dual, Direct Lake guardrails, composite models, aggregations and incremental refresh.
Plan-and-execute agents explained: planner, executor and replanner in LangGraph 1.2
How plan-and-execute agents work: Plan-and-Solve prompting, the planner, executor and replanner loop, a runnable LangGraph 1.2 graph, costs and trade-offs.
OpenAI publishes its perplexity curve and asks labs to agree limits on pretraining progress
OpenAI's chief scientist published internal log-perplexity numbers and proposed shared limits. What the metric measures, what it misses and how to read it.
Multimodal RAG explained: ColPali page retrieval, PDF parsing, tables and storage costs
How multimodal RAG retrieves from PDFs, tables and images: parsing versus ColPali page images, late-interaction MaxSim, ViDoRe scores and storage costs.
MoE routing explained: top-k gates, load balancing losses and loss-free bias updates
How mixture-of-experts models pick experts per token and keep them evenly loaded: top-k gating, the Switch auxiliary loss, capacity and bias-based balancing.
Meta's Muse family for developers: Ember, Spark Open weights, Glimmer and API prices
A developer guide to Meta's Muse models after Llama: Muse Ember at $0.10 input, open Muse Spark Open and Glimmer weights, licences, prices and how to call them.
MemOnce explained: a 25 MB memory that beats full context for a 4B model at 1M tokens
MemOnce caches a small slice of final-layer states, retrieves once per query and decodes KV on demand. How it works, its numbers and its limits.
Long context vs RAG: when a big prompt replaces retrieval, and what caching changes
When should you paste the whole corpus into a long prompt instead of using RAG? Cost and latency worked out, context caching, KV reuse and accuracy limits.
LATS explained: Monte Carlo tree search for language agents, step by step with code
How Language Agent Tree Search joins ReAct, reflection and Monte Carlo tree search: selection, expansion, values, rollouts, backpropagation and code.
Hybrid search for RAG: BM25, SPLADE and dense vectors fused with reciprocal rank fusion
How hybrid search combines BM25, SPLADE and dense embeddings, with the BM25 formula worked by hand and reciprocal rank fusion compared with score blending.
GraphRAG explained: entity graphs, community summaries, LightRAG and indexing cost
How GraphRAG builds an entity graph and community summaries for RAG, how local and global search differ, how LightRAG compares, and what indexing really costs.
Gemma 4 in late 2026: five sizes, Apache 2.0, EmbeddingGemma 2 and how to choose one
A practical guide to Google's Gemma 4 open models: E2B to 31B, the 12B Unified model, memory needs, Apache 2.0 terms, EmbeddingGemma 2 and how to run each one.
GPTQ and AWQ explained: how 4-bit weight quantisation keeps LLMs accurate
How GPTQ and AWQ shrink LLM weights to 4 bits: the layer-wise objective, Hessian error feedback, activation-aware scaling, worked numbers and runnable code.
GLM-5.4 explained: Z.ai's first looped flagship, its hybrid KV cache and what is confirmed
Z.ai's GLM-5.4 runs GLM-5 layers twice for more depth at the same size. How looping, gated updates and the hybrid KV cache work, and what is still unconfirmed.
FlashAttention explained: tiling, online softmax and why FA4 had to fight the exponential
How FlashAttention computes exact attention without storing the score matrix: tiling, the online softmax, recomputation and the FA4 tricks for Blackwell GPUs.
Fact table types explained: grain, transaction, periodic and accumulating snapshots
A hands-on guide to fact tables: declare the grain, then build transaction, periodic snapshot, accumulating snapshot and factless facts in runnable DuckDB SQL.
Embedding models for RAG: how they work, how to read MTEB and what dimensions really cost
How text embedding models turn chunks into vectors, how contrastive training works, how to read MTEB results and what dimensions cost in memory and money.
Contrastive learning explained: InfoNCE, SimCLR and CLIP with worked numbers and PyTorch code
How contrastive learning trains embeddings by pulling matching pairs together and pushing others apart: the InfoNCE loss, temperature, SimCLR, CLIP and code.
Clover-35B-A3B: a diffusion language model that reports 73.6 on SWE-bench Verified
DiffuSpace turned Qwen3.6-35B-A3B into a block diffusion model with Gated DeltaNet memory. How it decodes in parallel, its benchmark numbers and caveats.
Claude and the Riemann hypothesis claim: what a Lean-checked proof does and does not prove
An Anthropic mathematician says Claude helped prove the Riemann hypothesis in Lean. How proof checking works, what is verified so far and the Claude line-up.
Chunking for RAG explained: fixed, recursive, semantic and late chunking with worked numbers
How to split documents for RAG: fixed-size, recursive, semantic and late chunking, the overlap formula, chunk-size trade-offs and runnable Python to test them.
BigQuery costs explained: bytes billed, partition pruning, clustering and slot editions
How BigQuery bills a query, step by step: logical bytes per column, partition pruning, clustering, caching, cost guards and when slot editions beat on-demand.
Ant's Ling-3.2-air and LingSante-3.1: open hybrid-linear MoE models for agents and medicine
Ant Group's inclusionAI released Ling-3.2-air and two LingSante medical models under MIT. How KDA linear attention, 512-expert MoE and MTP decoding work.
Agentic RAG explained: agents that decide when, where and how to retrieve, step by step
How agentic RAG lets a model decide when, where and what to retrieve, with a runnable loop, token growth worked out, deep research and the guardrails it needs.
Agent trends this week: LangSmith Tool Gateway, Agent 365 identities and manager agents
LangSmith Tool Gateway, Agent 365 identities, Azure Monitor agent tracing, Devin Bots and Replit Missions: what shipped on 17 to 19 November and how it works.
Agent routing explained: send each task to the cheapest model that can do it well
How routers and cascades pick a model per request: classifier routing, confidence cascades, RouteLLM and FrugalGPT results, LangChain 1.5 code and cost maths.
dbt incremental models explained: merge, delete+insert, microbatch and safe backfills
How dbt incremental models work, step by step: is_incremental, unique_key, merge versus delete+insert, late data, microbatch batches and safe backfills.
Who reads your prompts? Canary tests expose leaks at AI inference providers and routers
Dragos seeded about two million prompts with traceable secrets. OpenRouter cut three providers. What leaked, why zero data retention failed, and what to do now.
What is an AI agent? Agents versus chatbots and workflows, explained with runnable code
A plain guide to AI agents: how they differ from chatbots and fixed workflows, the loop at their core, the five workflow patterns and when an agent is worth it.
Unity Catalog explained: namespaces, privileges, credential vending and metric views
How Unity Catalog organises catalog.schema.table, how grants inherit, why reads need three privileges, how credentials are vended and what metric views add.
Tutorial: build and test a typed support agent with Pydantic AI 2.71, step by step
Build a typed order-support agent with Pydantic AI 2.71: dependencies, tools, retries, structured output, usage limits and pytest tests that never call a model.
The agent loop step by step: instructions, tool calls, observations, errors and stopping
Follow one AI agent run step by step in 60 lines of Python: tool calls, observations, an unknown-tool error, loop guards and stop rules versus frameworks.
Stateless MCP explained: how multi round-trip requests replace sessions and callbacks
How the MCP 2026-07-28 spec drops sessions and the initialize handshake, and how multi round-trip requests, requestState and cache hints work in practice.
Star schema, one big table or Data Vault? A measured guide to choosing a data model
Kimball star schemas, one big table and Data Vault compared with a 3-million-row test: storage, query speed, change cost, history and when each model fits.
Speculative decoding in depth: acceptance maths, draft length and adaptive verification
How speculative decoding keeps outputs exact, how acceptance rate and draft length set the speed-up, and why vLLM now sizes verification per request under load.
Spark adaptive query execution explained: shuffle partitions, broadcast joins and skew
How Spark adaptive query execution re-plans at runtime: coalescing shuffle partitions, switching to broadcast joins and splitting skew, measured in PySpark 4.3.
Spark Structured Streaming watermarks, windows and output modes, traced batch by batch
A batch-by-batch trace of Spark Structured Streaming on PySpark 4.3: tumbling, sliding and session windows, how the watermark moves, late rows and output modes.
Snowflake virtual warehouses and credits: sizing, auto-suspend and multi-cluster maths
How Snowflake virtual warehouses turn seconds into credits: size doubling, the 60-second minimum, auto-suspend, multi-cluster scaling and worked cost examples.
Slowly changing dimensions done right: SCD Type 2, surrogate keys and point-in-time fact loads
How to build SCD Type 2 dimensions with surrogate keys, load facts against the version valid at the time, and use Spark 4.3 Auto CDC and ASOF joins.
Shrinking vector search: Matryoshka embeddings, binary quantisation and rescoring
How Matryoshka training and int8 or binary quantisation cut embedding storage by up to 128 times, and how rescoring recovers most of the lost retrieval quality.
RAGAS 0.4.4 in practice: faithfulness, tool call metrics and experiments, step by step
RAGAS 0.4.4 fixes a broken import and keeps the 0.4 collections API. Learn how faithfulness, ToolCallAccuracy, ToolCallF1 and experiments score agents.
Qwen4-Max arrives: Alibaba's new flagship, its prices and how it fits beside open Qwen3.8
Alibaba launched Qwen4-Max on 16 November 2026 at $1.50 and $4.50 per million tokens with a 1M context. How it compares with Qwen3.8 and how to use each model.
Protecting personal data in the warehouse: hashing, keyed tokens, masking and k-anonymity
Why hashed emails are not anonymous, how keyed tokens, dynamic masking and row policies work, and how to measure k-anonymity in SQL, with tested numbers.
One agent in seven frameworks: CrewAI, Agent Framework, OpenAI, Claude, ADK and more
One order-status agent built in CrewAI, Microsoft Agent Framework, OpenAI Agents SDK, Claude Agent SDK, Google ADK, LlamaIndex and smolagents, with tested code.
NVIDIA Nemotron in late 2026: Ultra, Super, Lightning and Transcribe, and how to choose
A guide to NVIDIA's open Nemotron models: sizes, context, licences, hosted prices, maker-reported scores and how hybrid Mamba, MoE and MTP fit together.
NVFP4 and MXFP4 explained: how microscaling makes 4-bit floating point work for LLMs
How 4-bit microscaling formats store LLM weights: the E2M1 grid, block scales, why NVFP4 uses blocks of 16 with FP8 scales, and how to choose between them.
Multi-head latent attention explained: how MLA shrinks the KV cache and why RoPE needs a detour
How multi-head latent attention compresses keys and values into one small latent vector, the absorption trick, decoupled RoPE, and FP8 and FP4 latent caches.
Multi-agent systems in practice: supervisors, handoffs, swarms and subagents compared
How supervisors, handoffs, swarms, routers and subagents work, with runnable LangGraph 1.2 code, counted model calls and token costs to help you pick a pattern.
Mistral Large 4 three weeks on: a 1T open-weight model at $0.70 and the full Mistral line-up
Mistral Large 4 is a 1T-parameter mixture-of-experts model with open weights and 1M context at $0.70 per million input tokens. How it compares with Medium 3.5.
Medallion architecture in practice: bronze, silver and gold with quality gates and replay
Build a bronze, silver and gold pipeline step by step: raw landing, named checks, a quarantine table, a reject-rate quality gate, gold tables and safe replays.
LoRA in depth: rank, alpha, rsLoRA scaling, DoRA and smarter initialisation
How LoRA adapters work mathematically, what rank and alpha really control, why rsLoRA changes the scale, and when DoRA or PiSSA initialisation is worth using.
Llama in late 2026: what Llama 4 still offers, its licence terms and how to run it
A guide to Meta's Llama models as Meta shifts to Muse: Llama 4 Scout and Maverick specs, maker-reported benchmarks, licence limits, hosted prices and setup.
Layered agent guardrails you can run: PII redaction, risk classifiers and human approval
Build layered guardrails for an AI agent with LangChain 1.5: redact PII, cap tool calls, block risky commands with a classifier and require human approval.
LangSmith SDK 0.16 explained: traceable spans, local-only evaluations and review queues
How LangSmith SDK 0.16 traces agents with @traceable, runs evaluate() locally with the new upload_runs flag, and what the new SQL and review APIs add.
LangGraph 1.2 in depth: state, checkpoints, human interrupts, retries and time travel
A runnable LangGraph 1.2.24 walkthrough: typed state and reducers, conditional edges, InMemorySaver checkpoints, interrupt and resume, retry policies, forks.
LangChain 1.5 middleware explained: hooks, limits, tool errors and the new routers
How LangChain 1.5 create_agent middleware works step by step: hooks, order, call limits, tool errors, retries and the new beta model router and auto mode.
Inside a Parquet file: row groups, pages, encodings, statistics and compression measured
A hands-on tour of Parquet internals: row groups, column chunks, pages, dictionary encoding, min-max statistics and codecs, with measured sizes and bytes read.
Idempotent batch jobs: partition overwrites, data intervals and safe backfills
Make batch jobs safe to rerun: static versus dynamic partition overwrite in Spark 4.3, data intervals, high-water marks and Airflow 3.4 backfills, all tested.
How semantic layers stop fan-out: measures, entities and join paths, tested with MetricFlow
Why BI joins double count, and how semantic layers prevent it: measures at their own grain, entity join paths, ratio metrics and symmetric aggregates, tested.
How open models reach 1M tokens: Kimi K3, GLM-5.3-Flash and MiniMax-M3 compared
Kimi K3, GLM-5.3-Flash and MiniMax-M3 offer open weights and 1M-token context with different attention designs. How each works, what it costs, how to pick.
How DPO works: deriving the loss, reading the implicit reward and choosing a variant
How Direct Preference Optimization works: where the loss comes from, what beta does, how to read DPO metrics, and when IPO, SimPO or robust DPO help.
How BPE tokenizers work: training merges, byte-level fallback and choosing vocabulary size
A hands-on guide to byte-pair encoding: how merges are learned, why byte-level BPE handles any text, and how vocabulary size trades memory for length.
How Apache Iceberg tables work: metadata files, manifests, snapshots and hidden partitioning
A hands-on tour of an Apache Iceberg table: metadata.json, manifest lists, manifests, snapshots, hidden partitioning, deletes and time travel with PyIceberg.
Grok API in late 2026: Grok 4.7, custom guidelines, safety identifiers and long-context prices
A guide to xAI's Grok API in November 2026: the Grok 4.x line-up, prices above 200K tokens, the guidelines and safety_identifier fields and a gated cyber mode.
Gemini 4 Hydrogen, xhigh thinking and google-genai 3: what changed for Gemini API developers
Google's Gemini SDK moved to v1 and httpx2 and added Gemini 4 Hydrogen, an xhigh thinking level and Live Interactions. A guide to line-up, prices and migration.
GRPO loss variants explained: advantages, length bias, DAPO, Dr. GRPO and soft clipping
How GRPO computes group-relative advantages, why its original loss is biased by response length, and how DAPO, Dr. GRPO and SAPO change the maths in practice.
GPT Live 1.1, delegation to GPT-6.2 and 8-hour background windows in the OpenAI API
OpenAI added gpt-live-1.1, MCP servers for Live sessions and 2-hour and 8-hour background windows. How the voice-to-backend split works and what it costs.
Extending context windows with RoPE scaling: position interpolation, NTK, YaRN and Llama 3
How rotary position embeddings encode position, why models fail past their training length, and how linear, NTK, YaRN and Llama 3 scaling stretch context.
Delta Lake's transaction log explained: commits, checkpoints, deletion vectors and VACUUM
How Delta Lake turns Parquet files into an ACID table: _delta_log JSON commits, add and remove actions, checkpoints, time travel, deletion vectors and VACUUM.
DeepSeek in late 2026: V4 Pro, V4.1 Flash, sparse attention kernels and off-peak pricing
A guide to DeepSeek V4 Pro and V4.1 Flash: API prices with off-peak discounts, 1M context, DeepSeek Sparse Attention and why FlashMLA dropped Hopper GPUs.
DeepEval 4.3 agent metrics in depth: tool checks, permission gates, loop detection, G-Eval
How DeepEval 4.3.4 scores AI agents: ToolCorrectness, ToolPermission and AgentLoopDetection formulas, G-Eval with an offline judge, and how to build CI gates.
ClickHouse MergeTree explained: parts, granules, the sparse primary key and skip indexes
How ClickHouse MergeTree stores data in parts and 8,192-row granules, how the sparse primary key prunes reads, and when skip indexes or projections help.
Claude Fable 5.2 and Mythos 5.2 two weeks on: the Claude line-up, prices and API changes
A practical guide to the November 2026 Claude line-up: Fable 5.2, Mythos 5.2, Opus, Sonnet and Haiku 5.5, their prices, 1M context and recent SDK changes.
Change data capture with Debezium and Kafka Connect, applied safely with MERGE
How log-based change data capture works with Debezium and Kafka Connect, what a change event contains, and how to apply events idempotently with MERGE.
Building MCP tools with Python SDK 2.3: typed tools, safe errors and the 2026-07-28 protocol
A runnable MCP Python SDK 2.3 walkthrough: MCPServer tools with typed output, ToolError versus crashes, resources, in-process clients and protocol discovery.
An agentic workflow end to end: build, guard, trace, evaluate and deploy a refund agent
Build a refund agent with LangChain 1.5, guard it with approvals and limits, trace it in Langfuse, gate releases with DeepEval and RAGAS, deploy with LangGraph.
Amazon Bedrock adds projects and Trusted Access Programs: what changes, plus the Nova line-up
Bedrock now scopes model calls to projects, adds Trusted Access Programs and retention settings, and AgentCore agents can pay via AWS Billing. Plus Nova prices.
Agent trends this week: pass^k in ADK, OpenAI SDK session tools, Phoenix 22 cost tracking
What changed in agent frameworks from 16 to 22 November 2026: ADK 2.15 reliability metrics and sandboxes, OpenAI Agents SDK 0.25, Phoenix 22 cost tracking.
Agent observability in practice: Langfuse 5, OpenTelemetry GenAI spans, cost and latency
Trace AI agents with Langfuse 5.2, OpenTelemetry GenAI spans and Phoenix, then turn spans into p95 latency and cost per run. Runnable offline code and numbers.
Agent memory explained: threads, long-term stores, trimming and summaries in LangGraph 1.2
How agents remember: thread checkpoints for short-term memory, namespaced stores for long-term facts, and trimming or summaries for small context. With code.
Agent evaluation step by step: trajectory matching, LLM judges, pass^k and benchmark maths
How to evaluate AI agents: trajectory match modes, LLM judges with agreement checks, pass@k versus pass^k, confidence intervals and what tau-bench 2.0 changed.