kapynResearch

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

DSPy is used to evaluate and improve system prompts for the Datasette Agent's SQL execution capabilities. Testing with GPT 4.1 variants revealed that including column names in the schema listing or softening advice against using `describe_table` could prevent errors and improve query accuracy.

Simon Willison·Jul 2, 2026

Opening Kapyn…