You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used to use this code to set the dynamic_threshold and it works well. However, it can not stop Gemini from using the grounding tool to search anymore, even I only input 'hello' or set the threshold to '1'. Furthermore, the Gemini does also not respond retrieval_metadata, where I could see the google_search_dynamic_retrieval_score in the past.
Then I found the SDK update(#4644) and rewrote it to the code example below, but it still does not work. How could I effectively set the dynamic_threshold now?
I’m encountering the same issue.
Based on my testing, setting the location value to "us-central1" seems to make dynamic retrieval work as expected.
However, when specifying "asia-northeast1", grounding is always executed instead.
Description
I used to use this code to set the
dynamic_threshold
and it works well. However, it can not stop Gemini from using the grounding tool to search anymore, even I only input 'hello' or set the threshold to '1'. Furthermore, the Gemini does also not respondretrieval_metadata
, where I could see thegoogle_search_dynamic_retrieval_score
in the past.Then I found the SDK update(#4644) and rewrote it to the code example below, but it still does not work. How could I effectively set the
dynamic_threshold
now?Environment details
google-cloud-aiplatform
version: 1.75.0Code example
Response
The text was updated successfully, but these errors were encountered: