3 ms·
I doubt any current LLM is up to the job of bypassing SQL, even for the simplest of queries. The thing is, an SQL database is already a sort of AI - an old sch
by mr_toad 3y ago
I doubt any current LLM is up to the job of bypassing SQL, even for the simplest of queries.
The thing is, an SQL database is already a sort of AI - an old school algorithmic AI:
“The code generator, and especially the logic in where*.c and in select.c, is sometimes called the query planner. For any particular SQL statement, there might be hundreds, thousands, or millions of different algorithms to compute the answer. The query planner is an AI that strives to select the best algorithm from these millions of choices.”
https://www.sqlite.org/arch.html https://www.sqlite.org/arch.html
Translating natural language into SQL is ironic, because SQL was intended to be a natural language that would be interpreted by an AI.
In the future maybe an AI could be trained to bypass high-level languages. Perhaps it could generate intermediate representation (IR) code - skipping the tokenising and parsing. Perhaps it could generate byte code directly. Or it could even skip the VM and generate machine code to work with the back-end API.