diff --git a/generative_ai/grounding/requirements.txt b/generative_ai/grounding/requirements.txt index 49cebea8dc8..250437ef3ea 100644 --- a/generative_ai/grounding/requirements.txt +++ b/generative_ai/grounding/requirements.txt @@ -1 +1 @@ -google-cloud-aiplatform==1.78.0 +google-cloud-aiplatform==1.82.0 diff --git a/generative_ai/grounding/web_example.py b/generative_ai/grounding/web_example.py index 9c92a4a6faf..926dd6b3aee 100644 --- a/generative_ai/grounding/web_example.py +++ b/generative_ai/grounding/web_example.py @@ -40,6 +40,7 @@ def generate_text_with_grounding_web() -> GenerationResponse: grounding.GoogleSearchRetrieval( # Optional: For Dynamic Retrieval dynamic_retrieval_config=grounding.DynamicRetrievalConfig( + mode=grounding.DynamicRetrievalConfig.Mode.MODE_DYNAMIC, dynamic_threshold=0.7, ) ) @@ -54,7 +55,7 @@ def generate_text_with_grounding_web() -> GenerationResponse: ), ) - print(response.text) + print(response) # Example response: # The next total solar eclipse visible from the contiguous United States will be on **August 23, 2044**.