aidentity / index

google/skills · Apache-2.0

bigquery-ai-ml

Leverages BigQuery's built-in machine learning and GenAI capabilities for advanced data analytics. Use when you need to write SQL queries that perform time-series forecasting, predict values, detect outliers or anomalies, find key drivers, perform semantic search or vector search, classify text, calculate similarity, summarize content, translate language, evaluate models, filter by semantic conditions, or leverage generative AI capabilities in BigQuery. Do not use for general BigQuery dataset, table, or job management requests.

cloud stable

Contents

BigQuery AI & ML

BigQuery integrates with Vertex AI to provide powerful machine learning and

generative AI capabilities directly within SQL queries using built-in functions

like AI.FORECAST, AI.KEY_DRIVERS, AI.DETECT_ANOMALIES, and AI.GENERATE.

Reference Directory

  • Functions Reference:
  • AI.AGG: [ai_agg.md](references/ai_agg.md) - Multi-row semantic

aggregation and summarization.

  • AI.CLASSIFY: [ai_classify.md](references/ai_classify.md) - Classify

text.

  • AI.DETECT_ANOMALIES:

[ai_detect_anomalies.md](references/ai_detect_anomalies.md) - Detect

anomalies.

  • AI.EVALUATE: [ai_evaluate.md](references/ai_evaluate.md) - Evaluate

models.

  • AI.FORECAST: [ai_forecast.md](references/ai_forecast.md) -

Time-series forecasting.

  • AI.GENERATE: [ai_generate.md](references/ai_generate.md) - Generate

text using LLMs.

  • AI.GENERATE_EMBEDDING:

[ai_generate_embedding.md](references/ai_generate_embedding.md) -

Generate embeddings.

  • AI.GENERATE_TABLE:

[ai_generate_table.md](references/ai_generate_table.md) - Table-valued

AI generation.

  • AI.IF: [ai_if.md](references/ai_if.md) - Evaluate semantic

conditions.

  • AI.KEY_DRIVERS: [ai_key_drivers.md](references/ai_key_drivers.md) -

Identifies key drivers, this is a TVF.

  • AI.SCORE: [ai_score.md](references/ai_score.md) - Score data.
  • AI.SEARCH: [ai_search.md](references/ai_search.md) - Semantic

search.

  • AI.SIMILARITY: [ai_similarity.md](references/ai_similarity.md) -

Semantic similarity.

  • Remote Models: [remote_models.md](references/remote_models.md) -

Working with remote models (Vertex AI).

  • CONTRIBUTION_ANALYSIS:

[ml_contribution_analysis.md](references/ml_contribution_analysis.md)

  • Finds contributing factors, key drivers of change. Requires creating

a MODEL entity.

  • VECTOR_SEARCH: [vector_search.md](references/vector_search.md) -

Vector search best practices.

Related Skills

  • [BigQuery Basics Skill](../bigquery-basics): SKILL.md file for core BigQuery

concepts, resource management, CLI, and client libraries.

Provenance

Authored by Google LLC in google/skills. The content is mirrored here under its upstream license.

Related

agent-platform-alert-configuration Configures best-practice alerting policies for AI agents using OpenTelemetry (OTel) metrics, generating output as Terraform (.tf) configuration files. Use when analyzing, writing, or deploying alerting policies to monitor agent latency, error rates, token usage, and quality metrics. Don't use for standard infrastructure monitoring unrelated to AI agents, or when the agent is not instrumented with OpenTelemetry (for Reliability, Cost, Safety, Security alerts). NOTE: Reliability, Cost, Safety, and Security alerts use generic OTel metrics and work across runtimes (such as Cloud Run, Vertex AI). Quality alerts rely on Vertex AI Online Monitors and are strictly bound to Vertex AI deployments. google/skills Apache-2.0 agent-platform-deploy Deploy open models or custom weights from Model Garden to Agent Platform endpoints, check the status of an in-progress deployment operation, or clean up resources by undeploying models and deleting endpoints. Use when asked to actively deploy a model, list the Model Garden CATALOG of available models, check if a specific model is deployable (`gcloud ai model-garden models list-deployment-config`), query deployment cost, troubleshoot deployment errors (like quota limits), or undeploy/clean up endpoints. Also use when copying and deploying a 1P Tuned Model. Don't use for pure listing/discovery questions of the form "is X deployed?", "list my endpoints", or "which regions have models running?" — for those use `agent-platform-endpoint-management`. Don't use for public Vertex AI deployments (use the `vertex-deploy` skill) or for running model evaluations (use the `agent-platform-eval-flywheel` skill). google/skills Apache-2.0 agent-platform-endpoint-management Manages Agent Platform serving endpoints. Use when you need to create, list, describe, update, or delete serving endpoints for model deployment on Agent Platform. Also use when troubleshooting endpoint permission, quota, or resource busy errors. Don't use for deploying models to endpoints or for running model evaluations. google/skills Apache-2.0 agent-platform-eval-flywheel Measures and improves the quality of AI models and agents on Google Cloud using the Eval Quality Flywheel methodology. Use when evaluating an agent or model, building an eval dataset, picking or writing evaluation metrics, analyzing failures, comparing results before and after a fix, or when guidance is needed on Agent Platform eval methodology — including dataset schema, LLM-as-judge scoring, and common failure causes. For fine-tuning, use agent-platform-tuning. For general production deployment, use agent-platform-deploy. google/skills Apache-2.0 agent-platform-inference Connects to and performs inference with Google Cloud Agent Platform GenAI models, including First-Party Gemini models and Third-Party OpenMaaS models (Llama, DeepSeek, Qwen, etc.). Use when asked to perform inference, ask a model a question, run a test prompt, execute chat completions, or generate code for calling Gemini or OpenMaaS models, authenticate with GenAI SDK, OpenAI SDK, or legacy Agent Platform SDK, configure base URLs and global/regional endpoints, or troubleshoot 429 Resource Exhausted (DSQ), 400 User Validation, or 404 Not Found errors. Don't use for deploying models to endpoints or for running model evaluations. google/skills Apache-2.0