Skip to content

Switch enrichment cookbook from REST client to google-genai SDK#52

Merged
ruthvikcm merged 4 commits into
mainfrom
rm-use-google-sdk
Jul 14, 2026
Merged

Switch enrichment cookbook from REST client to google-genai SDK#52
ruthvikcm merged 4 commits into
mainfrom
rm-use-google-sdk

Conversation

@ruthvikcm

Copy link
Copy Markdown
Collaborator

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.

ruthvikcm and others added 2 commits July 14, 2026 12:34
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>
@ruthvikcm
ruthvikcm requested a review from parallel-m July 14, 2026 21:23
ruthvikcm and others added 2 commits July 14, 2026 17:26
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@ruthvikcm
ruthvikcm requested a review from manvesh July 14, 2026 21:59
@ruthvikcm
ruthvikcm merged commit cdf1859 into main Jul 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants