Forget PRQL, just use ChatGPT :-) #1419
Replies: 1 comment
-
As I horse around with ChatGPT/OpenAI, I realize that it's way more powerful than I suspected. But it still has a way to go. I found Klavier.ai that purports to suck up documentation and answer questions about it. I entered the link to the Language Book and it took a couple seconds before it was ready for a prompt. I gave it: how can i use aggregate in prql The answer is so close, but so far off... It seems to have cribbed the examples from the Aggregate page, and deduces that the result of the first query would have four columns (I don't think that's mentioned there.) But it also substituted some other "knowledge about SQL" to give wrong answers:
There's no action required from the PRQL team, but this stuff is really fascinating. Here's the full output...
|
Beta Was this translation helpful? Give feedback.
-
(Just kidding...) But in a one-out-of one test, ChatGPT generated a valid SQL query...
Prompt: write a sql query to find all "BAR" in column named "Fred" from the table named Foo
Completion:
SELECT * FROM Foo WHERE Fred = 'BAR';
You need an OpenAI account to look at the playground.
https://beta.openai.com/playground/p/4InXRr9QwfjHbkSOMy7vXDcp?model=text-davinci-003
Beta Was this translation helpful? Give feedback.
All reactions