Nick Akincilar’s Post

View profile for Nick Akincilar, graphic

Analytics, AI & Cloud Data Architect | Solutions Whisperer | Tech Writer

Love how Snowflake customers are using the new #Cortex #AI #LLM Functions in creative ways to solve even basic #DataEngineering problems which would normally require custom UDF functions to be written in #Python, #Java or #Scala. Here is an example of using #cortex_complete via #mistral_7b to convert standard US Addresses into an array of individual parts (Street No, City, Zip & etc.) then using #PARSE_JSON() + #GET(Array, N) functions to split array attributes into different columns. SELECT   RawAddress,   PARSE_JSON(     SNOWFLAKE.CORTEX.COMPLETE(     'mistral-7b',      'Parse the given address into following array of values without any comments:     [address number, street name, unit number, city, state, zip]' || ' content: '      || RawAddress))::array as AddressArray,    GET(AddressArray, 0)::string as BuildingNo,    GET(AddressArray, 1)::string as Street,    GET(AddressArray, 2)::string as UnitNo,    GET(AddressArray, 3)::string as City,    GET(AddressArray, 4)::string as State,    GET(AddressArray, 5)::string as Zip FROM AddressList; If there is ever a concept of TOO SIMPLE to use, I think #Snowflake is borderline there.

  • No alternative text description for this image
Alexis Chicoine

Senior BI Data Developper (Analytics Engineer) at Coveo

7mo

I think I would prefer having the llm write sql that does it instead. It would be verifiable and a lot cheaper to run. I could see the llm being useful for more creative uses that doesn’t need to be exact though.

Alexis Chicoine

Senior BI Data Developper (Analytics Engineer) at Coveo

7mo

Any chance the quotas would increase? As of now it looks like you can only process 500 rows a minute. https://docs.snowflake.com/en/user-guide/snowflake-cortex/llm-functions

Like
Reply
Robin Kelley

Sales Engineering at Snowflake ❄️

7mo

I recognize that sql!

Andrey Savov

Natural Language Understanding at Roku, Inc.

7mo

Would be interesting to see how this works for more noisy data (e.g. human-typed) or addresses outside US.

Raman Singh

Engineering Manager | Public Speaker | Data Architect | Data & AI | Tech Lead | Principal | Data Engineer | Analytics Engineer | Building Data Driven Products | M.Eng

7mo

I wonder if we can use something similar to dynamically parse JSON key values pairs to columns and rows

Milton Rene Quiñonez Palma

Learning Cloud Engineer | Data Engineer | ETL and SQL Developer | Business Intelligence | IICS Data Integration | Python for Data Analysis | Web Scraping | Proficient in Snowflake

7mo

It is something incredible, I will definitely try it

Like
Reply
Raman Singh

Engineering Manager | Public Speaker | Data Architect | Data & AI | Tech Lead | Principal | Data Engineer | Analytics Engineer | Building Data Driven Products | M.Eng

7mo

Very impressive, will definitely try this out

Like
Reply

Love your post! It really show up how simple is to use LLMs with Snowflake on real case scenario!!!

Like
Reply
Robert Walden

Ex. Snowflake Sales Engineer / FSI Looking for employment!

7mo

Great amount of potential here!! Thanks for posting!

Aryan Arora

Senior Engineer Data Platforms at Kiwibank

7mo

Love it

Like
Reply
See more comments

To view or add a comment, sign in

Explore topics