
Snowflake Cortex tools
More buildout of use cases with Snowflake Cortex - sentiment, summarization, and some more polished use cases with NBA data.
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
as a segue and I see was gonna can I jump in and demo awesome um what I wanted to do um we have snowflakes sko coming up and I wanted to build some assets for him so I wanted to build on top of what call on you and Ariel demo the other day with cortex um no Kylie it was my son's birthday and those balloons ended up in here um so let me share my screen and I wanted to create something a little bit more tangible um with the cortex functions right in Omni so here I took that NBA data and I wanted to enrich it you know it's just statistics um so I wanted to provide a look into you know more information about
these players you know maybe a biography a list of their career Awards um we can look at something other than Kevin Durant maybe uh Justin's favorite player uh Devin Booker and have that update and pass through as it's going to give that updated uh snowflake complete function here we can also do things like um building a sentiment on players like see how players are viewed or here I pulled in a sentiment function where is player sentiment um if I refresh this oh no I haven't pushed it let go back here I think it's in this workbook model grab this yeah right here player sentiment so if I grab player names let's filter down just points per game and grabb in a player sentiment here we
can see how people view these players I don't believe Kobe Bryant should have this Lo of sentiment but you know what do I know um I also wanted to do some classification on these players here where you can see you know alltime greats versus Superstars and really all this is doing is I'm pulling this in and just pulling in these snowflake classification functions right here so classifying them getting a player sentiment on them it's super easy to add all this into here um I think Jack you were demoing this to a customer the other day and has some really good feedback um the other thing I wanted to do was touch on summarization um I think this is a huge one that's a big value
ad of where you know we can pull in here's a tile with just total sales order count I can modify this to be weekly and then you know create this as just like over the holiday period over December last complete month update that and that's then going to summarize the entire result set here and give us the trends going to give us some questions to ask next of the data and this one took me a little bit to figure out how to do but essentially all I'm doing is you know taking the SQL query from this tile and then I'm packaging it up into a CTE in a SQL based tile and then just going to just create that as a Json object and pass
that into the complete function right here so we can um you know actually summarize the entire data set rather than on a rowby row basis cool really nice um just as an aside have we looked into uh other dialects doing stuff like this I know we've done a bunch of Dum with snowflake but have we looked at I know surey has some stuff like this I don't know how they compare that I know there there's a sigma demo out there where they talk about um doing it with data bricks as well with their SQL functions