-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Support "Grounding with Google Search" in Google provider #3553
Comments
I have tried vertex is valid, it will report an error in Google AI Studio, which does not support this parameter. And note that when used in the vertex, no tools can be included, otherwise an error will also be reported. |
@shaper do we support this with the latest provider versions? |
We do support grounding with the Google Vertex 2.0+ I also observed that grounding and tool use are mutually exclusive -- if you specify grounding you cannot specify additional tools with a Google-API-side restriction error. I believe the Vertex provider will ignore other tools if you specify grounding. Notes on the current implementation:
|
The above changes were just published to the package versions in #4081 This enables search grounding support in the Google Generative AI We plan to add support for customizing the dynamic retrieval config soon. At that time I would consider this issue complete. If there is interest in the enterprise data support mentioned above please file that as a separate issue. |
Hey there, dope addition! Just played with it a bit and got it to work pretty well. Some observations though:
Lmk whether I should open separate issues for those if you want to close this one. |
Yes, probably -- I will check this and update docs if needed.
It is on my radar, will try to get to it soon.
No need, let's keep this one for now. |
I just created another issue (and a proposed implementation plan) for the "enterprise" feature of grounding in your own data: |
Feature Description
The Gemini API has a new feature where you can ground results with Google search which reduces hallucinations and provides references to content:
https://ai.google.dev/gemini-api/docs/grounding
The text was updated successfully, but these errors were encountered: