Skip to content

Fix AlloyDB context templates and password generation in deploy_alloydb.sh - #14

Merged
gotochkin merged 3 commits into
GoogleCloudPlatform:mainfrom
azielman:fix-alloydb-ai-nla-context-and-function
Aug 11, 2026
Merged

Fix AlloyDB context templates and password generation in deploy_alloydb.sh#14
gotochkin merged 3 commits into
GoogleCloudPlatform:mainfrom
azielman:fix-alloydb-ai-nla-context-and-function

Conversation

@azielman

@azielman azielman commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Description

This PR addresses issues identified in the alloydb-ai-nla codelab:

  1. Fixes password generation in deploy_alloydb.sh: Uses alphanumeric character filtering to ensure robust password generation without unsupported characters.
  2. Aligns school scoring formula in sixrecipe_context4_3.json: Replaces the remaining real_estate.school_score reference with the direct weighted ranking formula (0.8 * "s"."school_ranking" + 0.2 * "stp"."proximity_miles"), ensuring consistency across all context templates without requiring a custom database function.
  3. Fixes sixrecipe_context1_2.json parameterized structure: Corrects the parameterized block so that parameterized_sql contains the actual parameterized SQL query rather than the natural language manifest string, and removes the invalid "sql" key.
  4. Fixes spelling typo in sixrecipe_context4_3.json: Corrects the spelling of "appliences" to "appliances" across template metadata fields in Template 3.

azielman added 3 commits August 7, 2026 22:46
- Define real_estate.school_score SQL function in real_estate_data.sql.
- Fix malformed parameterized_sql key in sixrecipe_context1_2.json.
- Fix spelling typo for appliances in sixrecipe_context4_3.json.
…mplates with real_estate.school_score function
…ontext templates

- Remove real_estate.school_score function definition from real_estate_data.sql.
- Revert all context JSON templates to use inlined weighted formula (0.8 * school_ranking + 0.2 * proximity_miles).
@azielman azielman changed the title Fix AlloyDB context templates and define school_score function Fix AlloyDB context templates and password generation in deploy_alloydb.sh Aug 10, 2026
@gotochkin
gotochkin self-requested a review August 10, 2026 20:02

@gotochkin gotochkin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@azielman azielman closed this Aug 10, 2026
@azielman azielman reopened this Aug 10, 2026
@gotochkin
gotochkin merged commit 53225ea into GoogleCloudPlatform:main Aug 11, 2026
13 checks 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.

2 participants