Towards Data Science

How to Validate LLM Output in a DuckDB and dbt Pipeline

The article explains how to validate large language model (LLM) output within a data pipeline that uses DuckDB and dbt. It describes a Gemini Flash‑Lite step that extracts skills, seniority, and Nigeria eligibility from 18 RemoteOK job postings, and then applies Python checks and dbt tests to ensure the accuracy of each extracted answer.

Towards Data Science
Sep 24

When the Correct Answer Is Nothing, What Does Your Pipeline Return?

The article discusses how the reliability mechanisms added to large language model (LLM) pipelines can lead to confident but incorrect outputs, especially when the correct answer is absent. It examines the behavior of pipelines in such scenarios and highlights the paradox where safeguards intended to improve accuracy may actually reinforce errors. The piece underscores the importance of understanding pipeline responses when faced with missing or ambiguous information.

By Hubert García Gordon
Towards Data Science
Sep 8

The Model Validation Playbook for GenAI: Lessons from Banking

The article discusses how model validation standards are evolving for large language model (LLM) based systems, particularly in the banking sector. It examines what aspects of traditional validation break down, what elements remain applicable, and how to effectively test the quality of LLM outputs. The piece offers practical insights into adapting validation playbooks for generative AI applications.

By Ananya Bhattacharyya
Towards Data Science
Nov 13

How to Check Local LLM Output with Ollama, Gemma 4, and Nimble

The article explains a workflow for verifying local large language model (LLM) outputs using Ollama, Gemma 4, and Nimble. Gemma 4 generates draft replies, while Nimble 9B decides whether to accept, revise, or send the response for human review, and only flagged questions trigger a focused retry. This process ensures higher quality and reliability of LLM-generated content.

By Shuai Guo
Towards Data Science
Oct 20

Skill or MCP Server? Ask What Stops the LLM From Disobeying

The article titled "Skill or MCP Server? Ask What Stops the LLM From Disobeying" discusses the concept of spec-driven test automation, specifically in the context of part 4 of a series. It explores how to prevent large language models from acting against intended instructions. The piece was originally published on Towards Data Science.

By Gal Arav
Simon Willison
Sep 22

llm 0.36

The release of llm 0.36 introduces new OpenAI models gpt-6-sol and gpt-6-luna, and adds support for model plugins to declare that they do not support conversations via supports_conversation = False. When such models receive assistant or tool history, llm raises a ConversationNotSupported error and the chat interface rejects them before starting a session. Additional changes include wrapping reasoning traces in Markdown output with <details> tags and bug fixes from five contributors.

Towards Data Science
Sep 1

Your JSON Is Valid but Your Data Is Wrong: Five Failure Modes LLM Structured Outputs Won't Catch

The article discusses five failure modes that can slip through constrained decoding in large language models, explaining why these errors are not detected by schema validators. It highlights that even when JSON output is syntactically valid, the underlying data can still be incorrect. The post serves as a warning that relying solely on schema validation is insufficient for ensuring correct structured outputs from LLMs.

By Mostafa Ibrahim