แนะนำ Snowflake Cortex และ Notebooks

การแนะนำ Generative AI ใน Snowflake

James Cha-Earley

Senior Developer Advocate, Snowflake

พบกับผู้สอนของคุณ!

 

$$

James Cha-Earley

  • Senior Developer Advocate ที่ Snowflake

 

รูปผู้สอน

การแนะนำ Generative AI ใน Snowflake

Snowflake Cortex

Snowflake Cortex AI

  • AI พร้อมใช้งานจริงในมือของเรา
1 Image source: https://www.snowflake.com/en/product/features/cortex/
การแนะนำ Generative AI ใน Snowflake

Cortex AI

$$

  • รองรับ SQL, Python และ notebooks แบบ native

$$

  • ทดลองจนถึง production ได้ภายใน Snowflake

$$

  • มี governance, policies และ observability ในตัว

ไอคอนโลโก้ Snowflake

การแนะนำ Generative AI ใน Snowflake

ข้อมูลในคอร์ส

คิวรีข้อมูลคอร์สแสดง 10 แถวแรก ได้แก่ date, rating, description, hotel_name, city, country และ language

การแนะนำ Generative AI ใน Snowflake

โค้ดเทมเพลต

Notebook ที่มีโค้ด Python และ SQL เป็นเทมเพลต

การแนะนำ Generative AI ใน Snowflake

การคิวรีข้อมูล

คำอธิบายข้อมูลคอร์สระบุคอลัมน์ ได้แก่ date, rating, description, hotel_name, city, country และ language พร้อมประเภทข้อมูล

การแนะนำ Generative AI ใน Snowflake

การแทนค่าตัวแปร Python

  • สร้างตัวแปร Python เพื่อแทนค่าในคิวรี SQL

สร้างตัวแปร Python ชื่อ target_location โดยกำหนดค่าเป็น Cancun

การแนะนำ Generative AI ใน Snowflake

การแทนค่าตัวแปร Python

การนำตัวแปร Python ไปใช้ในคิวรี SQL

การแนะนำ Generative AI ใน Snowflake

การตั้งค่า Cortex

การตั้งค่า Cortex

การแนะนำ Generative AI ใน Snowflake

การสรุปข้อความ

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! """
การแนะนำ Generative AI ใน Snowflake

การสรุปข้อความ

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.
การแนะนำ Generative AI ใน Snowflake

Cortex ใน SQL cells

การรัน summarize ใน SQL cell

$$

  • ไม่ต้อง import เมื่อรันใน SQL cell

$$

  • ใช้ Python cell สำหรับการเชื่อมฟังก์ชันหลายตัว
การแนะนำ Generative AI ใน Snowflake

มาฝึกกันเถอะ!

การแนะนำ Generative AI ใน Snowflake

Preparing Video For Download...