Ask HN: Do you need intelligent AI functions in SQL?

1 points by alaeddine-13 ↗ HN
Hey, I am wondering if it would be helpful to have some AI functions in SQL. Basically, imagine if you could use AI to process raw text or images using SQL within the database, allowing statements like this:

# get the trending topics of todays' posts > SELECT DISTINCT(VLM(“what is the topic described in the following {posts.description} and {posts.image} ?”)) FROM posts WHERE DATE(posts.date) = DATE(NOW()) > [‘barbie movie’, ‘oppenheimer movie’, ‘taylor swift song’,...]

# Find the reasons why clients don't like products > SELECT LLM(“why is the client not satisfied: {reviews.content}”) FROM reviews WHERE LLM(“Classify the product review as either positive or negative: {reviews.content}”) = 'negative' > ['bad color', 'too expensive',...]

I can imagine a lot of use cases around unstructured data processing and understanding capabilities inside SQL databases, like trend detection, product review, smart filters, clustering and classification,...

I would appreciate it if you can tell me whether you find the idea helpful for you and what use cases it can power.

0 comments

[ 8.6 ms ] story [ 459 ms ] thread

No comments yet.