Index of every page on this site: llms.txt
All skills
google avatar

/bigquery-ai-ml

@37de74d
by googlegoogle/adk-python22k stars
4,392
Run it yourself

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, measure the causal effect of an intervention, compute correlations between columns, detect change points or structural breaks, extract trend or seasonality components, or leverage generative AI capabilities in BigQuery. Do not use for general BigQuery dataset, table, or job management requests.

Use this Skill: https://skilld.dev/gh/google/adk-python/bigquery-ai-ml

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesai_score.md

≈481 tokens on demand. Your agent reads this file only when SKILL.md points to it.

BigQuery AI.Score

The AI.SCORE function is commonly used with the ORDER BY clause and works well when you want to rank items. The following are common use cases:

  • Retail: Find the top 5 most negative customer reviews about a product.
  • Hiring: Find the top 10 resumes that appear most qualified for a job post.
  • Customer success: Find the top 20 best customer support interactions.

Syntax Reference

AI.SCORE(
  [ prompt => ] 'PROMPT'
  [, connection_id => 'CONNECTION_ID' ]
  [, endpoint => 'ENDPOINT' ]
)

Input Arguments

Argument Requirement Type Description
prompt Required String/Struct The prompt text or a
: : : : struct/tuple of :
: : : : (data, instruction). :
connection_id Optional String The connection ID to
: : : : use for the LLM. :
endpoint Optional String The model endpoint
: : : : (e.g. :
: : : : 'gemini-2.5-flash'). :

Output Schema

Column Name Type Description
(Scalar Result) FLOAT64 A numerical score representing the degree
: : : to which the data matches the instruction. :

Examples

Rank rows by semantic relevance

SELECT *
FROM `dataset.table`
ORDER BY AI.SCORE(
  (content_column, 'relevance to sports'),
  connection_id => 'my-project.us.my-connection'
) DESC
LIMIT 10;

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts5mo3 checks · Risk SAFE
  • Gen Agent Trust Hub5mo

    This skill provides a comprehensive interface for BigQuery AI and Machine Learning functions using standard SQL. It includes security considerations regarding the handling of untrusted data within AI-driven queries, which is standard for this type of functionality. Users should apply appropriate data validation when using these features.

  • Socket5mo

    No alerts

  • Snyk5mo

    Risk: LOW · No issues

Signed by skilld at 37de74d. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last month
metadata
{
  "author": "google-adk",
  "version": "1.0"
}

README badge

README badge for google/adk-python/bigquery-ai-ml