Introduzione a Snowflake Cortex e ai Notebook

Introduzione alla Generative AI in Snowflake

James Cha-Earley

Senior Developer Advocate, Snowflake

Conosci l'istruttore!

 

$$

James Cha-Earley

  • Senior Developer Advocate in Snowflake

 

Foto dell'istruttore

Introduzione alla Generative AI in Snowflake

Snowflake Cortex

Snowflake Cortex AI

  • AI pronta per la produzione a portata di mano
1 Image source: https://www.snowflake.com/en/product/features/cortex/
Introduzione alla Generative AI in Snowflake

Cortex AI

$$

  • Integrazione nativa tra SQL, Python e notebook

$$

  • Dall'esperimento alla produzione dentro Snowflake

$$

  • Governance, policy e osservabilità integrate

Icona del logo Snowflake

Introduzione alla Generative AI in Snowflake

Dati del corso

Query dei dati del corso che mostra le prime 10 righe - date, rating, description, hotel_name, city, country e language

Introduzione alla Generative AI in Snowflake

Interrogare i dati

Descrizione dei dati del corso con le colonne - date, rating, description, hotel_name, city, country e language - e i tipi di dato

Introduzione alla Generative AI in Snowflake

Injection di variabili Python

  • Crea una variabile Python da usare in una query SQL

Creazione di una variabile Python chiamata target_location, con valore Cancun

Introduzione alla Generative AI in Snowflake

Injection di variabili Python

Inserimento di una variabile Python in una query SQL

Introduzione alla Generative AI in Snowflake

Riassumere testo

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! """
Introduzione alla Generative AI in Snowflake

Riassumere testo

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.
Introduzione alla Generative AI in Snowflake

Cortex nelle celle SQL

Esecuzione di summarize nella cella SQL

$$

  • Nessuna importazione necessaria nelle celle SQL

$$

  • Usa celle Python per concatenare più funzioni
Introduzione alla Generative AI in Snowflake

Esercitiamoci!

Introduzione alla Generative AI in Snowflake

Preparing Video For Download...