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.

Match the models (Optional)

Which model wrote which summary? Select a matchup mapping below before voting.

Summary A

DSPy prompt optimization surfaced a concrete failure mode: telling an agent to skip describe_table when it "already has" schema info triggered column-name hallucination (guessing page_count, o.order_id) and error-retry loops, because the schema listing only exposed table names, not columns. The fix is trivial—include column names in the prompt or drop the premature-optimization advice—but the lesson is that "don't re-fetch what you have" instructions backfire when your context never actually contained the detail the model needs.

LinkedIn

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