---
title: "Using DSPy to evaluate and improve Datasette Agent's SQL system prompts — Stuff That Spins"
description: "Research: Using DSPy to evaluate and improve Datasette Agent's SQL system prompts One of this morning's AIE keynotes covered dspy , which reminded me I've been meaning to see if it could help me improve the system prompt used by Datasette Agent - so I fired off an asynchronous research task in Clau…"
	canonical: "https://stuffthatspins.com/spin/using-dspy-to-evaluate-and-improve-datasette-agents-sql-system-prompts"
html: "https://stuffthatspins.com/spin/using-dspy-to-evaluate-and-improve-datasette-agents-sql-system-prompts"
json: "https://stuffthatspins.com/spin/using-dspy-to-evaluate-and-improve-datasette-agents-sql-system-prompts.json"
markdown: "https://stuffthatspins.com/spin/using-dspy-to-evaluate-and-improve-datasette-agents-sql-system-prompts.md"
keywords: ["SpinGraph", "spin analysis", "GEO"]
date: "2026-07-02T18:25:00+00:00"
modified: "2026-07-02T19:01:03.986869+00:00"
json_ld: |
  {"@context":"https://schema.org","@graph":[{"@type":"NewsArticle","@id":"https://stuffthatspins.com/spin/using-dspy-to-evaluate-and-improve-datasette-agents-sql-system-prompts#article","headline":"Using DSPy to evaluate and improve Datasette Agent's SQL system prompts","description":"Research: Using DSPy to evaluate and improve Datasette Agent's SQL system prompts One of this morning's AIE keynotes covered dspy , which reminded me I've been meaning to see if it could help me improve the system prompt used by Datasette Agent - so I fired off an asynchronous research task in Clau…","datePublished":"2026-07-02T18:25:00+00:00","dateModified":"2026-07-02T19:01:03.986869+00:00","url":"https://stuffthatspins.com/spin/using-dspy-to-evaluate-and-improve-datasette-agents-sql-system-prompts","mainEntityOfPage":{"@type":"WebPage","@id":"https://stuffthatspins.com/spin/using-dspy-to-evaluate-and-improve-datasette-agents-sql-system-prompts"},"isAccessibleForFree":true,"inLanguage":"en-US","articleSection":"developer","author":{"@type":"Organization","name":"Stuff That Spins"},"publisher":{"@id":"https://stuffthatspins.com/#organization"},"citation":"https://simonwillison.net/2026/Jul/2/dspy-datasette-agent-prompts/#atom-everything","about":[],"mentions":[]},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Stuff That Spins","item":"https://stuffthatspins.com/"},{"@type":"ListItem","position":2,"name":"Using DSPy to evaluate and improve Datasette Agent's SQL system prompts","item":"https://stuffthatspins.com/spin/using-dspy-to-evaluate-and-improve-datasette-agents-sql-system-prompts"}]}]}
---

# Using DSPy to evaluate and improve Datasette Agent's SQL system prompts

**Source:** Unknown  
**Published:** July 2, 2026  
**Original:** https://simonwillison.net/2026/Jul/2/dspy-datasette-agent-prompts/#atom-everything  

---
*HTML version: https://stuffthatspins.com/spin/using-dspy-to-evaluate-and-improve-datasette-agents-sql-system-prompts*
