Introdução ao Snowflake Cortex e Notebooks

Introdução à IA Generativa no Snowflake

James Cha-Earley

Senior Developer Advocate, Snowflake

Conheça seu instrutor!

 

$$

James Cha-Earley

  • Senior Developer Advocate na Snowflake

 

Foto do instrutor

Introdução à IA Generativa no Snowflake

Snowflake Cortex

Snowflake Cortex AI

  • IA pronta para produção ao seu alcance
1 Image source: https://www.snowflake.com/en/product/features/cortex/
Introdução à IA Generativa no Snowflake

Cortex AI

$$

  • Integração nativa entre SQL, Python e notebooks

$$

  • Do experimento à produção dentro do Snowflake

$$

  • Governança, políticas e observabilidade integradas

Ícone do logotipo da Snowflake

Introdução à IA Generativa no Snowflake

Dados do curso

Consulta de dados do curso mostrando as 10 primeiras linhas - date, rating, description, hotel_name, city, country e language

Introdução à IA Generativa no Snowflake

Consultando os dados

Descrição dos dados do curso detalhando colunas - date, rating, description, hotel_name, city, country e language - e tipos de dados

Introdução à IA Generativa no Snowflake

Injeção de variável Python

  • Criar uma variável Python para substituir em uma consulta SQL

Criando uma variável Python chamada target_location, atribuindo o valor Cancun

Introdução à IA Generativa no Snowflake

Injeção de variável Python

Injetando uma variável Python em uma consulta SQL

Introdução à IA Generativa no Snowflake

Resumindo texto

from snowflake.cortex import summarize

review = """ I was very impressed with this hotel, especially the service. They make you feel special and you feel like everything is possible. Special shout out to the Kidz Club staff. Our daughter is very picky and for the first time, she begged to go back there. They have a great supervision and they let the kids do fun activities such as cooking classes and crafting. The food was really good (buffet offered a different choice everyday). The all-inclusive program is really worth the price, and the beach was beautiful! """
Introdução à IA Generativa no Snowflake

Resumindo texto

result = summarize(text=review)

print(result)

$$

The hotel delivered excellent service with outstanding Kidz Club staff who engaged 
even picky children through supervised activities. The daily buffet offered good
variety, and the all-inclusive program plus beautiful beach provided great value.
Introdução à IA Generativa no Snowflake

Cortex em células SQL

Executando summarize na célula SQL

$$

  • Sem imports quando executado em células SQL

$$

  • Use células Python para encadear várias funções
Introdução à IA Generativa no Snowflake

Vamos praticar!

Introdução à IA Generativa no Snowflake

Preparing Video For Download...