Generated banner for Google Cloud Solution RAG Enterprise Search Gke Sqldb
Generated logo for Google Cloud Solution RAG Enterprise Search Gke Sqldb

Google Cloud Solution RAG Enterprise Search Gke Sqldb

GoogleOfficialPublished by Google

  • Skill
  • Workflow
  • Cloud and DevOps
  • Apache-2.0
  • No issues found

From the author

Discovers requirements, and generates architectural, design, and deployment guidance for a retrieval-augmented generation (RAG)-capable enterprise search system in Google Cloud. Use when users need a vector-enabled SQL database as the store and index for the embedding vectors, an open model and open-source inferencing framework, and Kubernetes containers to host all the application components. DON'T use this skill for fully-managed RAG, or SaaS search services, or when a non-SQL vector database is required.
— the description by Google

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

This skill provides a structured, multi-phase workflow to assist users in designing and deploying a retrieval-augmented generation (RAG) enterprise search solution. It focuses on architectures that utilize Google Kubernetes Engine (GKE) for hosting application components, including open models and inference frameworks, alongside a vector-enabled SQL database for storage and indexing. The process encompasses requirements discovery, architectural design, solution validation, and final documentation, ensuring alignment with official Google Cloud guidance.

What it does

  • Gathers functional and non-functional requirements for RAG workloads.
  • Generates a technical decomposition of RAG system components.
  • Provides architectural diagrams and descriptions for GKE-based RAG solutions.
  • Offers design recommendations for security, reliability, cost, and performance.
  • Creates deployment guidance including Terraform and configuration scripts.
  • Develops and executes a validation plan for the implemented solution.

When to use it

  • When building a RAG-capable search system using GKE.
  • When the architecture requires a vector-enabled SQL database for vector storage.
  • When using open models and open-source inferencing frameworks.
  • When you need a guided, step-by-step process to move from requirements to deployment.

Advantages

  • Ensures architectural consistency through grounding in official Google Cloud documentation.
  • Provides a clear, phased approach to prevent premature design decisions.
  • Includes built-in validation steps to verify the solution against requirements.
  • Facilitates the creation of comprehensive, standardized architecture documentation.

Usage examples

“I need to design a RAG system on GKE using a vector-enabled SQL database. Can you help me start?”
The agent initiates Phase 1: Requirements discovery, asking for functional and non-functional requirements to begin the design process.
“My requirements are defined. How do I proceed with the architecture?”
The agent reviews the requirements, generates a technical decomposition for your approval, and then moves to Phase 2 to define products and architecture.

Install

  1. Download the skill as a ZIP:

    https://autogineer.com/agent-skills/google/google-cloud-solution-rag-enterprise-search-gke-sqldb/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip google-cloud-solution-rag-enterprise-search-gke-sqldb.zip -d .agents/skills

Documentation by Google

RAG for enterprise search using GKE and AlloyDB

This skill provides a workflow to design and implement a secure, low-latency, and high-accuracy RAG-enabled conversational search solution for private enterprise content by using an AlloyDB database, Cloud Storage, and a Google Kubernetes Engine (GKE) cluster to host all the application components, including an open model and an open-source inference framework.

Attribution

MUST READ: Before executing any gcloud, REST API, or MCP command, you MUST read and follow the instructions in Usage Attribution.

Overview of the workflow

The workflow consists of the following phases:

  • Phase 1: Requirements discovery. Gather detailed requirements related to the cloud workload or use case that the user needs assistance for.

  • Phase 2: Solution architecture. Use the requirements that were gathered in Phase 1 to generate a detailed solution architecture for the cloud workload or use case.

  • Phase 3: Solution validation. Create a plan to validate the generated solution, generate validation instructions and scripts, and run the validation.

  • Phase 4: Solution packing and presentation. Consolidate the generated content and present the solution.

Important notes about the workflow:

  • Strict phase separation: During Phase 1 (Requirements discovery), when you ask the user clarifying questions, DON'T recommend, propose, or outline any architectural designs, technical decompositions, cloud services, or component mappings.

  • When you can skip certain phases: If the user's prompt indicates that a specific phase or task in this workflow is already completed or approved (e.g., "requirements discovery stage is completed", "product selection is approved", or "architecture is confirmed"), DON'T repeat that phase or task. Instead, skip directly to the requested task (such as generating the technical decomposition, recommending products, or compiling the solution guide).

Phase 1: Requirements discovery

In this phase, you must gather detailed requirements related to the RAG workload that the user wants to design and deploy in Google Cloud.

Complete the following steps strictly in the specified order:

  1. Ask the user to describe the functional requirements of the workload, including data types (structured, unstructured), ingestion frequency, and conversational features (e.g., multi-turn chat, citation requirements).

  2. Ask the user to describe the following non-functional requirements:

    • Security, privacy, and compliance: E.g., network isolation, private endpoints, data residency, and requirements for compliance.

    • Reliability: E.g., scaling, high availability, resilience against zone or regional outages, disaster recovery goals for RTO and RPO.

    • Cost: E.g., cost of compute, storage, and database resources.

    • Operational excellence: E.g., monitoring, alerts, and logging.

    • Performance: E.g., data upload speed, performance expectations for generating embedding vectors, and latency requirements for model responses and data retrieval queries (including vector and hybrid search).

    • Sustainability: E.g., carbon footprint, low-carbon regions.

  3. Ask the user whether the workload currently runs on other cloud providers or on-premises.

    • If the user's answer is "yes", then ask the user to describe the architecture of the current deployment.

    • If the user's answer is "no", then proceed to the next step.

  4. Ask the user to describe dependencies, if any, on other workloads, products, or tools (e.g., identity providers, external sources, CRM/ERP database integrations).

  5. Review the input that the user has provided so far, and check whether there are any ambiguities or contradictions.

    If you identify any ambiguities or contradictions in the requirements that the user has provided, then do the following for each ambiguity or contradiction that you identify:

    • Describe the ambiguity or contradiction.

    • Ask the user how they wish to resolve the ambiguity or contradiction.

      • If the user delegates the choice to you (e.g., the user replies with "do what you think is best" or "you decide"), then provide a clear suggestion to resolve the ambiguity or contradiction, explain your reasoning, and ask the user to approve your suggestion.

    Critical: Until all the ambiguities and contradictions that you identify are resolved according to the preceding guidance, you must NOT recommend or generate any architecture design, technical decomposition, or Google Cloud product recommendations.

  6. Important: DON'T start this step if there are unresolved contradictions or ambiguities from Step 5.

    Generate a technical decomposition of the components of the workload. The technical decomposition must break down the solution into logical components, as follows:

    • Data ingestion: Blob storage for raw corporate documents.

    • Data processing and chunking: Containerized pipeline to extract data, clean it, and chunk it.

    • Embedding vectors generation: Containerized service to convert data chunks to embedding vectors.

    • Storing and indexing the embedding vectors: Vector-enabled SQL database for storing embedding vectors.

    • Handling non-vector data: Preparing non-vector data, like tables, views, and aggregations for data retrieval. Analyzing whether any indexing, partitioning, or other performance techniques can be applied on the original data schema.

    • Query and retrieval: Accepting client queries, identifying intent, and routing to a retrieval workflow, which might include conversion of the request to an embedding for semantic search, extracting and applying filters for filtered search or supplying all to the hybrid search.

    • Prompt augmentation: Augmenting the prompts with the retrieved context.

    • Response generation: Requesting and generating responses from the model.

    • Response sanity checks: Evaluating responses using an AI model and performing procedural checks according to defined criteria.

  7. Ask the user to approve the generated technical decomposition.

    Critical: You MUST stop execution immediately, call no more tools (such as file editors, searches, or code tools), and wait for the user to respond with their feedback or approval in the chat. Do NOT compile the architecture, recommend products, construct maps, or write any files/drafts for Phase 2 until the user's explicit approval is received.

  8. If the user requests changes, then generate an updated technical decomposition.

  9. Repeat steps 5 through 8 until the user approves the generated technical decomposition.

  10. Only after the user has explicitly approved the technical decomposition, proceed to Phase 2.

    Important: You are strictly prohibited from recommending product choices, generating the architecture diagram, or drafting design recommendations until the technical decomposition is approved.

Phase 2: Solution architecture

Ground all generated content

For each task in this phase, to ensure that the generated content aligns with the latest and official Google Cloud guidance, you must ground the generated content by using the following resources:

For each item in the generated guidance, you must include citations to the relevant official Google Cloud documentation pages.

Task 2.1: Identify Google Cloud products and features required for the workload.
  1. Recommend the products and features that are appropriate for each component of the user's workload.

    Important: The Google Cloud products and features that you recommend MUST be consistent with the guidance in references/product-selection-recommendations.md.

  2. Present the generated product recommendations and ask the user to approve the recommendations.

  3. If the user requests changes, then make the required changes.

  4. Repeat steps 2 and 3 until the user approves the product recommendations.

  5. After the user approves the product recommendations, proceed to Task 2.2.

Task 2.2: Generate an architecture diagram.
  1. Generate an architecture diagram in the Mermaid format: https://github.com/mermaid-js/mermaid.

    The diagram must show the data flows and request flows across the components of the architecture, based on the technical composition that you generated.

    The following is an example of the data flows and request flows that the architecture diagram should show:

    • Embedding pipeline (batch/streaming): Data source -> Cloud Storage -> Cloud Storage FUSE -> GKE Ray Worker (Chunking) --> Embedding generation using GemmaEmbedding -> AlloyDB.

    • Serving pipeline (real-time): User client -> GKE Frontend (LangChain Orchestration) -> Database Query (semantic or hybrid search on the vector store) -> Retrieve matching data -> Augment prompt -> Gemma vLLM endpoint API -> Output (Responsible AI filtering) -> User client.

  2. Present the generated diagram to the user and ask the user to approve the architecture diagram.

  3. If the user requests changes, then make the required changes.

  4. Repeat steps 2 and 3 until the user approves the architecture diagram.

  5. After the user approves the architecture diagram, proceed to Task 2.3.

Task 2.3: Generate an architecture description.
  1. Generate a description that explains the purpose of each component, the relationships between the components, and the task flow or data flow.

  2. Present the generated architecture description to the user and ask the user to approve the description.

  3. If the user requests any changes, then make the required changes.

  4. Repeat steps 2 and 3 until the user approves the architecture description.

  5. After the user approves the architecture description, proceed to Task 2.4.

Task 2.4: Generate design recommendations.
  1. Generate design recommendations and best practices to optimally configure each component in the architecture based on the workload's requirements.

    Important: The design recommendations and best practices that you generate MUST be consistent with the guidance in the resources that are listed in the following files:

    • references/related-documentation.md

    • references/design-recommendations.md

  2. Present the generated recommendations to the user and ask whether the user needs any changes.

  3. If the user needs changes, then make the required changes.

  4. Repeat steps 2 and 3 until the user confirms that the generated design recommendations meet their requirements.

  5. Proceed to Task 2.5.

Task 2.5: Generate deployment guidance.
  1. Generate guidance to deploy the solution, including the following:

    • Terraform code to create the required infrastructure resources.

    • Steps or scripts to deploy workloads, such as Ray-on-GKE (KubeRay coordinator and worker nodes) and the LangChain frontend deployment.

    Important: The deployment guidance that you generate MUST be consistent with the guidance in the resources that are listed in the following resources:

  2. Present the generated deployment guidance to the user and ask whether the user needs any changes.

  3. If the user requests changes, then make the required changes.

  4. Repeat steps 2 and 3 until the user confirms that the generated deployment guidance meets their requirements.

  5. Proceed to Phase 3.

Phase 3: Solution validation

  1. Create a plan to validate the generated solution. The plan must outline the steps that are necessary to verify that the generated solution meets the workload's requirements. The following are examples of validation steps:

    • Deployment dry-run: Run commands like terraform plan to preview the infrastructure resources that will be provisioned.

    • Connectivity and routing: Verify network paths, load balancer routing, and service endpoints.

    • Vector index: Verify that vector indexes are correctly created and populated in the AlloyDB database. This can involve querying the database to check index status and content.

    • Embedding pipeline: Test the end-to-end embedding pipeline from data ingestion to vector storage, ensuring documents are chunked, embedded, and stored correctly.

    • Retrieval latency: Measure the latency of vector and hybrid search queries against the AlloyDB vector store to ensure performance meets requirements.

    • Retrieval accuracy: Perform sample queries and evaluate the relevance of retrieved documents or chunks.

    • Security policies: Verify restricted access, firewall rules, and IAM enforcement.

  2. Present the validation plan to the user and request feedback or approval.

  3. If the user requests changes, update the plan as required.

  4. Repeat steps 2 and 3 until the user approves the validation plan.

  5. Generate scripts or commands using tools like curl or gcloud to perform the steps in the approved validation plan.

  6. Request permission from the user to perform the validation checks.

  7. If the user gives permission, run the validation checks and troubleshoot any deployment issues.

  8. When all the validation checks pass, proceed to Phase 4.

Phase 4: Solution packaging and presentation

  1. Consolidate the final text artifacts that were generated in Phase 2 into a single Markdown file named solution-architecture-guide.md, based on the template in assets/output-template.md.

  2. Request the user's permission to write the code files in the user's workspace.

  3. After the user gives permission, write the final code files in the user's workspace.

Supporting references

  • references/product-selection-recommendations.md

  • references/design-recommendations.md

  • references/related-documentation.md

Files

LICENSE


                                 Apache License
                           Version 2.0, January 2004
                        http://www.apache.org/licenses/

   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

   1. Definitions.

      "License" shall mean the terms and conditions for use, reproduction,
      and distribution as defined by Sections 1 through 9 of this document.

      "Licensor" shall mean the copyright owner or entity authorized by
      the copyright owner that is granting the License.

      "Legal Entity" shall mean the union of the acting entity and all
      other entities that control, are controlled by, or are under common
      control with that entity. For the purposes of this definition,
      "control" means (i) the power, direct or indirect, to cause the
      direction or management of such entity, whether by contract or
      otherwise, or (ii) ownership of fifty percent (50%) or more of the
      outstanding shares, or (iii) beneficial ownership of such entity.

      "You" (or "Your") shall mean an individual or Legal Entity
      exercising permissions granted by this License.

      "Source" form shall mean the preferred form for making modifications,
      including but not limited to software source code, documentation
      source, and configuration files.

      "Object" form shall mean any form resulting from mechanical
      transformation or translation of a Source form, including but
      not limited to compiled object code, generated documentation,
      and conversions to other media types.

      "Work" shall mean the work of authorship, whether in Source or
      Object form, made available under the License, as indicated by a
      copyright notice that is included in or attached to the work
      (an example is provided in the Appendix below).

      "Derivative Works" shall mean any work, whether in Source or Object
      form, that is based on (or derived from) the Work and for which the
      editorial revisions, annotations, elaborations, or other modifications
      represent, as a whole, an original work of authorship. For the purposes
      of this License, Derivative Works shall not include works that remain
      separable from, or merely link (or bind by name) to the interfaces of,
      the Work and Derivative Works thereof.

      "Contribution" shall mean any work of authorship, including
      the original version of the Work and any modifications or additions
      to that Work or Derivative Works thereof, that is intentionally
      submitted to Licensor for inclusion in the Work by the copyright owner
      or by an individual or Legal Entity authorized to submit on behalf of
      the copyright owner. For the purposes of this definition, "submitted"
      means any form of electronic, verbal, or written communication sent
      to the Licensor or its representatives, including but not limited to
      communication on electronic mailing lists, source code control systems,
      and issue tracking systems that are managed by, or on behalf of, the
      Licensor for the purpose of discussing and improving the Work, but
      excluding communication that is conspicuously marked or otherwise
      designated in writing by the copyright owner as "Not a Contribution."

      "Contributor" shall mean Licensor and any individual or Legal Entity
      on behalf of whom a Contribution has been received by Licensor and
      subsequently incorporated within the Work.

   2. Grant of Copyright License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      copyright license to reproduce, prepare Derivative Works of,
      publicly display, publicly perform, sublicense, and distribute the
      Work and such Derivative Works in Source or Object form.

   3. Grant of Patent License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      (except as stated in this section) patent license to make, have made,
      use, offer to sell, sell, import, and otherwise transfer the Work,
      where such license applies only to those patent claims licensable
      by such Contributor that are necessarily infringed by their
      Contribution(s) alone or by combination of their Contribution(s)
      with the Work to which such Contribution(s) was submitted. If You
      institute patent litigation against any entity (including a
      cross-claim or counterclaim in a lawsuit) alleging that the Work
      or a Contribution incorporated within the Work constitutes direct
      or contributory patent infringement, then any patent licenses
      granted to You under this License for that Work shall terminate
      as of the date such litigation is filed.

   4. Redistribution. You may reproduce and distribute copies of the
      Work or Derivative Works thereof in any medium, with or without
      modifications, and in Source or Object form, provided that You
      meet the following conditions:

      (a) You must give any other recipients of the Work or
          Derivative Works a copy of this License; and

      (b) You must cause any modified files to carry prominent notices
          stating that You changed the files; and

      (c) You must retain, in the Source form of any Derivative Works
          that You distribute, all copyright, patent, trademark, and
          attribution notices from the Source form of the Work,
          excluding those notices that do not pertain to any part of
          the Derivative Works; and

      (d) If the Work includes a "NOTICE" text file as part of its
          distribution, then any Derivative Works that You distribute must
          include a readable copy of the attribution notices contained
          within such NOTICE file, excluding those notices that do not
          pertain to any part of the Derivative Works, in at least one
          of the following places: within a NOTICE text file distributed
          as part of the Derivative Works; within the Source form or
          documentation, if provided along with the Derivative Works; or,
          within a display generated by the Derivative Works, if and
          wherever such third-party notices normally appear. The contents
          of the NOTICE file are for informational purposes only and
          do not modify the License. You may add Your own attribution
          notices within Derivative Works that You distribute, alongside
          or as an addendum to the NOTICE text from the Work, provided
          that such additional attribution notices cannot be construed
          as modifying the License.

      You may add Your own copyright statement to Your modifications and
      may provide additional or different license terms and conditions
      for use, reproduction, or distribution of Your modifications, or
      for any such Derivative Works as a whole, provided Your use,
      reproduction, and distribution of the Work otherwise complies with
      the conditions stated in this License.

   5. Submission of Contributions. Unless You explicitly state otherwise,
      any Contribution intentionally submitted for inclusion in the Work
      by You to the Licensor shall be under the terms and conditions of
      this License, without any additional terms or conditions.
      Notwithstanding the above, nothing herein shall supersede or modify
      the terms of any separate license agreement you may have executed
      with Licensor regarding such Contributions.

   6. Trademarks. This License does not grant permission to use the trade
      names, trademarks, service marks, or product names of the Licensor,
      except as required for reasonable and customary use in describing the
      origin of the Work and reproducing the content of the NOTICE file.

   7. Disclaimer of Warranty. Unless required by applicable law or
      agreed to in writing, Licensor provides the Work (and each
      Contributor provides its Contributions) on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
      implied, including, without limitation, any warranties or conditions
      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
      PARTICULAR PURPOSE. You are solely responsible for determining the
      appropriateness of using or redistributing the Work and assume any
      risks associated with Your exercise of permissions under this License.

   8. Limitation of Liability. In no event and under no legal theory,
      whether in tort (including negligence), contract, or otherwise,
      unless required by applicable law (such as deliberate and grossly
      negligent acts) or agreed to in writing, shall any Contributor be
      liable to You for damages, including any direct, indirect, special,
      incidental, or consequential damages of any character arising as a
      result of this License or out of the use or inability to use the
      Work (including but not limited to damages for loss of goodwill,
      work stoppage, computer failure or malfunction, or any and all
      other commercial damages or losses), even if such Contributor
      has been advised of the possibility of such damages.

   9. Accepting Warranty or Additional Liability. While redistributing
      the Work or Derivative Works thereof, You may choose to offer,
      and charge a fee for, acceptance of support, warranty, indemnity,
      or other liability obligations and/or rights consistent with this
      License. However, in accepting such obligations, You may act only
      on Your own behalf and on Your sole responsibility, not on behalf
      of any other Contributor, and only if You agree to indemnify,
      defend, and hold each Contributor harmless for any liability
      incurred by, or claims asserted against, such Contributor by reason
      of your accepting any such warranty or additional liability.

   END OF TERMS AND CONDITIONS

   APPENDIX: How to apply the Apache License to your work.

      To apply the Apache License to your work, attach the following
      boilerplate notice, with the fields enclosed by brackets "[]"
      replaced with your own identifying information. (Don't include
      the brackets!)  The text should be enclosed in the appropriate
      comment syntax for the file format. We also recommend that a
      file or class name and description of purpose be included on the
      same "printed page" as the copyright notice for easier
      identification within third-party archives.

   Copyright [yyyy] [name of copyright owner]

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Needs: Needs an MCP server

Security

No issues found by our static scan· No issues found

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Published by
Google
Publisher
Google (Official)
Source
google/skills · skills/cloud/google-cloud-solution-rag-enterprise-search-gke-sqldb · commit 2194d3b
Licence
Apache License 2.0 (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by Google or Google.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download google-cloud-solution-rag-enterprise-search-gke-sqldb.zip