The Most Beautiful Statistic: The History and the Science of the Humble Mean
The mean keeps making its usefulness felt in all sorts of situations, often in truly non-obvious ways
The post The Most Beautiful Statistic: The History and the Science of the Humble Mean appeared first on Towards Data Science.
How I Reproduced BM25, Dense Retrieval, and SPLADE on a 16GB MacBook
A practical reproduction of three retrieval baselines, including the crashes, fixes, and score checks that matter for RAG systems.
The post How I Reproduced BM25, Dense Retrieval, and SPLADE on a 16GB MacBook appeared first on Towards Data Science.
Building a browser-use agent with OpenAI Agents SDK and Playwright MCP
The post How to Give an LLM Agent a Browser appeared first on Towards Data Science.
Data science case study interviews are not just about writing code. They test how you think through a problem, analyze data, make decisions, and explain your approach in a way that solves a real business challenge. In this guide, you’ll learn a simple framework called SCOPE that you can use to appro...
A Complete Guide to AI Red-Teaming (With Garak Tutorial)
Earlier this year, an autonomous AI agent breached McKinsey’s internal AI platform using nothing more than an old SQL injection flaw. No credentials. No human guidance. Less than two hours. It reached production systems, exposing millions of chat messages and hundreds of thousands of files. AI secur...
How to Optimize Vector Search When RAM Gets Too Expensive: On-Disk vs. In-Memory ANN Indexes
Architecting cost-effective infrastructure by navigating the latency and storage trade-offs of HNSW, SPANN, and DiskANN
The post How to Optimize Vector Search When RAM Gets Too Expensive: On-Disk vs. In-Memory ANN Indexes appeared first on Towards Data Science.
Grok Build CLI vs Claude Code: I Tested Both So You Don’t Have To
For months, Claude Code has been the go to terminal coding agent for developers. Then Grok Build arrived in beta on May 14, 2026, giving developers a second serious option and raising a new question: which one actually performs better? I tested both agents on the same real world coding tasks using i...
Stateful vs. Stateless Agent Design: Tradeoffs for Scalable Agentic Systems
In this article, you will learn how an agent's approach to managing state — stateless or stateful — shapes both its implementation and the deployment...
When Data Science Makes Us Sad: The Story of an Overbooked Flight
$8 million vs $5k + Potentially Going Viral
The post When Data Science Makes Us Sad: The Story of an Overbooked Flight appeared first on Towards Data Science.
Prompt Compression Techniques: How to Reduce LLM Costs Without Losing Important Context
Large language models often receive more information than they need. A prompt may include long instructions, retrieved documents, chat history, examples, and tool descriptions. This increases token usage, cost, and response time. It can also make important details harder for the model to identify. P...
7 Best Claude Code Alternatives for CLI Agentic Coding
Discover seven cheaper, faster Claude Code alternatives for CLI agentic coding, with open-source tools, local models, MCP support, and better context control.
It's tempting to treat loop engineering as something invented in a single week in June, but the mechanics behind it are closer to five years old, and knowing the lineage is what separates a real understanding of the idea from just repeating the trend piece.
The hidden cost of asynchronous systems, how tiny CPU tasks quietly became our biggest bottleneck while scaling hundreds of LLM agents.
The post Why Adding More AI Agents Made Our System Slower appeared first on Towards Data Science.
Loop Engineering for RAG Generation: iterate top-k one at a time
Enterprise Document Intelligence [Vol.1 #8bis] - Two regimes for sending retrieved candidates to the generation brick, the sufficiency signal that picks between them, and the per-question type dispatch that makes it cheap
The post Loop Engineering for RAG Generation: iterate top-k one at a time appe...
If you have ever wanted to actually build an LLM inference runtime yourself — pack your own weights, own every barrier, capture your own CUDA graphs — this is what that journey looks like on an H100. A step-by-step tour of a small runtime called annotated-llm-runtime, and the three bugs that produce...
Agentic AI vs AI Automation: What’s the Real Difference?
This scene is playing out across engineering teams everywhere. Someone wraps a few LangChain calls inside a loop, adds a couple of tools, and proudly declares, “We’ve built an AI agent.” The demo looks great. Everyone is impressed. Then it goes to production. The first unexpected input arrives. The ...
Prompt Engineering Isn’t Enough: How Four Bricks of Context Engineering Stop RAG Hallucinations
Enterprise Document Intelligence [Vol.1 #9bis] - Your RAG isn’t hallucinating, it’s answering the wrong context faithfully. On real NIST and World Bank documents, watch each of the four bricks break, and the contract that closes it
The post Prompt Engineering Isn’t Enough: How Four Bricks of Context...
How Much of a Data Science Workflow Can Run on a GPU Today? Part 1: Accelerating Data Preparation
Exploring GPU acceleration with cuDF, cudf.pandas, and the Polars GPU Engine
The post How Much of a Data Science Workflow Can Run on a GPU Today? Part 1: Accelerating Data Preparation appeared first on Towards Data Science.
Apply long-running coding agents to become a more productive engineer
The post How to Run Claude Code Agents for 24+ Hours appeared first on Towards Data Science.
A Beginner’s Guide to Setting Up Claude Code for High Performance Agentic Programming
This article walks through the actual configuration, permissions, hooks, and command habits that separate a fresh install from a setup that holds up under real, sustained agentic work.
Water Cooler Small Talk, Ep. 12: Byzantine Fault Tolerance
How do you make decisions when you can't trust anyone in the room?
The post Water Cooler Small Talk, Ep. 12: Byzantine Fault Tolerance appeared first on Towards Data Science.
Automatically Assign a Category to Uncategorized Rows in Power Query and DAX
Having categorized data is everything in reporting. Uncategorized data cannot be grouped and aggregated. But sometimes we must assign a category to uncategorized data according to certain rules. Let’s see how I solved this in a facility management project.
The post Automatically Assign a Category to...