Snowflake Cortex ve Notebooks'a Giriş

Snowflake'te Üretken Yapay Zekaya Giriş

James Cha-Earley

Senior Developer Advocate, Snowflake

Eğitmeninle tanış!

 

$$

James Cha-Earley

  • Snowflake'te Kıdemli Geliştirici Savunucusu

 

Eğitmen fotoğrafı

Snowflake'te Üretken Yapay Zekaya Giriş

Snowflake Cortex

Snowflake Cortex AI

  • Parmaklarının ucunda üretime hazır AI
1 Image source: https://www.snowflake.com/en/product/features/cortex/
Snowflake'te Üretken Yapay Zekaya Giriş

Cortex AI

$$

  • SQL, Python ve notebook'larda yerel entegrasyon

$$

  • Snowflake içinde denemeden üretime geçiş

$$

  • Yerleşik yönetişim, ilkeler ve gözlemlenebilirlik

Snowflake Logo Icon

Snowflake'te Üretken Yapay Zekaya Giriş

Kurs verisi

İlk 10 satırı gösteren kurs verisi sorgusu - date, rating, description, hotel_name, city, country ve language

Snowflake'te Üretken Yapay Zekaya Giriş

Veriyi sorgulama

Sütunları ve veri tiplerini açıklayan kurs verisi - date, rating, description, hotel_name, city, country ve language

Snowflake'te Üretken Yapay Zekaya Giriş

Python değişken enjeksiyonu

  • SQL sorgusunda yer değiştirme için bir Python değişkeni oluştur

target_location adlı bir Python değişkeni oluşturup Cancun değerini atama

Snowflake'te Üretken Yapay Zekaya Giriş

Python değişken enjeksiyonu

Bir SQL sorgusuna Python değişkeni enjekte etme

Snowflake'te Üretken Yapay Zekaya Giriş

Metni özetleme

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! """
Snowflake'te Üretken Yapay Zekaya Giriş

Metni özetleme

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.
Snowflake'te Üretken Yapay Zekaya Giriş

SQL hücrelerinde Cortex

SQL hücresinde summarize çalıştırma

$$

  • SQL hücrelerinde çalıştırırken ek import gerekmez

$$

  • Birden çok işlevi bağlamak için Python hücrelerini kullan
Snowflake'te Üretken Yapay Zekaya Giriş

Hadi pratik yapalım!

Snowflake'te Üretken Yapay Zekaya Giriş

Preparing Video For Download...