Towards Data Science

Automate Writing Your LLM Prompts

Using DSPy to automatically create, evaluate, and optimize your prompts The post Automate Writing Your LLM Prompts appeared first on Towards Data Science .

Towards Data Science
Jul 29

Prompt Engineering Is Solved—Prompt Management Isn’t

Prompt engineering helps you write better prompts—but it doesn’t help you change them safely. This article explores a common production failure where a simple variable rename breaks every live call, and introduces a lightweight static analysis tool that treats prompts like contracts, catching breaking changes before they ship.

By Emmimal P Alexander
Simon Willison
Oct 18

llm-echo 0.5

The article announces the release of llm-echo version 0.5, a debug plugin that simulates an LLM by echoing back prompts without actual model inference. The new version updates token usage calculations to include tool calls, system prompts, and reasoning tokens. An example shows how to invoke the plugin and view the resulting prompt and token usage.

Towards Data Science
Aug 20

How to Fine-Tune an LLM: An End-to-End Guide

The article "How to Fine-Tune an LLM: An End-to-End Guide" offers a practical, hands‑on walkthrough for fine‑tuning large language models in real‑world scenarios. It covers the entire process from data preparation to deployment, providing readers with actionable steps to adapt LLMs to specific tasks. The guide is aimed at practitioners looking to implement fine‑tuning in a structured, end‑to‑end manner.

By Sam Black
Towards Data Science
Jul 22

How To Build Your Own LLM Runtime From Scratch

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 produced most of the annotations.

By Anubhab Banerjee
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