Skip to content

Instantly share code, notes, and snippets.

@jeffonelson
Last active February 26, 2026 16:51
Show Gist options
  • Select an option

  • Save jeffonelson/eec6de716685b60f0cce062b27087987 to your computer and use it in GitHub Desktop.

Select an option

Save jeffonelson/eec6de716685b60f0cce062b27087987 to your computer and use it in GitHub Desktop.
Use Gemini 3.0 Pro with BigQuery.
# Just replace <project_id> in the endpoint argument with your own project to run this query!
SELECT
title,
medium,
AI.GENERATE(
'Write a 1-sentence dramatic backstory for this object: ' || title || ' made of ' || medium,
endpoint => 'https://aiplatform.googleapis.com/v1/projects/<project_id>/locations/global/publishers/google/models/gemini-3-pro-preview'
) AS ai_story
FROM
`bigquery-public-data.the_met.objects`
WHERE
department = 'Arms and Armor';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment