Show HN: We open sourced our entire text-to-SQL product
419 by aazo11 | 137 comments on Hacker News.
Long story short: We (Dataherald) just open-sourced our entire codebase, including the core engine, the clients that interact with it and the backend application layer for authentication and RBAC. You can now use the full solution to build text-to-SQL into your product. The Problem: modern LLMs write syntactically correct SQL, but they struggle with real-world relational data. This is because real world data and schema is messy, natural language can often be ambiguous and LLMs are not trained on your specific dataset. Solution: The core NL-to-SQL engine in Dataherald is an LLM based agent which uses Chain of Thought (CoT) reasoning and a number of different tools to generate high accuracy SQL from a given user prompt. The engine achieves this by: - Collecting context at configuration from the database and sources such as data dictionaries and unstructured documents which are stored in a data store or a vector DB and injected if relevant - Allowing users to upload sample NL <> SQL pairs (golden SQL) which can be used in few shot prompting or to fine-tune an NL-to-SQL LLM for that specific dataset - Executing the SQL against the DB to get a few sample rows and recover from errors - Using an evaluator to assign a confidence score to the generated SQL The repo includes four services https://ift.tt/EMPtkYc : 1- Engine: The core service which includes the LLM agent, vector stores and DB connectors. 2- Admin Console: a NextJS front-end for configuring the engine and observability. 3- Enterprise Backend: Wraps the core engine, adding authentication, caching, and APIs for the frontend. 4- Slackbot: Integrate Dataherald directly into your Slack workflow for on-the-fly data exploration. Would love to hear from the community on building natural language interfaces to relational data. Anyone live in production without a human in the loop? Thoughts on how to improve performance without spending weeks on model training?
New best story on Hacker News: XMLUI
XMLUI 599 by mpweiher | 323 comments on Hacker News.
-
เคตिเคฆ्เคฏाเคฐ्เคฅ्เคฏांเคตเคฐीเคฒ เค เคฎाเคจुเคท เค เคค्เคฏाเคाเคฐ – เคฎुเค्เคฏाเคง्เคฏाเคชเค เคต เค เคงीเค्เคทเคाเคตเคฐ เคुเคจ्เคนा เคฆाเคเคฒ เคเคฐूเคจ เคคाเคค्เคाเคณ เคाเคฐเคตाเค เคเคฐा. เคเคฆिเคตाเคธी เคाเคฏเคเคฐ เคธेเคจेเคे เคंเคฆ्เคฐเคชूเคฐ เคिเคฒ्เคนा เคเคชाเคง...
-
เคฏेเคจ्เคธा เคฏेเคฅीเคฒ เค เคชเคाเคคाเคค เคฎूเคค्เคฏुंเคฎुเคी เคฎเคนिเคฒाเค्เคฏा เคตाเคฐเคธाเคจा 5 เคฒाเคाเคी เคเคฐ्เคฅिเค เคฎเคฆเคค เคเคฐा เคคुเคฒเคธी เค เคฒाเคฎ เคตเคฐोเคฐा เคถเคนเคฐाเคคीเคฒ เคฌाเคตเคฃे เคฒेเคเคเค เคต เคाॅเคฒเคฐी เคตॉเคฐ्เคก...
-
เคชाเคตเคจा (เคฐै)เคฏेเคฅे เคोंเคกी เคงเคฐ्เคฎ เคช्เคฐเคฌोเคงเคจ เคฎेเคณाเคตा. เคोंเคกी เคชाเคฐंเคชเคฐिเค เคจूเคค्เคฏ เคคเคฅा เคोंเคกी เคฐेเคॉเคฐ्เคกिंเค เคกाँเคจ्เคธ เคจूเคค्เคฏ เคธ्เคชเคฐ्เคงेเคे เคเคฏोเคเคจ. เคญเคฆ्เคฐाเคตเคคी(เคฆि .3...