feat: add Vector Search 2.0 + ADK travel agent notebook - #3103
Open
kazunori279 wants to merge 2 commits into
Open
feat: add Vector Search 2.0 + ADK travel agent notebook#3103kazunori279 wants to merge 2 commits into
kazunori279 wants to merge 2 commits into
Conversation
Moves the travel agent notebook out of google/adk-samples, where it was deleted in google/adk-samples@63bfb33c along with the deprecated samples, and into embeddings/ next to the other Vector Search 2.0 notebooks. Carried over from the original, with these changes: - Rebranded to Agent Platform and repointed the doc links at docs.cloud.google.com, matching vector-search-2-intro.ipynb. - Repo notebook header: license cell, badge table, author, Overview. - `%pip` instead of `!pip`, and tqdm is now installed rather than just imported. - Listings with no price are dropped instead of defaulted to 0.0. About a third of the Inside Airbnb rows have no price, so the old fill made every "under GBP X" filter match them and the agent reported listings it had no price for. - `find_rentals(filter=...)` renamed to `metadata_filter` so it stops shadowing the builtin; the agent instruction follows. - The `run_debug` calls bind their result, so the readable trace is no longer followed by a screenful of the returned event list. Verified end to end against google-adk 2.8.0 and google-cloud-vectorsearch 0.11.2: ingest, hybrid search, all three agent queries and the cleanup cell run clean.
holtskinner
reviewed
Sep 10, 2026
holtskinner
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for adding! I just found out that Vector Search 2.0 is now called "Agent Retrieval" https://docs.cloud.google.com/gemini-enterprise-agent-platform/build/vector-search-2/overview
Could you update this notebook to use the new name?
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.
Description
Adds
embeddings/vector-search-2-travel-agent.ipynb, an end-to-end walkthrough of building a Gen AI travel agent on Agent Platform Vector Search 2.0 and ADK: ingest real Airbnb listings into a Collection with auto-embeddings, run semantic / text / hybrid search with metadata filters, then wrap hybrid search as a tool an ADK agent calls on its own.The notebook comes from
google/adk-samples, where it was deleted in google/adk-samples@63bfb33c along with the rest of the deprecated notebooks.embeddings/is a better home for it, next tovector-search-2-intro.ipynb.Changes made while moving it:
docs.cloud.google.com, matchingvector-search-2-intro.ipynb.%pipinstead of!pip, andtqdmis now installed rather than only imported.0.0. About a third of the Inside Airbnb rows have no price, so the oldfillna(0.0)made every "under GBP X" filter match them, and the agent then reported listings it had no price for.find_rentals(filter=...)renamed tometadata_filterso it stops shadowing the builtin; the agent instruction follows.run_debugcalls bind their result, so the readable trace is no longer followed by a screenful of the returned event list.embeddings/README.mdalso picks up three pre-existing "Vertex AI Vector Search" -> "Agent Platform Vector Search" rewrites, because the forbidden-pattern check scans the whole changed file.Testing
Executed end to end against
google-adk2.8.0 andgoogle-cloud-vectorsearch0.11.2 (400 listings, real project): ingestion, all three search types, the three agent queries and the cleanup cell run with no errors, and the agent produces the expected compound filters, e.g.{"$and": [{"neighborhood": {"$eq": "Hackney"}}, {"price": {"$lt": 200}}, {"instant_bookable": {"$eq": "t"}}]}. Outputs are stripped from the committed notebook.Checklist
CONTRIBUTINGGuide../scripts/format.sh).READMEfile.CODEOWNERSfor the file(s).🤖 Generated with Claude Code