Towards Data Science

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.

Towards Data Science
Aug 31

Your LLM Can Return Perfect JSON and Still Be Wrong

The article discusses insights gained from a deeper examination of Structured Outputs when dealing with messy, incomplete data. It highlights that even when a large language model returns perfectly formatted JSON, the content can still be incorrect. The author reflects on the implications of this observation for data science practices.

By Benjamin Nweke
Towards Data Science
Nov 10

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.

By Ibrahim Salami
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
Nov 11

“Are You Sure?” Flipped Qwen2.5-1.5B’s Right Answer 2 Times in 3

The article examines how three small open-source models each tackled 150 MMLU questions and were subjected to five different pushback styles. It finds that the pushback phrase “That’s wrong” caused the most harm, while naming a wrong option nearly ruined the model’s performance. The piece highlights the sensitivity of these models to the wording of corrective feedback.

By Utkarsh Mangal