iCreatAI News
Skip to content
Trending storyUpdating

OpenRouter benchmarked Text-to-SQL agents and found accuracy improved

1 reports1 sources5 hr agoUpdated

Understand this story

AI overview

OpenRouter tested Text-to-SQL agents on six models using a synthetic store database and 22 questions with known answers: when only the schema was provided, the correct completion rate was 95% (244/256); after adding five rows of data description, it rose to 99% (246/248). OpenRouter says you can use its tool calling API to plug into the same read-only run_sql tool loop, and the database connection should be set to read-only. In the test, 24 of 88 requests to google/gemini-3.8-flash failed due to the provider's server_error, and that model's score only counts completed runs. OpenRouter also notes that each model had only 44 runs on the same synthetic database, so a one-question difference is not enough to rank models; it recommends users retest with two or three of their own questions before choosing a model.

AI overview based on source reports · Updated 3 hr ago

Coverage timeline

Follow the coverage to explore different perspectives.

Dec 3
  1. OpenRouter AnnouncementsFeatured
    Text-to-SQL Agent: How It Works and What Makes It Accurate

    A test of a text-to-SQL agent across six models on a synthetic shop database with 22 questions found 95% correct answers from the schema alone (244 of 256 completed runs) and 99% with a five-line note about data quirks (246 of 248). Most errors came from messy data, such as a country column mixing DE, de, and Germany, rather than invalid SQL. With the notes, openai/gpt-6-luna answered all 44 runs correctly at $0.16 per 1,000 questions, matching anthropic/claude-sonnet-5.5 at $6.20.

Activity for this story

Current comparable activity
9
Peak comparable activity
9Dec 3 10:00
Change in the past 24 hours
–

Trends compare the same fully observed participants, which may cover fewer participants than current activity. Move the pointer or tap the chart to inspect hourly activity; use the left and right arrow keys with a keyboard.