Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Duet AI in BigQuery
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
yu_sa18
February 26, 2024
Technology
270
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Duet AI in BigQuery
color is【クラウドLT大会vol.7】フリーテーマ! の発表資料です
https://saison-coloris.connpass.com/event/308746/
yu_sa18
February 26, 2024
More Decks by yu_sa18
See All by yu_sa18
BigQuery Continuous query
yu_sa18
0
160
BigQuery の AWS Glue フェデレーションデータセット
yu_sa18
0
140
BigQuery Studio
yu_sa18
1
500
【Google Cloud】組織なしプロジェクトを組織へ移行する
yu_sa18
0
490
DataFusionのネットワークでつまづいたはなし
yu_sa18
0
660
BigQueryテーブル最適化
yu_sa18
0
210
Datastream for BigQuery を使ってみた
yu_sa18
0
470
Other Decks in Technology
See All in Technology
生成AIで高い生産性を求められて、 悩み、乗り越えた話
mot_techtalk
2
170
go-sqletch
moznion
0
140
会社説明資料
persolserverworks
0
9.7k
FactoryBotアンチパターン / factory_bot anti-patterns
toshimaru
0
150
hackers_champloo_2026_tidb
makocchi
0
140
分析の民主化を支えるメタデータ整備の実践
kakehashi
PRO
4
1.3k
AI 時代の Azure エンジニアリング ~ 私たちは何を磨き、何を任せるのか ~
chack411
1
590
分析AIエージェントを育てる、動く環境を育てる
codatum
1
1k
Getting Started with Google Antigravity
glaforge
0
200
OR学会2026年秋期大会_機械学習と数理最適化の融合による、配合レシピ最適化システム開発事例
brainpadpr
0
130
AI時代のPRレビューにどう向き合うか?
kairim0
1
210
継続的なAIコスト最適化
bgpat
1
290
Featured
See All Featured
Ten Tips & Tricks for a 🌱 transition
stuffmc
1
260
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
560
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
560
Testing 201, or: Great Expectations
jmmastey
46
8.3k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
520
StorybookのUI Testing Handbookを読んだ
zakiyama
31
7k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
570
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.4k
SEO for Brand Visibility & Recognition
aleyda
0
4.8k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
850
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
730
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
350
Transcript
Duet AI in BigQuery 2024/2/26 澤木 佑果
本題の前に 3 Duet AI in BigQuery には • Pre-GA Offerings
Terms • Additional Terms for Generative AI Preview Products という2つの規約が適用されており、生成された出力結果を公開することが 禁止されています そのため、Duet AI の具体的な生成結果は公式ドキュメントで公開されて いる内容を使います また、プレビュー中の機能のため、今日紹介した内容や動作は今後変わる 可能性があります
Duet AI in BigQuery とは? 4 Duet AI を使って SQL
クエリの開発支援 • 自然言語から SQL クエリを作成する • 完成していない SQL クエリの補完を行う • 完成された SQL クエリについて自然言語で説明する 2024年2月時点でプレビュー中の機能 使うには Duet AI in BigQuery Preview form へ申請が必要 [Google Cloud] Write queries with Duet AI assistance
自然言語から SQL クエリを作成する 5 自然言語で実行したいクエリの概要を書くと、クエリを提案する [Google Cloud] Write queries with
Duet AI assistance
完成していない SQL クエリの補完を行う 6 エラーが発生しているクエリに対して、エラー解決案を提案する 公式ドキュメントの例) あるカラムがグループ化も集計もされていないことでエラーが発生しているクエ リに対し、「GROUP BY ~」を追加する提案をしている
[Google Cloud] Write queries with Duet AI assistance
使ってみて 7 カラムの仕様やテーブルスキーマの特性をうまく使うにはユーザー側の指示の 出し方に工夫がいる
使ってみて① 8 例1)配列データのカラムを扱いたい場合 Duet AI は取得するカラムが配列データかを考慮していないため、カラム名 だけを指定した指示だと、エラーが発生するクエリが生成された 公式のドキュメントに沿った表現で配列データであり、展開してほしいことを 示す必要がある 【BigQuery】Google
Analytics のデータ分析で使用するクエリ一覧
使ってみて① 9 一方、カラム名指定なし・日付(YYYY-MM-DD形式)で絞り込みする ように指示すると、WHERE 句に DATE 型カラムを使うクエリを生成した なので指示した絞り込みの文字列よりデータ型を推測している、または絞り 込み条件に合致するデータが存在するカラムを使うようになっているのかも
使ってみて② 10 例2)パーティション分割テーブルを使う場合 パーティション分割テーブルは、 WHERE 句にパーティションキーのカラムを 指定することでパフォーマンスが向上する Duet AI に指示を出すときは明示的に
パーティションキーカラムで 絞り込みするように指示が必要 BigQuery 管理者リファレンス ガイド: ストレージの仕組み
まとめ 11 知らない SQL 関数の提案や、クエリの方向性を示してくれる便利な機能 である Duet AI を使いこなすには、ユーザー側がカラムやテーブルスキーマの特性 について理解した上で、正確に指示を出すスキルが必要である
Appendix
Duet AI が Gemini に改称 13 2024/2/8 の公式ブログにて、Duet AI という名前が
Gemini に変更さ れると告知されました(具体的な改称時期は記載なし) Gemini 時代の新たな一歩