
Python in Blobby
Run Python scripts inside Blobby chat to analyze data, cluster users, generate forecasts, and join Python-generated data with real query results; now also working on Azure
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
I'll take a look at your mice program . Um, this might sound a little familiar to you . Um, I've demoed something like this before. I actually wanted to demo this on the playground . Because it was merged, it should have been deployed to the playground , but the playground deployment was stalled by something else . So it didn't get there.
Therefore, I am deploying this to my sandbox. However, I hope that other work will be completed before the end of today , and it will be available on the playground . Perhaps it can be turned on in other infrastructure for testing soon. These are little chats I created a while ago to experiment with Python and Blobs together.
So, this is a very simple chat that does some cool things using Python. It uses small data points . It takes some data and pulls it into Python. You can see here that it ran a Python script to do some work and analysis. It took the output. It says, "Oh, we've exceeded the 1,000 row limit." Um, you can tell it not to do that.
So we're still tweaking things like prompting so that it does the right things, but it's found some trends. That basically says, "This data looks fake ." Um, I also told him to do some extra work on this. This time I didn't explicitly say to use Python. I said, "Can you divide users into groups?" I asked. This is also meaningless, because it is fake data, and it also did the strange thing of only looking at the first 5,000 users.
This is more data than we can currently handle, but we are working on relaxing that limit . It should be able to use the 50,000 row limit . Um, I don't know why it didn't do that at first , but you can see it trying. It failed. Something went wrong with the Python code it wrote, so it tried again .
It corrected itself very quickly . It identified some clusters that we could use . And you know, you could say this is fake data . This is really a bit stupid . "But, it comes down to acquisition channels and using the fake trends that I put in the data , it says that those fake trends are there ."
Then, without realizing it, I accidentally connected to my Azure Sandbox server , which is where I was doing my tests. So, it turns out that this now works in Azure as well . It's not merged yet, it's not finished yet, but it's coming. Pull request coming soon, Dan, or maybe even Bryan. But, this time I had a very long conversation , and I wanted to correct some things.
And I noticed some new behaviors that I didn't expect, which was really cool. First, it noticed that it had exceeded the 1,000 row limit . It wanted to increase it. I accidentally stopped it, but I didn't tell it to increase the limit , and it still reached it, and was able to do it successfully. Then it took me a while to figure out what I was expecting, and here I have the original data , and if I scroll down , there's the data generated by Python.
At first glance, it seemed good to me . I do n't understand what's happening. And it failed to generate the chart. So, I spent some time trying to understand it. It turned out there was some chart problem , maybe a prompting issue, but in the end I said "Oh, cool ." Okay, let's chart this. It understood that.
It has both actual and estimated data. Now, there is a tool for forecasting. I explicitly said to do this, but this is a task that Python can do . But then I asked, " How is the Python data paired with the original data?" It gave a reasonable answer . That's actually joining using a values query in your SQL , which allows for a data alignment join .
Very good. It turns out that this is all happening in my Azure sandbox, I didn't intend it to or I don't even know if it would work. So, it turns out that's working too. I have another one , but I gave it a little too much work, and it also failed to appear as a chart. But without me giving it the same prompt, it did the same thing .
And it seems like maybe it's not actually taking the data correctly. So, we're still trying to figure out how to use Python data , and I know it's a big endeavor for me and Dan . We are reaching a level where it can be used by the general public . There are still some security reviews to be done on this, but it is already running in the right ways , and we hope to launch it in test environments first , and we would like feedback on how we can better prompt it to reduce the number of small errors it makes over time .
Okay.