Einführung in Snowflake Cortex und Notebooks

Einführung in Generative KI in Snowflake

James Cha-Earley

Senior Developer Advocate, Snowflake

Lerne deinen Dozenten kennen!

 

$$

James Cha-Earley

  • Senior Developer Advocate bei Snowflake

 

Foto des Dozenten

Einführung in Generative KI in Snowflake

Snowflake Cortex

Snowflake Cortex AI

  • Produktionsreife KI griffbereit
1 Bildquelle: https://www.snowflake.com/en/product/features/cortex/
Einführung in Generative KI in Snowflake

Cortex KI

$$

  • Native Integration mit SQL, Python und Notebooks

$$

  • Von Experiment zu Produktion in Snowflake

$$

  • Eingebaute Governance, Richtlinien und Überwachung

Snowflake Logo Icon

Einführung in Generative KI in Snowflake

Kursdaten

Abfrage von Kursdaten mit den ersten 10 Zeilen - Datum, Bewertung, Beschreibung, Hotelname, Stadt, Land und Sprache

Einführung in Generative KI in Snowflake

Vorlagecode

Notebook mit Python- und SQL-Vorlagecode

Einführung in Generative KI in Snowflake

Daten abfragen

Beschreibung der Kursdaten mit Spalten - Datum, Bewertung, Beschreibung, Hotelname, Stadt, Land und Sprache - und Datentypen

Einführung in Generative KI in Snowflake

Python-Variable einfügen

  • Erstelle eine Python-Variable zur Verwendung in einer SQL-Abfrage

Erstellen einer Python-Variable namens target_location, Wertzuweisung Cancun

Einführung in Generative KI in Snowflake

Python-Variable einfügen

Einfügen einer Python-Variable in eine SQL-Abfrage

Einführung in Generative KI in Snowflake

Cortex einrichten

Cortex einrichten

Einführung in Generative KI in Snowflake

Text zusammenfassen

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! """
Einführung in Generative KI in Snowflake

Text zusammenfassen

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.
Einführung in Generative KI in Snowflake

Cortex in SQL-Feldern

Summarize im SQL-Feld ausführen

$$

  • Keine Importe nötig im SQL-Feld

$$

  • Python-Felder für mehrere Funktionen nutzen
Einführung in Generative KI in Snowflake

Lass uns üben!

Einführung in Generative KI in Snowflake

Preparing Video For Download...