Add optional AlloyDB search support#110
Open
akshayjadiyanv wants to merge 1 commit into
Open
Conversation
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.
Summary
This PR adds optional AlloyDB AI vector search support for the Search Agent without changing the default Milvus-backed behavior.
alloydb_search) that embeds queries via NIM and runs cosine vector search against AlloyDB (pgvector + ScaNN).configs/search-alloydb.yml) for AlloyDB deployments; the defaultconfigs/search.ymlremains Milvus-backed and is unchanged.scripts/seed_alloydb.py) mirroring the existing Milvus seeder.register.pyand adds required dependencies (psycopg,pgvector,google-cloud-alloydb-connector).cloudbuild.yamlfor native amd64 Cloud Build image builds.Why
The blueprint currently supports Milvus for local/docker-compose workflows. This change adds an opt-in AlloyDB path for GCP deployments (for example Cloud Run + AlloyDB AI) while preserving existing Milvus defaults for adopters who do not use AlloyDB.
Usage
Default (unchanged):
AlloyDB (opt-in):
For Cloud Run, pass
--config_file=configs/search-alloydb.ymland set AlloyDB env vars (ALLOYDB_USE_IAM_AUTH,ALLOYDB_INSTANCE_URI, etc.).Test plan
configs/search.ymlstill usesmilvus_retriever+nat_retriever(default behavior unchanged)configs/search.ymlagainst seeded Milvusscripts/seed_alloydb.pyand run Search Agent withconfigs/search-alloydb.ymlconfigs/search-alloydb.ymland AlloyDB IAM auth (optional GCP validation)