63 points · by CharlesW · 2y ago · 106 comments
All this real-world complexity can be tamed by stuffing the prompt with a ton of relevant context and an amazing prompt engine. We'll have bots that autonomously query the database hundreds of times building a 5 page "deep-dive" analytics report in minutes.
At least that's what we're trying at patterns.app.
We just started with some simple examples/questions. Then got a bit more complicated. But the result was pretty spot on the first time.
Simple 1 table dataset: https://youtu.be/vM0NAIROTD4 Analyzing Log Data: https://www.youtube.com/watch?v=5hbanOZjHm4 Joining 2 datasets: https://youtu.be/VUc0flsC4pg Simple Filtering example: https://youtu.be/wTiaq2J-IdY Analyzing Ride Share data: https://youtu.be/HWZUHxT7Vx8
Okay, I know picking people's sentences apart has fallen out of fashion, but:
"Divergent opinions" are ... opinions. A "definitive conclusion" is ... a conclusion.
I see more examples, but I wanted to make a point: I miss the days when fewer words conveyed more meaning. From the classic https://en.wikipedia.org/wiki/The_Elements_of_Style: "Make every word count."
About brevity of expression, I must add this (possibly apocryphal) story about Ernest Hemingway. In the 1920s Hemingway and his Paris friends had a contest: who could write the shortest readable short story? Hemingway won with this entry:
For sale. Baby shoes. Never worn.
Also just for you I copied and pasted my original comment into ChatGPT to make it more brief ;)
as an aside, asking chatGPT 3.5 to make similar stories to "For sale. Baby shoes. Never worn." had very bad results and completely failed to do a single meaningful example of "common item with uncommon description that tells a story"
For clarity is not really acknowledging it made a mistake. "Calling out" an LLM's mistake just leads to the next most likely text to be something that sounds like an acknowledgement of a mistake, but the same is likely to happen if the LLM generated a correct response and you respond claiming that it's incorrect.
Using tool inappropriately leads to suboptimal outcomes -- news at 11.
A good mental model is that an LLM is a blurry JPEG of the Internet.
You sound like a scientist, right? You reference "published research", after all.
What would your opinion be of a researcher measuring the exact values of the pixels of a JPEG image instead of the RAW sensor data?
No, you're not going to get the precise values back out either with an LLM or a JPG image.
Yes, the picture will still "look like" the original.
You asked the LLM to output a URL or reference that looks like something that would appear in a research paper. It did so.
You're complaining the precise byte sequence returned is not what you wanted.
The error is with your expectations, not the tool.
Them: Can you just quickly pull this data for me?
Me: Sure, let me just:
SELECT * FROM some_ideal_clean_and_pristine.table_that_you_think_exists
GPT-4 is good on a single CSV, but breaks down quickly applied to a real database / data warehouse. I know they're using multiple tables in the paper, but it appears to be a pristine schema that's very easy to reason about. In the real world, when you're trying to join postgres to hubspot and stripe data, an LLM isn't able to write the SQL from scratch get the right answer.We're working on an approach using a semantic layer at https://www.definite.app/ if you're interested in this sort of thing.
0 - https://twitter.com/sethrosen/status/1252291581320757249?lan...
A semantic layer is just really all about defining data models in the domain of interest. It's the hardest part in dealing with data strategies, very manual, very company and process and history specific.
Once it's defined, the next set of tasks is to make sure that the data in the model is correct and coherent. And only then, querying this data, applying ML etc start becoming worthwhile.
We at https://syncari.com take the centralized data model centric approach. https://www.definite.app/ also looks very cool!
The terms "depend" and "require" there are the hard versions. You can't send people to the moon on the outputs of LLM's.
The tools are good for certain tasks and getting better. Master these tools and be ready for what released in the coming months and years
You are either at the center turning the wheel, or you’re on the outside getting spun
Here, argue with Yann, who makes a statement about how language isn't enough to produce a mind: https://twitter.com/ylecun/status/1768353714794901530
There’s even a handy aphorism to remind you that the user is never to blame: “You’re holding it wrong.”
Jokes aside, I wonder what the general writing abilities and communication skills are for people that cannot for the life of them get usable results from an LLM.
https://youtube.com/playlist?list=PLfRs4l8INQS44y62Z2aFzPzHH...
There’s more to it, but the tooling to create a GPT is basically a hand-holding mechanism to create a prompt.
> LLMs... have demonstrated their powerful capabilities in ... context understanding, code generation, language generation, data storytelling, etc.,
LLMs have not demonstrated understanding (in fact, one could argue that they are fundamentally incapable of understanding); they have only AFAICT demonstrated the ability to generate boilerplate-ish code; "language generation" is too general a task to claim that LLMs have succeeded in; and as for data storytelling I don't know, but they can spin yarns. The problems is that those yarns are often divorced from reality; see:
https://www.ibm.com/topics/ai-hallucinations
--------
Leafing through the paper, and specifically tables 6 and 7, I don't believe their conclusion, that "GPT-4 can perform comparable [sic] to a data analyst", is well-founded.
The thing about LLMs is exactly that they don't understand by design. It often feels very distinctly like it's just engaging in sophisticated wordplay. A parlor trick.
When ChatGPT 4 first came out I spent a couple of hours putting together a chess game using ChatGPT as the engine. It was shockingly bad, as in even attempting to make invalid moves.
I get it: it's not tuned for that purpose, and its chess training corpus could probably be expanded to improve it as well.
But, it actually served as a near-perfect demonstration of its lack of understanding, as well as the confidence with which it asserts things that are simply wrong.
On a recent integration project with a good bit of nuanced functionality, it led me astray multiple times. I've gotten to a point where I can feel when its answers are not quite right, particularly if I know just a little about the topic. And, when challenged, it does that strange thing of responding with something along the lines of, "My apologies you're completely right that I was completely wrong".
Over time, there becomes a sense that there is no there there. Even it's writing capabilities, lauded by so many, are of a style that is superficial and perfunctory or rote. That makes sense when you know what it is, but that's the thing: we get articles like these, lauding its wisdom.
What impressed me is when I asked to make it more snake-like (what does that even mean right?).
It changed the colors to shades of green, used italic fonts, added some hisssssing sssstuff to wordssss, and added a diamond pattern through the background.
It was a dumb and not very fancy site, but I'm not sure you can say it doesn't understand anything at all when you ask it to make a website more snakelike and actually made a pretty good attempt at doing it.
But I think it comes down to whether it can reason about things and whether it can draw new conclusions or create new information as a result.
Your snake site is probably a good example. ChatGPT has a bunch of words that it knows are associated with snakes. It's pretty straightforward pattern matching. It doesn't really "understand" what those words mean, except that they have relationships to other words.
But, if you were to ask it to reason and draw new conclusions about these things beyond its training corpus, it would be unable to reliably do so.
Similarly, it had no idea about the quality (and sometimes legality) of the chess moves it generated.
The LLM understands relative patterns and/or associations. Statistically.
Snakes tend to be green. People have written countless books with hisssssssing from snakes and snake-like characters. Diamond patterns are well documented with snakes.
Again, it has no idea what these "are" and if we collectively decided snakes were called "Murder ropes" then it'd make the exact same associations.
Do I, myself understand? Stand under what exactly? What is that supposed to mean?
Have you told someone something like "no, don't do it that way because <insert non-obvious downstream problem>, instead, do <insert alternative strategy that achieves better outcomes>"? That's an artifact of understanding and of the model you've developed for that thing.
It's well described as a mixture of knowledge and wisdom, and is essentially the property of knowing the effect that pulling a lever will cause, coupled with good judgement about how, when, and why to pull the lever.
Usually in a bit more polite way.
That my approach is a "novel" and an "interesting" approach, hinting that it's really probably not the best option here.
That's trivially true. The question is: are we any different?