Polish Google + Parallel enrichment cookbook for publication - #70
Merged
Conversation
georgeatparallel
marked this pull request as ready for review
September 10, 2026 21:42
zhengchaol
approved these changes
Sep 10, 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.
This notebook shows how to fill missing fields in a record using web research. Starting with a company name and website, it makes one request through Google's SDK with Parallel search enabled. A second request takes the research answer and its source list and extracts a typed record. Python then checks the record before returning it to the caller.
That workflow already existed, but the tutorial started with an unrelated financial question, had no introduction, and still pointed readers toward an older REST wrapper it no longer used. Some of its claims were also stronger than its checks: “All citations verified” meant the URLs appeared in the search results, not that the sources proved the facts.
This change follows one company from input to result, with a real before-and-after example at the top. It removes the street-address field, keeps people and products as shorter extensions, and moves inline citation formatting to an optional section. The product example now includes its known official URL and asks for list price separately from discounts or trade-in offers. The README and catalog describe the same workflow, with the older client reference still available separately.
The code changes address a few ways the example could fail or return a misleading result:
The checks still don't establish factual accuracy or enforce date and number formats beyond their string types. The tutorial makes that distinction explicit and asks readers to review sources before using the data.
Validation: 44 tests pass, including tests that execute the notebook's actual helper definitions for identity, missing-result, and citation failures. Ruff and notebook/catalog validation pass. A fresh run with a Parallel API key completed all ten cells with default sampling, and the saved results and cited pages were reviewed. The later Unicode fallback was tested with failing-before/passing-after regressions. Marketplace configuration is covered offline but hasn't been tested live.
Read the notebook and saved outputs.