|
|
|
|
|
by metalspot
1147 days ago
|
|
the concern i would have here is that if you don't know SQL then you have no way of knowing whether or not the results are correct and if the results are wrong you have no way to debug the query. to construct an SQL query you need to know the database schema, you need to be able to specify the relationships between tables, and you need to specify what data you are trying to retrieve. the only way using plain written language can work is if you can infer the correct table names and relationships from the input text, which can only work if the database follows very strict naming conventions and/or proper foreign key usage and is small enough that none of the table or column names are ambiguous. plain written language is much more ambiguous than a formal language like SQL. how do you resolve ambiguities in the naming of tables and columns in the schema and in the input text for queries? if the output is wrong, is there an iterative process that can help the user refine the query? |
|
This, by the way, is why programmers won't be out of a job due to AI any time soon... using an AI for non trivial generation of code just moves the code-run-debug loop from the computer language to AI prompts in English... which can be much harder to debug than e.g. Python.
Programmers will work hand in hand with large language models, but they're not going to be replaced with AI powered low code solutions any time soon.