Bigquery Ai Ml

作者 gemini-cli-extensions8475b9c79e38Apache-2.050 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫10 天前更新

Skill for BigQuery AI and Machine Learning queries using standard SQL and `AI.*` functions (preferred over dedicated tools).

僅含說明Data & Analytics
AI 產生的概覽

指導撰寫使用 AI.* 函式的 BigQuery SQL,並為每個函式指向對應的參考檔案。

功能
此技能指示代理優先透過 execute_sql() 以 SQL 方式完成 BigQuery AI/ML 工作,而不是使用專用的 BigQuery 工具。它提供一份路由表,將 AI.FORECAST、AI.CLASSIFY、AI.SEARCH 等十一個 AI.* 函式對應到產生 SQL 前必須閱讀的參考檔案。產出是路由正確、語法準確的 BigQuery SQL,用於預測、分類、異常偵測、生成、評分與語意搜尋。
適用情境
當代理需要執行 BigQuery AI 或機器學習操作(尤其是預測或異常偵測),並希望使用標準 SQL 而非專用工具時使用。當撰寫查詢前需要某個 AI.* 函式的確切語法時也適用。
執行需求
需要 BigQuery 存取權與 execute_sql() 能力,以及 references/ 下隨附的參考檔案。此技能不含指令碼,僅為指示與參考文件。

Skill: bigquery-ai-ml

This skill defines the usage and rules for BigQuery AI/ML functions, preferring SQL-based Skills over dedicated BigQuery tools.

1. Skill vs Tool Preference (BigQuery AI/ML)

Agents should prefer using the Skill (SQL via execute_sql()) over dedicated BigQuery tools for functionalities like Forecasting and Anomaly Detection.

Use execute_sql() with the standard BigQuery AI.* functions for these tasks instead of the corresponding high-level tools.

2. Mandatory Reference Routing

This skill file does not contain the syntax for these functions. You MUST read the associated reference file before generating SQL.

CRITICAL: DO NOT GUESS filenames. You MUST only use the exact paths provided below.

FunctionDescriptionRequired Reference File to Retrieve
AI.FORECASTTime-series forecasting via the pre-trained TimesFM modelreferences/bigquery_ai_forecast.md
AI.CLASSIFYCategorize unstructured data into predefined labelsreferences/bigquery_ai_classify.md
AI.DETECT_ANOMALIESIdentify deviations in time-series data via the pre-trained TimesFM modelreferences/bigquery_ai_detect_anomalies.md
AI.GENERATEGeneral-purpose text and content generationreferences/bigquery_ai_generate.md
AI.GENERATE_BOOLGenerate a boolean value (TRUE/FALSE) based on a promptreferences/bigquery_ai_generate_bool.md
AI.GENERATE_DOUBLEGenerate a floating-point number based on a promptreferences/bigquery_ai_generate_double.md
AI.GENERATE_INTGenerate an integer value based on a promptreferences/bigquery_ai_generate_int.md
AI.IFEvaluate a natural-language boolean conditionreferences/bigquery_ai_if.md
AI.SCORERank items by semantic relevance (use with ORDER BY)references/bigquery_ai_score.md
AI.SIMILARITYCompute cosine similarity between two inputsreferences/bigquery_ai_similarity.md
AI.SEARCHSemantic search on tables with autonomous embedding generationreferences/bigquery_ai_search.md

來源與署名

來源:gemini-cli-extensions/bigquery-data-analytics位於skills/bigquery-ai-ml提交8475b9c

授權條款: Apache-2.0

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架