Agents & InferenceSimon Willison

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

Which summary reads better? Pick one — models revealed after.Both summaries are AI-generated.

Summary A

Datasette Agent’s SQL prompt was causing models to guess nonexistent column names because the schema context listed only table names while discouraging extra describe_table calls. For production text-to-SQL agents, include column names in the initial schema context or relax tool-use constraints, otherwise you’ll pay for avoidable failed queries, retries, and lower answer reliability.

LinkedIn

Two AI summaries of each story, blind-voted — see today's agents & inference digest →