Live data from Hacker News

Show HN: Natural-SQL-7B, a strong text-to-SQL model

github.com

151–160 of 171 posts

Re: Show HN: Natural-SQL-7B, a strong text-to-SQL model

#151
For anyone who says it's useless because it's only 75% correct, please consider these two points:

(1) this is the first instalment, and it's already close to be a thousand times more useful for product owners and analytics than any airtable you can imagine.

(2) as much as I love being on point on every challenge, we're leaving in "good enough" economics for quite some time, and if this will be close enough that will be good enough for business.

Re: Show HN: Natural-SQL-7B, a strong text-to-SQL model

#153

Next generation of 'software engineers' are going to be brain dead: 'duhhh gpt how 2 do x... duh...'

Maybe? Or the bar will just be a lot higher for them since there will be less work at the entry level. Either way I think previous generations of SWEs will be at an advantage going forward.

Re: Show HN: Natural-SQL-7B, a strong text-to-SQL model

#154

Earlier quoted context omitted.

SQL is popular because it can be run on a map/reduce backend. So once you have written your code it can run on any number of machines.

a) SQL is not that popular on map/reduce backends. Most people are doing it in code. b) Only basic SQL works on any database and even then there are major differences in how they treat things like nulls, type coercion etc.

BigQuery? Athena/Redshift?

Re: Show HN: Natural-SQL-7B, a strong text-to-SQL model

#155

Earlier quoted context omitted.

I don't think that the point was that there are no for loops in SQL. I think the point was that almost always using for loops is wrong and super inefficient and there is a much more efficient way to just use joins instead.

I wonder if anyone realizes that selects and joins in every database are implemented literally with for loops written in c. The reason people use a relational database is because it has loops that are faster, safer, and more efficient than anything you can write.

What does it matter? Yeah, at the very bottom of it all there will be a loop. I wouldn't attribute that to C but to the von Neumann architecture.

The point is that by getting rid of loops you remove one way of telling the computer "How" to do it. Start here, do it in this order, combine the data this way.

When "How" is a solved problem, it is a waste of your brain to think about that again. "What" is a better use of your brain cycles.

Re: Show HN: Natural-SQL-7B, a strong text-to-SQL model

#156
post #110

Earlier quoted context omitted.

That’ll often not scale to millions of records. Letting the database optimizer find the optimal execution path instead of doing it procedurally elsewhere might result in “finishes in 5 minutes”, versus “doesn’t fit in a night”.

This isn’t the 90s. Most hardware is way over-specced for the data sizes most people are dealing with. The number of use cases which are too heavy to finish in hours but small enough to fit in a single instance is pretty limited.

Costs are another reason to optimize queries, long running, inefficient queries will be a lot more expensive on things like snowflake than more efficient queries.

Re: Show HN: Natural-SQL-7B, a strong text-to-SQL model

#157

Earlier quoted context omitted.

There are preprocessors like PRQL that help with some (far from all) of the pain points of SQL as a language

Hopefully we get over the fact that we still need to transpile something to the ugly SQL and databases themselves start to speak a better language. Despite all the hate MongoDb deserves, it solved the problem how application developers can easily get data in and out of a database.

Seriously? I just had a Quick Look at the mongodb docs, but when I see that I’m glad to use SQL. All the brackets and dollar prefixed expressions make mongodb queries hard to read.

Re: Show HN: Natural-SQL-7B, a strong text-to-SQL model

#158

Earlier quoted context omitted.

I don't think that the point was that there are no for loops in SQL. I think the point was that almost always using for loops is wrong and super inefficient and there is a much more efficient way to just use joins instead.

I wonder if anyone realizes that selects and joins in every database are implemented literally with for loops written in c. The reason people use a relational database is because it has loops that are faster, safer, and more efficient than anything you can write.

Exactly, SQL is like a very specific natural language used to tell a database what data you need. The database contains AI (the query optimizer) that will use statistics to determine the fastest way to retrieve the data requested. Depending on your query and the data you have the fastest way to get your data will change. It’s hard to manually write this yourself.

Re: Show HN: Natural-SQL-7B, a strong text-to-SQL model

#159
post #87

Earlier quoted context omitted.

Honestly I would rather write stuff in code thats inefficient than deal with one more stored procedure. Its like a black box

That will be interesting soon when 80% of your code will be ai-generated black boxes…

Also good to note that unlike many other forms of AI, the SQL query optimizer AI is not a black box. It will tell you exactly how it thinks your data can be retrieved in the fastest way if you ask it to explain its plan for your query.

Re: Show HN: Natural-SQL-7B, a strong text-to-SQL model

#160
post #104

Earlier quoted context omitted.

Shareware?

Yep. Open source means you can build and modify it. If not, it’s not open source. You know it’s a bad timeline when releasing the equivalent of a binary is considered “open”.

Except people modify "non open source" but "weights available" models all the time.

In fact, this very model is such modification (fine tune) of the original base model.

Post reply on HN