Urgent.News

What's breaking now, across thousands of outlets.

AI

I gave my text-to-SQL agent a business glossary. One version helped a lot, one did nothing.

A text-to-SQL agent sees table and column names. It does not know that "revenue" in your company means billing_invoice.total_net , only for invoices with status = 'issued' . So it guesses, and the guess runs without errors and returns the wrong number. I added business terms to schemagate 1.2.0 (open source, Apache-2.0) and measured whether they help. Short answer: a complete glossary helps a…

A text-to-SQL agent interprets table and column names, but lacks knowledge of business terms like "revenue," which may correspond to "billing_invoice.total_net" for invoices with a status of "issued." When given no terms, the model often guesses incorrectly, yielding lower accuracy. However, adding a complete glossary of business terms, uniquely learned from other questions, significantly improves accuracy.

These terms enable the model to pull relevant tables, though merely learning terms from other users' questions proved ineffective. The results demonstrated that a complete glossary can enhance the agent's performance by 9.9 percentage points. While learned terms improved table discovery, they did not teach the model how to formulate SQL queries.

To optimize the agent, focus on documenting frequently debated business terms, such as "revenue" or "active customer," as they can yield substantial improvements. Additionally, it is crucial to verify that any added terms comply with the caller's access permissions.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

Research Reports Your Agent Writes Need Sources Before Sentences

Ask a coding agent for a research report and you usually get fluent prose first and evidence later — if at all. A single forum post becomes "research shows." A number from 2023 is presented as the…

  • Research reports require vetted sources before finalizing sentences
  • Workflow mandates defining report question and sub-questions first
  • Tertiary sources like social media cannot support core conclusions

I Built My Friend a Voice-First AI for Unfinished Thoughts

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend What I Built I built Thread for my friend, who often gets ideas while walking, reading or watching a series.

  • Thread is a voice-first AI thought companion app
  • Captures unformed ideas through natural speech
  • AI generates summaries, categories, and connections

Yoroku: AI voice imitation raises new questions over rights in Japan

The 1979 American film "The Rose" was inspired by legendary rock singer Janis Joplin, who died suddenly in her 20s. Its star, Bette Midler, also sang

  • Voice is deemed a symbol of personality in Japan
  • Court rules AI voice imitation without consent unlawful
  • AI's impact on copyright and human rights protection

More from Monday 5 October →