Skip to content

feat(ai): add support for grounding with google search #9068

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

dlarocque
Copy link
Contributor

@dlarocque dlarocque commented May 30, 2025

This feature allows developers to connect generative models “...with world knowledge, a wide range of possible topics, or up-to-date information on the Internet” (Vertex AI - Grounding with Google Search). This API allows developers to enable Grounding with Google Search as a tool, and access Grounded Response data.

API Proposal: go/fal-grounding-api (internal link)

Copy link

changeset-bot bot commented May 30, 2025

🦋 Changeset detected

Latest commit: a028430

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
firebase Minor
@firebase/ai Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@google-oss-bot
Copy link
Contributor

google-oss-bot commented May 30, 2025

Size Report 1

Affected Products

  • @firebase/ai

    TypeBase (7fb64dd)Merge (926edcd)Diff
    browser42.5 kB42.6 kB+93 B (+0.2%)
    main43.7 kB43.8 kB+93 B (+0.2%)
    module42.5 kB42.6 kB+93 B (+0.2%)
  • @firebase/app

    TypeBase (7fb64dd)Merge (926edcd)Diff
    react-native?20.4 kB? (?)
  • @firebase/firestore

    TypeBase (7fb64dd)Merge (926edcd)Diff
    browser385 kB395 kB+9.92 kB (+2.6%)
    main596 kB616 kB+20.0 kB (+3.4%)
    module385 kB395 kB+9.92 kB (+2.6%)
    react-native386 kB395 kB+9.92 kB (+2.6%)
  • @firebase/firestore-lite

    TypeBase (7fb64dd)Merge (926edcd)Diff
    browser114 kB117 kB+2.56 kB (+2.2%)
    main157 kB160 kB+2.92 kB (+1.9%)
    module114 kB117 kB+2.56 kB (+2.2%)
    react-native114 kB117 kB+2.56 kB (+2.2%)
  • @firebase/performance

    TypeBase (7fb64dd)Merge (926edcd)Diff
    browser30.6 kB31.5 kB+939 B (+3.1%)
    main31.0 kB32.0 kB+939 B (+3.0%)
    module30.6 kB31.5 kB+939 B (+3.1%)
  • @firebase/util

    TypeBase (7fb64dd)Merge (926edcd)Diff
    browser29.3 kB29.4 kB+118 B (+0.4%)
    main35.7 kB35.8 kB+118 B (+0.3%)
    module29.3 kB29.4 kB+118 B (+0.4%)
  • bundle

    40 size changes

    TypeBase (7fb64dd)Merge (926edcd)Diff
    auth (Anonymous)77.9 kB78.0 kB+107 B (+0.1%)
    auth (EmailAndPassword)88.0 kB88.1 kB+107 B (+0.1%)
    auth (GoogleFBTwitterGitHubPopup)109 kB109 kB+107 B (+0.1%)
    auth (GooglePopup)102 kB102 kB+107 B (+0.1%)
    auth (GoogleRedirect)102 kB102 kB+107 B (+0.1%)
    auth (Phone)95.4 kB95.5 kB+107 B (+0.1%)
    database (Append to a list of data)154 kB154 kB+107 B (+0.1%)
    database (Filtering data)153 kB153 kB+107 B (+0.1%)
    database (Listen for child events)170 kB170 kB+107 B (+0.1%)
    database (Listen for value events + Detach listeners)170 kB170 kB+107 B (+0.1%)
    database (Listen for value events)170 kB170 kB+107 B (+0.1%)
    database (Read data once)169 kB169 kB+107 B (+0.1%)
    database (Save data as transactions)172 kB172 kB+107 B (+0.1%)
    database (Sort data)155 kB155 kB+107 B (+0.1%)
    database (Write data)154 kB154 kB+107 B (+0.1%)
    firestore (CSI Auto Indexing Disable and Delete)280 kB291 kB+11.0 kB (+3.9%)
    firestore (CSI Auto Indexing Enable)280 kB291 kB+11.0 kB (+3.9%)
    firestore (Persistence)311 kB322 kB+10.7 kB (+3.5%)
    firestore (Query Cursors)256 kB260 kB+4.07 kB (+1.6%)
    firestore (Query)254 kB258 kB+4.06 kB (+1.6%)
    firestore (Read data once)242 kB248 kB+5.98 kB (+2.5%)
    firestore (Read Write w Persistence)336 kB342 kB+6.17 kB (+1.8%)
    firestore (Realtime updates)244 kB248 kB+4.19 kB (+1.7%)
    firestore (Transaction)221 kB227 kB+5.86 kB (+2.6%)
    firestore (Write data)220 kB228 kB+7.48 kB (+3.4%)
    firestore-lite (Query Cursors)109 kB111 kB+2.14 kB (+2.0%)
    firestore-lite (Query)105 kB107 kB+2.14 kB (+2.0%)
    firestore-lite (Read data once)80.6 kB82.9 kB+2.26 kB (+2.8%)
    firestore-lite (Transaction)106 kB108 kB+2.14 kB (+2.0%)
    firestore-lite (Write data)90.2 kB92.4 kB+2.14 kB (+2.4%)
    functions (call)39.4 kB39.5 kB+107 B (+0.3%)
    performance (trace)62.4 kB63.0 kB+587 B (+0.9%)
    storage (getBytes)47.2 kB47.3 kB+107 B (+0.2%)
    storage (getDownloadURL)49.2 kB49.4 kB+107 B (+0.2%)
    storage (getMetadata)48.7 kB48.8 kB+107 B (+0.2%)
    storage (list + listAll)48.1 kB48.2 kB+107 B (+0.2%)
    storage (updateMetadata)49.0 kB49.1 kB+107 B (+0.2%)
    storage (uploadBytes)53.8 kB53.9 kB+107 B (+0.2%)
    storage (uploadBytesResumable)63.8 kB63.9 kB+107 B (+0.2%)
    storage (uploadString)54.0 kB54.1 kB+107 B (+0.2%)

  • firebase

    20 size changes

    TypeBase (7fb64dd)Merge (926edcd)Diff
    firebase-ai.js33.8 kB33.9 kB+57 B (+0.2%)
    firebase-auth-compat.js145 kB146 kB+86 B (+0.1%)
    firebase-auth-cordova.js143 kB143 kB+94 B (+0.1%)
    firebase-auth-web-extension.js125 kB125 kB+94 B (+0.1%)
    firebase-auth.js163 kB163 kB+94 B (+0.1%)
    firebase-compat.js802 kB807 kB+4.76 kB (+0.6%)
    firebase-data-connect.js22.7 kB22.8 kB+94 B (+0.4%)
    firebase-database-compat.js168 kB168 kB+94 B (+0.1%)
    firebase-database.js192 kB192 kB+94 B (+0.0%)
    firebase-firestore-compat.js347 kB351 kB+4.24 kB (+1.2%)
    firebase-firestore-lite.js137 kB140 kB+2.65 kB (+1.9%)
    firebase-firestore.js449 kB459 kB+9.98 kB (+2.2%)
    firebase-functions-compat.js14.7 kB14.8 kB+94 B (+0.6%)
    firebase-functions.js19.5 kB19.6 kB+94 B (+0.5%)
    firebase-performance-compat.js40.0 kB40.5 kB+501 B (+1.3%)
    firebase-performance-standalone-compat.js105 kB105 kB+530 B (+0.5%)
    firebase-performance.js45.5 kB46.0 kB+565 B (+1.2%)
    firebase-storage-compat.js44.2 kB44.3 kB+94 B (+0.2%)
    firebase-storage.js51.1 kB51.2 kB+94 B (+0.2%)
    firebase-vertexai.js33.8 kB33.9 kB+57 B (+0.2%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/3MwRfDo50K.html

@google-oss-bot
Copy link
Contributor

google-oss-bot commented May 30, 2025

Size Analysis Report 1

This report is too large (1,258,192 characters) to be displayed here in a GitHub comment. Please use the below link to see the full report on Google Cloud Storage.

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/nw9Hyh7xXC.html

@dlarocque dlarocque marked this pull request as ready for review June 23, 2025 15:07
@dlarocque dlarocque requested review from a team as code owners June 23, 2025 15:07
@dlarocque dlarocque requested a review from hsubox76 June 27, 2025 17:16
Copy link
Contributor

@hsubox76 hsubox76 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG! Just one nit, it's fine if you don't change it.

@dlarocque dlarocque requested a review from rachelsaunders July 2, 2025 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants