All skills
google avatar

/bigquery-ai-ml

@435f7c7
by googlegoogle/adk-python22k stars
4,084

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

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

This session only. Nothing lands on disk.

referencesbigquery_ai_similarity.md

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

BigQuery AI.Similarity

AI.SIMILARITY computes the cosine similarity between two inputs

Syntax Reference

AI.SIMILARITY(
  content1 => 'CONTENT1',
  content2 => 'CONTENT2'
  endpoint => 'ENDPOINT'
  [, model_params => 'MODEL_PARAMS']
  [, connection_id => 'CONNECTION_ID']
)

Input Arguments

Argument Requirement Type Description
content1 Required String The first text content.
content2 Required String The second text content to
: : : : compare against. :
connection_id Optional String The connection ID to use for
: : : : the LLM. :
endpoint Optional String The model endpoint (e.g.
: : : : 'multimodalembedding@001'). :
model_params Optional JSON JSON object for model
: : : : parameters (e.g., :
: : : : temperature, :
: : : : max_output_tokens). :

Output Schema

Column Name Type Description
(Scalar Result) FLOAT64 A similarity score (e.g., cosine
: : : similarity). Returns null if error. :

Examples

SELECT AI.SIMILARITY(
  content1 => 'The cat sat on the mat',
  content2 => 'A feline is resting on the rug',
  endpoint => 'text-embedding-005'
) as similarity_score;

Source: SKILL.md on GitHub

No alerts3mo3 checks · Risk SAFE
  • Gen Agent Trust Hub3mo

    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.

  • Socket3mo

    No alerts

  • Snyk3mo

    Risk: LOW · No issues

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

Last checked against GitHub yesterday.

Activeupdated 6 months ago
metadata
{
  "author": "google-adk",
  "version": "1.0"
}

README badge

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