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 从公开仓库中收录这些内容。

举报或申请下架