Switch enrichment cookbook from REST client to google-genai SDK#52
Merged
Conversation
Parallel grounding is available natively in the Gemini Python SDK as the parallel_ai_search tool, so the notebook no longer needs the local REST client: setup is now genai.Client plus one pip install, the hand-rolled pydantic-to-responseSchema converter is replaced by the SDK's native response_schema/parsed support, and a new section 1.4 attaches inline per-claim citations in code from grounding_supports byte offsets. Also adds a third use case, product catalog enrichment, reusing the same pipeline, and consolidates cells for a leaner read. Re-executed live end-to-end with all citations verified. Co-authored-by: Cursor <cursoragent@cursor.com>
…prose Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
parallel-m
approved these changes
Jul 14, 2026
manvesh
approved these changes
Jul 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Parallel grounding is available natively in the Gemini Python SDK as the parallel_ai_search tool, so the notebook no longer needs the local REST client: setup is now genai.Client plus one pip install, the hand-rolled pydantic-to-responseSchema converter is replaced by the SDK's native response_schema/parsed support, and a new section 1.4 attaches inline per-claim citations in code from grounding_supports byte offsets. Also adds a third use case, product catalog enrichment, reusing the same pipeline, and consolidates cells for a leaner read. Re-executed live end-to-end with all citations verified.