ACAlexander Codesinalexandercodes.hashnode.dev·Jul 26 · 7 min readTest Your Pydantic AI SQL Agent with Pydantic EvalsYou've built a Pydantic AI agent that translates business questions into SQL. A user asks for total order value by region, including tax. The agent returns: SELECT region, SUM(subtotal) AS order_total00
ACAlexander Codesinalexandercodes.hashnode.dev·Jul 14 · 9 min readHow to Evaluate LLM Answers with the dbt Semantic LayerAn AI assistant can produce a perfectly valid MetricFlow query, and still answer the wrong question. It might choose the wrong metric, dimension, filter, or time grain. The query runs, the result look00
ACAlexander Codesinalexandercodes.hashnode.dev·Jun 29 · 10 min readHow to Evaluate AI-Generated SQL on DatabricksAn AI assistant can produce a query that runs and returns a plausible result. But how do we know if it's correct? Suppose a user asks: Which enterprise customers had revenue growth last quarter? An 00
ACAlexander Codesinalexandercodes.hashnode.dev·Jun 9, 2025 · 10 min readAn Elegant Stack MachineIntroduction Lately I’ve been fascinated with simple models of computation. It’s astounding to me that systems like the lambda calculus and SKI combinators, defined in just a few lines, can express any computable function. But there’s one thing in pa...00
ACAlexander Codesinalexandercodes.hashnode.dev·Feb 26, 2025 · 15 min readData Types in Algorand PythonIn this article, we’ll explore the differences between Python’s built-in data types, Algorand Virtual Machine types, and Algorand Python types. What is a Data Type? I like to think of a data type as a set of values, and a set of operations on those v...00