Get the latest tech news

The Prompt() Function: Use the Power of LLMs with SQL


We make your database smarter with small language model (and LLM) support in SQL | Reading time: 6 min read

This democratization of AI has reached a stage where integrating small language models (SLMs) like OpenAI’s gpt-4o-mini directly into a scalar SQL function has become practicable from both cost and performance perspectives. We are actively involved in research on bridging the gap between the convenience of prompt-based data wrangling and the efficiency and reliability of SQL-based text operations, leveraging all the amazing functionality that DuckDB provides. Since running the prompt() function over a large table can incur higher compute costs than other analytical queries, we limit the usage to the following quotas by default:

Get the Android app

Or read this on Hacker News

Read more on:

Photo of LLMs

LLMs

Photo of power

power

Photo of Function

Function

Related news:

News photo

Microsoft crafts Rust hypervisor to power Azure workloads

News photo

Ferrari’s F80 uses ‘Boost optimization’ to give drivers more power where they need it

News photo

Microsoft’s Differential Transformer cancels attention noise in LLMs