Skip to main content
BuildOfficialCertifiedReviewed Jul 21, 2026

Google Cloud Solution Rag Enterprise Search Gke Sqldb

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.

v1.0.11 install

Install this skill

No account required. Pick your tool, or use the command that detects it for you.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install google-cloud-skills-google-cloud-solution-rag-enterprise-search-gke-sqldb
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/google-cloud-skills-google-cloud-solution-rag-enterprise-search-gke-sqldb/SKILL.md

Setup guide →

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed
0Save

Instructions

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:

  • Google Developer Knowledge MCP server:
    https://developers.google.com/knowledge/mcp.md.txt
    • Server: https://developerknowledge.googleapis.com/mcp
      • Tools:
        • developerknowledge:search_documents
        • developerknowledge:get_documents
        • developerknowledge:answer_query
  • Relevant skills from https://github.com/google/skills
  • Official Google Cloud documentation, including the following:
    • Primary architecture reference:
      https://docs.cloud.google.com/architecture/rag-capable-gen-ai-app-using-gke.md.txt
    • Architecture guidance and decision-making guides:
      • references/product-selection-recommendations.md
      • references/design-recommendations.md
      • references/related-documentation.md

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:

    • references/related-documentation.md
    • references/design-recommendations.md
    • Relevant skills in
      https://github.com/google/skills/tree/main/skills/cloud
  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
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
google-cloud-storage-bucket-architectCreates Cloud Storage on Google Cloud (also known colloquially as GCS) buckets. Analyzes the workload (sensitive data, media hosting, ingestion, web hosting, archiving, backup, logging, analytics, AI/ML, or general-purpose), validates project-level security settings, and designs a secure-by-default, cost-effective configuration (location, storage class, uniform bucket-level access, public access prevention, soft delete, lifecycle) before creating it. Use whenever a user wants to create, make, set up, provision, or spin up a bucket, or needs object storage for an app, service, pipeline, or dataset — even a "simple" or "default" bucket, or when bucket creation is one step in a larger workflow. Outputs or executes the creation via gcloud, the JSON/REST API, Terraform, or SDK client libraries (C++, Java, Python, Go). Don't use for anything other than creating new buckets — for uploads, downloads, access changes, or reconfiguring existing buckets, use google-cloud-storage-basics.1 installsmanaged-airflow-migrationsProvides guidance for migrating Apache Airflow DAGs in Managed Service for Apache Airflow (MSAA; formerly Cloud Composer). Covers migration to Airflow 2.11.1 (MSAA Gen 2 and 3) and Airflow 3 (MSAA Gen 3), including environment inspection, GCS download/upload and scanning patterns for breaking changes. Use when migrating the DAG code to newer Airflow version. Don't use when checking DAG run failures unrelated to code migration.1 installsgke-cost-analysisAnswer natural language questions and perform analysis on GKE cluster and workload costs using BigQuery billing exports, cost allocation data, and live cluster monitoring metrics. Use when querying GKE costs across projects, namespaces, or workloads, analyzing billing reports in BigQuery (`bq`), checking cluster cost budgets (`gcloud billing`), or diagnosing cost drivers like pod requests vs. actual utilization (`kubectl top`). Don't use for applying cost optimization changes, creating rightsizing manifests (VPA/MPA), or selecting ComputeClasses (use gke-cost-optimization instead).1 installsgoogle-analytics-admin-api-basicsManages Google Analytics account and property settings, enables the Analytics Admin API via the Cloud CLI, lists accounts and properties, and manages data streams, custom dimensions, conversion events, and integrations. Use when you need to programmatically configure Google Analytics accounts, provision properties, manage data retention, configure Measurement Protocol secrets, or manage Firebase and Google Ads links.1 installsfirebase-basicsProvides foundational Firebase CLI setup, CLI installation, version checks (`firebase-tools@latest --version`), CLI login (including --no-localhost), project creation, project selection (`firebase use`), and app config file downloads (`google-services.json`, `GoogleService-Info.plist`). Use ONLY for CLI login, project creation/switching, or downloading app config files. Don't use for Firebase Hosting deploy, Firestore, Auth, App Hosting, Data Connect, Crashlytics, or Remote Config.1 installsgoogle-cloud-waf-cost-optimizationEvaluates Google Cloud workloads for cost efficiency and FinOps alignment using the Google Cloud Well-Architected Framework Cost Optimization pillar. Use when the user asks to analyze Google Cloud spend, reduce cloud bills, rightsize resources (for example, Compute, GKE, Storage, Databases), evaluate discount options (for example, CUDs, SUDs, Spot VMs), or eliminate idle capacity. Do not use for standalone product pricing lookups or non-cost architecture design.1 installs

More from Google Cloud Skills

View source →
spanner-basicsAssists in provisioning instances and databases, designing performant schemas, and querying data in Cloud Spanner on Google Cloud. Use when designing primary keys, writing SQL queries or client library code, or diagnosing performance issues.4 installsgoogle-ads-api-mcp-setupGuides developers through downloading, configuring, and installing the official open-source Google Ads MCP Server. Use this skill when a user wants to connect their AI assistant (such as Gemini, Claude Code, or Cursor) to their Google Ads account to query campaigns or retrieve reporting metrics using natural language.4 installsgke-workload-securityAudits, configures, and hardens workload-level security controls for Google Kubernetes Engine (GKE) applications and namespaces. Covers running security audits (`audit_cluster.sh`), enforcing Network Policies (default-deny and Dataplane V2 logging), isolating high-risk pods inside GKE Sandbox (`gVisor`), enforcing Pod Security Standards (`restricted` labeling) and pod securityContext, and mounting Secret Manager secrets via CSI (`SecretProviderClass`). Use when auditing workload security posture, isolating namespaces, applying pod security standards, or configuring network policies and secret volume mounts. Don't use for Workload Identity (use gke-workload-identity), cluster-wide control plane security, RBAC hardening, Binary Authorization, Shielded Nodes, or enabling platform-level GKE add-ons (use gke-platform-security instead).3 installsgke-upgradesPlans, executes, and validates Google Kubernetes Engine (GKE) cluster upgrades and maintenance operations for both Standard and Autopilot clusters. Produces upgrade plans, pre/post-upgrade checklists, maintenance runbooks with gcloud commands, release channel strategy, and troubleshooting guides. Handles node pool upgrade strategies (surge, blue-green), version compatibility, PDB management, and workload-specific concerns (stateful, GPU, operators). Use this skill whenever the user mentions GKE upgrades, Kubernetes version bumps, node pool maintenance, GKE patching, cluster version management, release channel selection, maintenance windows, surge upgrades, stuck upgrades, or any GKE lifecycle management task — even casual mentions like "we need to upgrade our clusters" or "plan our next GKE maintenance" or "our upgrade is stuck." Don't use for GKE cluster creation, application onboarding, general networking/routing setup, or security policy configurations (use gke-basics or relevant GK2 installsgoogle-cloud-recipe-networking-observabilityInvestigates Google Cloud networking issues by analyzing logs, metrics, and diagnostics. Use when investigating VPC Flow Logs, NAT, firewall, or threat logs, querying latency and throughput metrics, or running Connectivity Tests for path diagnostics.2 installsgke-manifest-generationGenerates and updates secure, production-ready Kubernetes YAML manifests optimized for GKE Autopilot and GKE Standard clusters. Use when creating or modifying GKE deployment manifests, configuring container security contexts, setting CPU/memory resource limits, defining readiness/liveness/startup probes, mounting secrets and volumes, configuring GKE Gateway API routes, targeting Spot VMs, or deploying AI model inference workloads (vLLM, TGI, Gemma). Don't use for live cluster operations, pod troubleshooting (use gke-workload-troubleshooting), or cluster infrastructure provisioning (use gke-cluster-creation).2 installs

More Build skills

Browse category →
senior-frontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size. Use whenever the user wants a new component or app, a page feels slow, the bundle is too big, or asks for a frontend code review.648 installsui-design-systemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens with design_token_generator.py.550 installsfrontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.359 installssenior-backendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests. Use whenever the user's API is slow or broken, needs login or auth added, a schema change, or a new endpoint or service scaffolded.260 installsself-improving-agentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a lesson that persists across sessions, prunes stale or duplicate entries, and turns a recurring fix into a reusable skill. Use whenever the user asks what you have learned or saved about the project, which memories should become permanent rules, to remember a lesson or stop repeating a mistake, or to clean up, audit or check memory health.183 installsusing-superpowersUse when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions147 installs

Frequently asked questions about google-cloud-solution-rag-enterprise-search-gke-sqldb

What does the google-cloud-solution-rag-enterprise-search-gke-sqldb skill do?

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. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the google-cloud-solution-rag-enterprise-search-gke-sqldb skill?

Run `npx @skills-hub-ai/cli install google-cloud-skills-google-cloud-solution-rag-enterprise-search-gke-sqldb` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/google-cloud-skills-google-cloud-solution-rag-enterprise-search-gke-sqldb/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does google-cloud-solution-rag-enterprise-search-gke-sqldb work with?

google-cloud-solution-rag-enterprise-search-gke-sqldb runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the google-cloud-solution-rag-enterprise-search-gke-sqldb skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use google-cloud-solution-rag-enterprise-search-gke-sqldb after installing it?

In Claude Code, type `/google-cloud-skills-google-cloud-solution-rag-enterprise-search-gke-sqldb` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the google-cloud-solution-rag-enterprise-search-gke-sqldb skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.