HNHacker News
TopNewBestAskShowJobs

saigal

169 karma · joined January 9, 2019

submissionscomments
saigal··on Show HN: We open sourced our entire text-to-SQL product
We'll make the licensing more visible. Stay tuned in a few minutes.
saigal··on Show HN: We open sourced our entire text-to-SQL product
great question, and the one that we get the most :-) this is precisely why we created Dataherald. Off the shelf LLMs can handle a single table and simple questions. Dataherald's quest is to ultimately provide enterprise-grade text to SQL, where complex schema and joins are present. it does take some training, but we've found that it can handle situations such as the one you mention above.
saigal··on Show HN: We open sourced our entire text-to-SQL product
the target audience is developers who wish to embed text to SQL functionality into their own products. the target audience is less the 'internal use case' (i.e. a data analyst) and more about letting external users do things they couldn't do before. a good example is payroll software where this type of technology can allow users to pull reports.
saigal··on Show HN: Natural Language to SQL "Text-to-SQL" API
this is on roadmap. which LLM are you focused on using? so far GPT 4 has performed best, head and shoulders above other LLMs, so as a result we are using this one now.
saigal··on Show HN: Natural Language to SQL "Text-to-SQL" API
can you tell me more?
saigal··on Show HN: Natural Language to SQL "Text-to-SQL" API
Thanks so much for the kind words.

Getting NL-to-SQL to work at the enterprise grade takes work and a specialized engine / agent to do so (we use fine-tuning together with RAG). I don't believe this will be the objective of OpenAI. Additionally, there are plenty of companies who will want to use a LLM not governed by OpenAI (e.g. another open source model). Dataherald will ultimately allow anyone to swap out the LLM of their choosing. At the moment however GPT4 performs far and above any other model that we've tested.

saigal··on Show HN: Natural Language to SQL "Text-to-SQL" API
Anuj[at]dataherald.com
saigal··on Show HN: Natural Language to SQL "Text-to-SQL" API
This is a good point and one that we’ve grappled with a lot. My point of view after working on 30+ company deployments is that it depends on the use case. Here’s an example: you have a very analytical BizOps lead at a mid market company. He/she is smart, knows data, can do pivot tables, the whole shabang. But every time they need to get data that isn’t in the BI tool they issue a jira ticket for the data analyst to process / fetch because they don’t know SQL well enough.

The dataherald engine is perfect. They are able to use natural language, admittedly with a few iterations, to get the cut of data that they seek. This cuts down hours, or even days from their inquiry.

saigal··on Show HN: Natural Language to SQL "Text-to-SQL" API
Yes, absolutely. Every AI-generated SQL comes with a confidence score, so that you stay in control. We've had people who set a confidence threshold for returning answers to the users. If confidence threshold isn't met, then there's human-in-the-loop.
saigal··on Show HN: Natural Language to SQL "Text-to-SQL" API
The API introduction announcement is here: https://www.dataherald.com/news/introducing-dhai
saigal··on Show HN: Natural Language to SQL "Text-to-SQL" API
i'll try to change it out the link
saigal··on Show HN: Natural-SQL-7B, a strong text-to-SQL model
can you fine-tune the LLM?
saigal··on Fine-tuning GPT-3.5-turbo for natural language to SQL
True. The goal would be write the complex SQL query once, then file it away as golden SQL so that in the future a similarly complex query could be done in natural language.
saigal··on Fine-tuning GPT-3.5-turbo for natural language to SQL
A tutorial on how to fine-tune a GPT3.5 model for Natural Language to SQL tasks and a comparison of its performance vs Retrieval Augmented Generation. Based on the results, fine-tuning can match and outperform RAG (the approach matches the state of the art on accuracy while being far faster and cheaper). The big challenge for fine-tuning tasks like this is building the training datasets. Things should get even more interesting when GPT-4 is opened for fine-tuning.
saigal··on Show HN: Dataherald AI – Natural Language to SQL Engine
GPT4 is best right now for all the reasons you likely already know. We are working on self-hosted but for right now it is GPT4. We can let you know when we work on self-hosted, which will no doubt come in the future. feel free to email me at anuj at dataherald dot com or sign up on our site (https://www.dataherald.com/contact) and i will keep you posted.

i should note that our (dataherald's) product only sends schema to the LLM, which is important to note.

saigal··on Show HN: Dataherald AI – Natural Language to SQL Engine
happy to connect and describe more to see whether we could collaborate. please feel free to email be at anuj at dataherald dot com or sign up here and we will get in touch https://www.dataherald.com/contact
saigal··on Show HN: Dataherald AI – Natural Language to SQL Engine
Do you mean that SQL will significantly fade away?
saigal··on Show HN: Dataherald AI – Natural Language to SQL Engine
Very cool! is this mostly for unstructured data search? Any interest in adding tabular / structured data NL search?
saigal··on Show HN: Dataherald AI – Natural Language to SQL Engine
Curious as to why you pivoted away from the previous NL-to-SQL startup?
saigal··on Show HN: Dataherald AI – Natural Language to SQL Engine
I want to double-down on what AAzo11 replied. There is a human in the loop via an admin dashboard that allows quick approval / editing in the event of incorrect queries. This significantly decreases time for a member of the data team to field requests since they typically block out an hour to approve/edit these queries before going back to the question-asker.
saigal··on Show HN: Dataherald AI – Natural Language to SQL Engine
I agree that allowing a user, particularly a non-technical one, to see the auto-generated SQL (i.e. the SQL created from natural language) might actually encourage understanding of the data. It can create an easier on-ramp for non-tech folks to understand data and get deeper into it.
saigal··on Show HN: Dataherald AI – Natural Language to SQL Engine
At the risk of generalizing too much, there's always a chance that layering on a new technology can limit a user's understanding by creating an additional degree of separation. More specifically though, if a PM has been using a BI tool (tableau, looker, etc) or Product Analytics tool (e.g. amplitude, mixpanel) and clicking through dashboards without ability to find their answer, then I don't think this makes them lose additional expertise in the data model.

And perhaps even more importantly, my experience has been that people ultimately wish to understand trends. In other words, an ad-hoc question that is posed and answered in natural language might ultimately be made into a dashboard that lives on the BI tool (so that trends become clearer).

saigal··on Show HN: Dataherald AI – Natural Language to SQL Engine
Thanks. Noted. We will fix.
saigal··on Show HN: Dataherald AI – Natural Language to SQL Engine
awesome, we'll check it out!
saigal··on Show HN: Dataherald AI – Natural Language to SQL Engine
yes, exactly. recent advancements in LLMs have changed the game entirely
saigal··on Show HN: Dataherald AI – Natural Language to SQL Engine
Very cool. I'm checking out veezoo.com now!
saigal··on Show HN: Dataherald AI – Natural Language to SQL Engine
the future indeed!
saigal··on Show HN: Data content creation tool using OpenAI+LangChain(lessons learned)
While LLMs like ChatGPT have revolutionized content creation, they still cannot create factual and visually-appealing data-intensive content that many industries such as real estate brokers, consultants or financial advisors need. With Dataherald AI (https://www.dataherald.com/sign-up), we made a technical preview of a tool that can automate the creation of data-intensive content for real estate professionals. Users can enter their queries and questions in a prompt-based interface about real estate market trends and the system returns factual text and accompanying data visualizations. The core engine works in three steps:

1- Extract intent and entities from the user prompt (the metric they want, date ranges and location)

2- Query structured data from various sources in our data warehouses

3- Construct the final text and accompanying data visualization.

In the first iterations we trained our model for the extraction step and used templated SQL with variables for entities in step 2. However with the release of GPT-4 and rapid development of LangChain we soon migrated to building on the LangChain framework and relying on GPT-4 to write SQL on the fly. From LangChain we use PromptTemplates, Memory, Example Selectors and Chains heavily. The three steps described above eventually became three chains we built and optimized.

Overall we love Langchain. It allowed us to release quickly and leverage abstractions which cleaned up our code. One of the best parts about building on LangChain is the active community on Discord. However it is a sprawling framework and some components still do not seem ready for use in production. For example, we gave up on using SQLAgent pretty early on since it failed some easy testing.

Some of the other challenges we faced: - GPT-4 is very slow and in our experience GPT3.5–turbo does not work well for building complex SQL queries on the fly. As a result the three chains currently take an average of 27s to produce an answer unless it is already cached.

- When working with SQL results and structured datasets, you quickly hit the token limit when passing the SQL results to the LLM. We did not have access to the 32K context window, so once that is rolled out this should be less of a concern.

- How to test? There does not seem to be many QA tools for LLM applications. We ended up building our own solutions to score generated content and flag low scores so we can add examples to our prompts.

Looking forward to the next few weeks, we plan on delivering the following:

1- Templates that allow users to create content that is optimized for blog posts and social media posts out of the box.

2- Fix some limitations in prompts we can handle. You currently can’t compare across geo types (city with national trends).

3- Add more datasets covering neighborhood level data.

4- Add more chart and map types and viz customization features

Would love to hear the community's thoughts. Are there tools or approaches that we should have considered? Does anyone use Langchain’s SQLAgent in production? Know any real estate professionals we should talk to?

saigal··on Show HN: Dataherald (YC W21) Live Data, Ready to Visualize in 3 Clicks
Hey everyone, Anuj here. My co-founder Amir(Aazo11) and I are building Dataherald (https://dataherald.com/). Dataherald makes it easy for anyone to find cleaned, ready-to-use data, and create auto-updating visualizations from it in under 60 seconds, no code needed. WE found that people wanted to use data to tell a story or conduct analysis that leverages data, but had to rely on a data engineer to create data pipelines and clean messy datasets. Dataherald comes with hundreds of data feeds piped in, so you can easily access and customize visualizations to tell the data’s story. We have just launched a ton of new Data Feeds, including CPI, PPI, and Foot Traffic – and we can’t wait to hear how you like it!
saigal··on Show HN: Dataherald, no-code tool to help people see and understand data
yes, also financial services cos, such as Macquarie
← PreviousPage 2 of 3Next →