bigquery-ai
Installation
SKILL.md
BigQuery AI (bigquery-ai)
BigQuery AI brings foundation models (Gemini, TimesFM, TabFM, EmbeddingGemma, Text/Multimodal Embeddings) and pre-trained Google Cloud AI services directly into SQL and Python (bigframes.bigquery.ai) with zero model training.
This skill packages a verified, field-tested 4-Lens reference distilled from live-executing all 29 functions and 14 composed workflows in bigquery-ai/.
Decision Tree (Lens 1 → Lens 2)
- Do you want free-form or structured schema output per row (summaries, multi-field JSON/STRUCT extraction, typed scalars, token counting)? → see
reference/general-purpose-generation.md - Do you want a managed, zero-config judgment per row or group (boolean filter
AI.IF, numeric ratingAI.SCORE, fixed-category labelAI.CLASSIFY, or group synthesisAI.AGG)? → seereference/managed-functions.md - Do you need to embed text/multimodal content, compute pairwise similarity, or run vector/hybrid RRF search? → see
reference/embeddings-and-search.md - Do you need zero-training predictions — forecast a time series (
AI.FORECASTon TimesFM 2.5 / 3.0), detect anomalies (AI.DETECT_ANOMALIES), or predict tabular targets without training (AI.PREDICT+AI.EVALUATEon TabFM)? → seereference/predictive-ai.md - Do you need to explain why a summable metric moved (
AI.KEY_DRIVERS), or estimate the causal impact of an intervention (AI.CAUSAL_EFFECT)? → seereference/augmented-analytics.md(which also routesAI.CAUSAL_EFFECTto../bigquery-ml/reference/workflows-and-pipelines.md) - Are you extracting structured records from PDFs/images or passing
ObjectRefmedia intoAI.*functions? → seereference/document-processing.md - Do you need a pre-trained Cloud AI service (
REMOTE_SERVICE_TYPE) with a fixed API schema and per-row status column (ML.TRANSLATE,ML.UNDERSTAND_TEXT,ML.ANNOTATE_IMAGE,ML.TRANSCRIBE,ML.PROCESS_DOCUMENT)? → seereference/cloud-ai-service-models.md - Are you composing multiple capabilities into an end-to-end application (RAG, hybrid catalog search, document intelligence, log triage, content moderation, metric diagnostics)? → see
reference/workflows.md
If the task is ambiguous between zero-training foundation functions (bigquery-ai), trained models (bigquery-ml), or production orchestration/monitoring (bigquery-mlops), consult ../bigquery-data-science/SKILL.md first.