Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion generative_ai/grounding/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google-cloud-aiplatform==1.78.0
google-cloud-aiplatform==1.82.0
3 changes: 2 additions & 1 deletion generative_ai/grounding/web_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Comment thread
holtskinner marked this conversation as resolved.
dynamic_threshold=0.7,
)
)
Expand All @@ -54,7 +55,7 @@ def generate_text_with_grounding_web() -> GenerationResponse:
),
)

print(response.text)
print(response)
Comment thread
holtskinner marked this conversation as resolved.
# Example response:
# The next total solar eclipse visible from the contiguous United States will be on **August 23, 2044**.

Expand Down