Da

Dataherald AI – Natural Language to SQL Engine

Hacker News

Dataherald AI – Natural Language to SQL Engine

Hi HN community. We are excited to open source Dataherald’s natural-language-to-SQL engine today ( https://github.com/Dataherald/dataherald ). This engine allows you to set up an API from your structured database that can answer questions in plain English. GPT-4 class LLMs have gotten remarkably good at writing SQL. However, out-of-the-box LLMs and existing frameworks would not work with our own structured data at a necessary quality level. For example, given the question “what was the average rent in Los Angeles in May 2023?” a reasonable human would either assume the question is about Los Angeles, CA or would confirm the state with the question asker in a follow up. However, an LLM translates this to: select price from rent_prices where city=”Los Angeles” AND month=”05” AND year=”2023” This pulls data for Los Angeles, CA and Los Angeles, TX without getting columns to differentiate between the two. You can read more about the challenges of enterprise-level text-to-SQL in this blog post I wrote on the topic: https://medium.com/dataherald/why-enterprise-natural-languag... Dataherald comes with “batteries-included.” It has best-in-class implementations of core components, including, but not limited to: a state of the art NL-to-SQL agent, an LLM-based SQL-accuracy evaluator. The architecture is modular, allowing these components to be easily replaced. It’s easy to set up and use with major data warehouses. There is a “Context Store” where information (NL2SQL examples, schemas and table descriptions) is used for the LLM prompts to make the engine get better with usage. And we even made it fast! This version allows you to easily connect to PG, Databricks, BigQuery or Snowflake and set up an API for semantic interactions with your structured data. You can then add business and data context that are used for few-shot prompting by the engine. The NL-to-SQL agent in this open source release was developed by our own Mohammadreza Pourreza, whose DIN-SQL algorithm is currently top of the Spider ( https://yale-lily.github.io/spider ) and Bird ( https://bird-bench.github.io/ ) NL 2 SQL benchmarks. This agent has outperformed the Langchain SQLAgent anywhere from 12%-250%.5x (depending on the provided context) in our own internal benchmarking while being only ~15s slower on average. Needless to say, this is an early release and the codebase is under swift development. We would love for you to try it out and give us your feedback! And if you are interested in contributing, we’d love to hear from you!

Share card

Actual performance

215points
103comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: agent, context, code · Missing: mac, agents, macos
88%88% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Strong signals: including · Missing: supports, reddit linkedin, podcasting
79%79% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: excited, exist, lua · Missing: https docs, just released, filesystem
75%75% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Strong signals: month · Missing: mobile apps, ios, personal
45%45% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
36%36% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
20%20% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Na
Natural Language to SQL40%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Natural Language to SQL

Hacker News2
Na
Natural Language to SQL "Text-to-SQL" API65%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Natural Language to SQL "Text-to-SQL" API

Hacker News62
Ne
New Natural Language to SQL Platform Is a Gamechanger60%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

New Natural Language to SQL Platform Is a Gamechanger

Hacker News4
Ne
New Natural Language to SQL Platform Is a Gamechanger60%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

New Natural Language to SQL Platform Is a Gamechanger

Hacker News2
As
AskData – API to Translate Natural Language-2-Sql61%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

AskData – API to Translate Natural Language-2-Sql

Hacker News111
Ne
New Natural Language to SQL interface is a gamechanger57%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

New Natural Language to SQL interface is a gamechanger

Hacker News3
De
Delphi – A Natural-Language-to-SQL AI for the Modern Data Stack74%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Delphi – A Natural-Language-to-SQL AI for the Modern Data Stack

Hacker News2
Na
Natural Language Querying43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Natural Language Querying

Hacker News17
A
A free Platform for a Natural Language to SQL Search-Box61%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A free Platform for a Natural Language to SQL Search-Box

Hacker News2
Co
Colrows – Compile natural language to governed SQL instead of guessing61%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Colrows – Compile natural language to governed SQL instead of guessing

Hacker News1