// Generated by orrery. Edit the diagram spec and re-render instead of editing this file.
import { type SVGProps, useId } from "react";

export default function RetrievalAugmentedGenerationOnGoogleCloud(props: SVGProps<SVGSVGElement>) {
  const uid = useId().replace(/[^A-Za-z0-9_-]/g, "");
  return (
    <svg xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" width="984" height="1316" viewBox="0 0 984 1316" role="img" aria-labelledby={`${uid}-sdw-title ${uid}-sdw-desc`} fontFamily="Inter, 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif" {...props}>
      <title id={`${uid}-sdw-title`}>
        Retrieval-augmented generation on Google Cloud
      </title>
      <desc id={`${uid}-sdw-desc`}>
        Retrieval-augmented generation on Google Cloud. 9 components in 3 groups. Connections: Users to Cloud Run (HTTPS); Cloud Run to Cloud Run (question); Cloud Run to Embeddings API (embed question); Cloud Run to AlloyDB for PostgreSQL (vector search); Cloud Run to Gemini (prompt and context); Cloud Storage to Pub/Sub (object finalized); Pub/Sub to Cloud Run job (trigger); Cloud Run job to Embeddings API (chunks); Cloud Run job to AlloyDB for PostgreSQL (write embeddings).
      </desc>
      <defs>
        <symbol id={`${uid}-s1`} viewBox="0 0 24 24" overflow="visible">
          <path fill="none" stroke="#000000" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M5 7a4 4 0 1 0 8 0a4 4 0 1 0-8 0M3 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2m1-17.87a4 4 0 0 1 0 7.75M21 21v-2a4 4 0 0 0-3-3.85" />
        </symbol>
        <symbol id={`${uid}-s2`} viewBox="0 0 512 512" overflow="visible">
          <rect width="512" height="512" fill="none" />
          <path fill="#fbbc04" d="M144.4 272c-6.4 0-12.4-3.8-14.9-10.1l-74.1-186c-3.3-8.2.7-17.5 8.9-20.8s17.5.7 20.8 8.9l74.2 186c3.3 8.2-.7 17.5-8.9 20.8-1.9.8-3.9 1.1-5.9 1.1h-.1Z" />
          <path fill="#ea4335" d="M256 272c-6.4 0-12.4-3.8-14.9-10.1L167 75.9c-2.6-6.6-.6-14.1 5-18.5s13.4-4.5 19.2-.4l260.1 186c7.2 5.1 8.9 15.1 3.7 22.3s-15.1 8.9-22.3 3.7L216.9 114.7l54 135.3c3.3 8.2-.7 17.5-8.9 20.8-1.9.8-4 1.1-5.9 1.1h-.1Z" />
          <path fill="#34a853" d="m127.2 256-72 180c-3.3 8.2.7 17.5 8.9 20.8 3.1 1.2 4 1.1 5.9 1.1 6.3 0 12.4-3.8 14.9-10.1l74.4-186c.8-2 1.1-4 1.1-5.9h-33.2Z" />
          <path fill="#4285f4" d="M414.5 256 216.8 397.2l54.1-135.3c.8-2 1.1-4 1.1-5.9h-33.2l-72 180c-2.6 6.6-.6 14.1 5 18.5 2.9 2.3 6.4 3.4 9.9 3.4s6.5-1 9.3-3l260.4-186c4.4-3.1 6.7-8 6.7-13h-43.6Z" />
        </symbol>
        <symbol id={`${uid}-s3`} viewBox="0 0 512 512" overflow="visible">
          <rect width="512" height="512" fill="none" />
          <path fill="#ea4335" d="M128 244.99c-8.84 0-16-7.16-16-16v-95.97c0-8.84 7.16-16 16-16s16 7.16 16 16v95.97c0 8.84-7.16 16-16 16" />
          <path fill="#fbbc04" d="M256 458c-2.98 0-5.97-.83-8.59-2.5l-186-122c-7.46-4.74-9.65-14.63-4.91-22.09 4.75-7.46 14.64-9.65 22.09-4.91L256 423.03 433.41 306.5c7.45-4.74 17.34-2.55 22.09 4.91 4.74 7.46 2.55 17.34-4.91 22.09l-186 122c-2.62 1.67-5.61 2.5-8.59 2.5" />
          <path fill="#34a853" d="M256 388.03c-8.84 0-16-7.16-16-16v-73.06c0-8.84 7.16-16 16-16s16 7.16 16 16v73.06c0 8.84-7.16 16-16 16" />
          <circle cx="128" cy="70" r="16" fill="#ea4335" />
          <circle cx="128" cy="292" r="16" fill="#ea4335" />
          <path fill="#4285f4" d="M384.23 308.01c-8.82 0-15.98-7.14-16-15.97l-.23-94.01c-.02-8.84 7.13-16.02 15.97-16.03h.04c8.82 0 15.98 7.14 16 15.97l.23 94.01c.02 8.84-7.13 16.02-15.97 16.03z" />
          <circle cx="384" cy="70" r="16" fill="#4285f4" />
          <circle cx="384" cy="134" r="16" fill="#4285f4" />
          <path fill="#fbbc04" d="M320 220.36c-8.84 0-16-7.16-16-16V101.34c0-8.84 7.16-16 16-16s16 7.16 16 16v103.02c0 8.84-7.16 16-16 16" />
          <circle cx="256" cy="171" r="16" fill="#34a853" />
          <circle cx="256" cy="235" r="16" fill="#34a853" />
          <circle cx="320" cy="265" r="16" fill="#fbbc04" />
          <circle cx="320" cy="329" r="16" fill="#fbbc04" />
          <path fill="#fbbc04" d="M192 217.36c-8.84 0-16-7.16-16-16V101.34c0-8.84 7.16-16 16-16s16 7.16 16 16v100.02c0 8.84-7.16 16-16 16" />
          <circle cx="192" cy="265" r="16" fill="#fbbc04" />
          <circle cx="192" cy="329" r="16" fill="#fbbc04" />
        </symbol>
        <symbol id={`${uid}-s4`} viewBox="0 0 512 512" overflow="visible">
          <rect width="512" height="512" fill="none" />
          <path fill="#34a853" d="M442 277.9H70c-8.8 0-16 7.2-16 16V442c0 8.8 7.2 16 16 16h107.2c1.5.5 3.1.7 4.8.7s3.3-.3 4.8-.7H442c8.8 0 16-7.2 16-16V293.9c0-8.8-7.2-16-16-16m-356 32h80V426H86zm340 116H198V309.8h228z" />
          <path fill="#fbbc04" d="M442 54H70c-8.8 0-16 7.2-16 16v148.8c0 8.8 7.2 16 16 16h372c8.8 0 16-7.2 16-16V70c0-8.8-7.2-16-16-16M86 86h80v116.8H86zm340 116.8H198V86h228z" />
          <path fill="#ea4335" d="M442 234.8h-16V86H54V70c0-8.8 7.2-16 16-16h372c8.8 0 16 7.2 16 16v148.8c0 8.8-7.2 16-16 16" />
          <path fill="#4285f4" d="M442 457.9h-16V309.8H54v-16c0-8.8 7.2-16 16-16h372c8.8 0 16 7.2 16 16v148.1c0 8.8-7.2 16-16 16" />
          <circle cx="349" cy="144.4" r="37" fill="#ea4335" />
          <circle cx="349" cy="367.9" r="37" fill="#4285f4" />
        </symbol>
        <symbol id={`${uid}-s5`} viewBox="0 0 512 512" overflow="visible">
          <rect width="512" height="512" fill="none" />
          <path fill="#9aa0a6" d="M155.24 255.523c-11.135 0-21.995 1.79-32.254 5.226l-38.85-74.169c-4.096-7.817-13.754-10.834-21.568-6.741-7.817 4.095-10.835 13.752-6.741 21.568l38.865 74.199a103 103 0 0 0-11.037 9.569c-19.122 19.12-29.652 44.544-29.652 71.585s10.531 52.464 29.652 71.585c19.12 19.121 44.543 29.652 71.585 29.652s52.465-10.531 71.585-29.652c39.466-39.473 39.469-103.7 0-143.17-19.12-19.121-44.544-29.652-71.585-29.652m48.989 150.226c-13.086 13.086-30.484 20.292-48.989 20.292s-35.903-7.206-48.989-20.292-20.292-30.484-20.292-48.989 7.206-35.903 20.292-48.989c5-5 10.633-9.133 16.713-12.342l.119-.058.025-.015c9.796-5.141 20.752-7.877 32.132-7.877 18.506 0 35.903 7.207 48.989 20.292s20.292 30.483 20.292 48.989-7.207 35.903-20.292 48.989m251.943-95.156-38.865-74.198a103 103 0 0 0 11.038-9.57c19.122-19.12 29.652-44.544 29.652-71.585s-10.53-52.464-29.652-71.585c-19.12-19.12-44.545-29.652-71.585-29.652s-52.464 10.531-71.585 29.652c-39.472 39.472-39.472 103.698 0 143.17 19.12 19.121 44.544 29.652 71.585 29.652 11.136 0 21.995-1.79 32.255-5.226l38.85 74.169c2.854 5.45 8.413 8.567 14.167 8.567 2.499 0 5.034-.587 7.4-1.828 7.818-4.094 10.835-13.751 6.74-21.567ZM307.771 204.229c-13.084-13.086-20.292-30.483-20.292-48.989s7.207-35.903 20.292-48.989 30.484-20.292 48.989-20.292 35.903 7.206 48.989 20.292 20.292 30.484 20.292 48.989-7.206 35.903-20.292 48.989a69.5 69.5 0 0 1-16.825 12.399l-.006.003-.003.002c-9.802 5.149-20.766 7.888-32.154 7.888-18.506 0-35.903-7.207-48.989-20.292z" />
          <path fill="#4285f4" d="M356.76 54.003c-27.041 0-52.465 10.531-71.585 29.652-19.121 19.12-29.652 44.544-29.652 71.585 0 21.638 6.749 42.235 19.24 59.401l-83.135 83.135c5.337 3.522 6.499 4.277 12.601 9.995 27.879 26.118 27.012 70.965 0 97.978-13.086 13.086-30.484 20.292-48.989 20.292s-35.903-7.206-48.989-20.292l-22.596 22.596c19.12 19.121 44.544 29.652 71.585 29.652s52.465-10.531 71.585-29.652c19.121-19.12 29.652-44.544 29.652-71.585 0-21.638-6.749-42.235-19.24-59.401l83.134-83.134c-3.873-2.619-6.619-4.107-12.6-9.996-27.222-26.801-27.012-70.965 0-97.978 13.086-13.086 30.484-20.292 48.989-20.292s35.903 7.206 48.989 20.292l22.596-22.596c-19.12-19.121-44.544-29.652-71.585-29.652" />
        </symbol>
        <symbol id={`${uid}-s6`} viewBox="0 0 512 512" overflow="visible">
          <rect width="512" height="512" fill="none" />
          <path fill="#fbbc04" d="M256 272c-2.5 0-5-.6-7.3-1.8L62.4 174.1c-5.4-2.8-8.7-8.4-8.7-14.4s3.6-11.6 9-14.2L249 55.3c4.4-2.1 9.5-2.1 13.9 0l186.2 90.1c5.5 2.6 9 8.1 9 14.2s-3.3 11.6-8.7 14.4l-186.2 96.2c-2.3 1.2-4.8 1.8-7.3 1.8ZM105.5 160.3 256 238l150.5-77.7L256 87.5z" />
          <path fill="#4285f4" d="M458.2 256.6V160c0-8.8-7.1-16-16-16s-16 7.1-16 16v86.9l-170 87.8-170-87.8-8.7-4.5c-7.8-4.1-17.5-1-21.5 6.9-1.2 2.3-1.8 4.9-1.8 7.3 0 5.8 3.2 11.4 8.7 14.2l23.3 12 162.7 84c.5.3 1.1.5 1.6.7 1.9.7 3.8 1.1 5.7 1.1 2.5 0 5-.6 7.3-1.8l27.5-14.2 135.2-69.8V442c0 8.8 7.1 16 16 16s16-7.1 16-16z" />
          <path fill="#34a853" d="m256.2 334.7-170-87.8-.4-86.9c0-8.8-7.2-16-16-16s-16 7.1-16 16v282.1c0 8.8 7.2 16 16 16s16-7.1 16-16l.4-159.2 162.7 84c.5.3 1.1.5 1.6.7 1.9.7 3.8 1.1 5.7 1.1 2.5 0 5-.6 7.3-1.8l27.5-14.2z" />
          <polygon fill="#4384f4" points="256 194.5 192 161.8 256 131.5 320 161.8 256 194.5" />
          <path fill="#ea4335" d="M256 272c-5.8 0-11.4-3.2-14.2-8.7-4.1-7.9-1-17.5 6.9-21.6l157.8-81.5-187.2-90.6c4.7-2.3 20.7-10 29.1-14.1 5.2-2.6 9.7-2.6 14.6-.3l186.2 90.1c5.5 2.6 9 8.1 9 14.2s-3.3 11.6-8.7 14.4l-186.2 96.2c-2.4 1.2-4.9 1.8-7.3 1.8Z" />
          <path fill="none" d="M105.5 160.3 256 238l150.5-77.7L256 87.5z" />
          <path fill="#fbbc04" d="M263.3 270.2c-2.3 1.2-4.8 1.8-7.3 1.8s-5-.6-7.3-1.8L62.4 174.1c-5.4-2.8-8.7-8.4-8.7-14.4s3.6-11.6 9-14.2l13.2-6.4 29.5 21.3 185.3 95.7" />
        </symbol>
      </defs>
      <rect width="984" height="1316" fill="#ffffff" />
      <text fontSize="20" fontWeight="600" fill="#000000">
        <tspan x="28" y="43.78">
          Retrieval-augmented generation on Google Cloud
        </tspan>
      </text>
      <text fontSize="13" fill="#5f6b7a">
        <tspan x="28" y="66.18">
          Cloud Run embeds documents into AlloyDB with Agent Platform (formerly Vertex AI) and retrieves them to ground Gemini answers
        </tspan>
      </text>
      <g id={`${uid}-g-gcloud`}>
        <rect x="28" y="318" width="921" height="905" rx="6" fill="#1a73e8" stroke="#1f2124" strokeWidth="2" />
        <rect x="36" y="356" width="905" height="859" rx="4" fill="#ffffff" />
      </g>
      <g id={`${uid}-g-project`}>
        <rect x="48" y="370" width="881" height="833" rx="6" fill="#f1f3f4" stroke="#1f2124" strokeWidth="2" />
      </g>
      <g id={`${uid}-g-region`}>
        <rect x="68" y="422" width="841" height="761" rx="6" fill="#ffffff" stroke="#202124" strokeWidth="2" />
      </g>
      <g id={`${uid}-e-e1`}>
        <path d="M310 154 L310 473.25" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M305.5 465 L310 474 L314.5 465" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-e-e2`}>
        <path d="M310 532 L310 680.25" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M305.5 672 L310 681 L314.5 672" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-e-e3`}>
        <path d="M394 710 L524.5 710 Q532.5 710 532.5 718 L532.5 892.25" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M528 884 L532.5 893 L537 884" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-e-e4`}>
        <path d="M310 739 L310 1104.25" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M305.5 1096 L310 1105 L314.5 1096" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-e-e5`}>
        <path d="M239 739 L239 892.25" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M234.5 884 L239 893 L243.5 884" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-e-e6`}>
        <path d="M796 532 L796 680.25" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" strokeDasharray="6 4" />
        <path d="M791.5 672 L796 681 L800.5 672" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-e-e7`}>
        <path d="M796 739 L796 892.25" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" strokeDasharray="6 4" />
        <path d="M791.5 884 L796 893 L800.5 884" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-e-e8`}>
        <path d="M707 922 L623.75 922" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M632 917.5 L623 922 L632 926.5" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-e-e9`}>
        <path d="M796 951 L796 1126 Q796 1134 788 1134 L473.75 1134" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M482 1129.5 L473 1134 L482 1138.5" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-el-e1`}>
        <rect x="315" y="218" width="51" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="340.5" y="232.68">
            HTTPS
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e2`}>
        <rect x="315" y="596" width="59" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="344.5" y="610.68">
            question
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e3`}>
        <rect x="538.5" y="791" width="100" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="588.5" y="805.68">
            embed question
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e4`}>
        <rect x="315" y="911.5" width="87" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="358.5" y="926.18">
            vector search
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e5`}>
        <rect x="114" y="805.5" width="119" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="173.5" y="820.18">
            prompt and context
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e6`}>
        <rect x="801" y="596" width="95" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="848.5" y="610.68">
            object finalized
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e7`}>
        <rect x="801" y="803" width="49" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="825.5" y="817.68">
            trigger
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e8`}>
        <rect x="639" y="898" width="52" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="665" y="912.68">
            chunks
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e9`}>
        <rect x="579.5" y="1110" width="110" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="634.5" y="1124.68">
            write embeddings
          </tspan>
        </text>
      </g>
      <g id={`${uid}-gh-gcloud`}>
        <rect x="36" y="327" width="93.03" height="18.9" rx="3" fill="#1a73e8" />
        <text fontSize="13" fontWeight="600" fill="#ffffff">
          <tspan x="40" y="341.18">
            Google Cloud
          </tspan>
        </text>
      </g>
      <g id={`${uid}-gh-project`}>
        <rect x="56" y="379" width="112.1" height="18.9" rx="3" fill="#f1f3f4" />
        <text fontSize="13" fontWeight="600" fill="#202124">
          <tspan x="60" y="393.18">
            Project rag-prod
          </tspan>
        </text>
      </g>
      <g id={`${uid}-gh-region`}>
        <rect x="76" y="431" width="78.48" height="18.9" rx="3" fill="#ffffff" />
        <text fontSize="13" fontWeight="600" fill="#202124">
          <tspan x="80" y="445.18">
            us-central1
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-users`}>
        <rect x="205" y="96" width="209" height="58" rx="8" fill="#ffffff" stroke="#c6ccd4" strokeWidth="1" />
        <use href={`#${uid}-s1`} x="221" y="109" width="32" height="32" />
        <text fontSize="13" fontWeight="600" fill="#000000">
          <tspan x="265" y="121.23">
            Users
          </tspan>
        </text>
        <text fontSize="11.5" fill="#5f6b7a">
          <tspan x="265" y="138.63">
            Chat app in the browser
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-frontend`}>
        <rect x="226" y="474" width="168" height="58" rx="8" fill="#ffffff" stroke="#c6ccd4" strokeWidth="1" />
        <use href={`#${uid}-s2`} x="242" y="487" width="32" height="32" />
        <text fontSize="13" fontWeight="600" fill="#000000">
          <tspan x="286" y="499.23">
            Cloud Run
          </tspan>
        </text>
        <text fontSize="11.5" fill="#5f6b7a">
          <tspan x="286" y="516.63">
            frontend service
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-backend`}>
        <rect x="226" y="681" width="168" height="58" rx="8" fill="#ffffff" stroke="#c6ccd4" strokeWidth="1" />
        <use href={`#${uid}-s2`} x="242" y="694" width="32" height="32" />
        <text fontSize="13" fontWeight="600" fill="#000000">
          <tspan x="286" y="706.23">
            Cloud Run
          </tspan>
        </text>
        <text fontSize="11.5" fill="#5f6b7a">
          <tspan x="286" y="723.63">
            backend service
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-embed`}>
        <rect x="442" y="893" width="181" height="58" rx="8" fill="#ffffff" stroke="#c6ccd4" strokeWidth="1" />
        <use href={`#${uid}-s3`} x="458" y="906" width="32" height="32" />
        <text fontSize="13" fontWeight="600" fill="#000000">
          <tspan x="502" y="918.23">
            Embeddings API
          </tspan>
        </text>
        <text fontSize="11.5" fill="#5f6b7a">
          <tspan x="502" y="935.63">
            Agent Platform
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-bucket`}>
        <rect x="705" y="474" width="181" height="58" rx="8" fill="#ffffff" stroke="#c6ccd4" strokeWidth="1" />
        <use href={`#${uid}-s4`} x="721" y="487" width="32" height="32" />
        <text fontSize="13" fontWeight="600" fill="#000000">
          <tspan x="765" y="499.23">
            Cloud Storage
          </tspan>
        </text>
        <text fontSize="11.5" fill="#5f6b7a">
          <tspan x="765" y="516.63">
            Source documents
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-topic`}>
        <rect x="702" y="681" width="187" height="58" rx="8" fill="#ffffff" stroke="#c6ccd4" strokeWidth="1" />
        <use href={`#${uid}-s5`} x="718" y="694" width="32" height="32" />
        <text fontSize="13" fontWeight="600" fill="#000000">
          <tspan x="762" y="706.23">
            Pub/Sub
          </tspan>
        </text>
        <text fontSize="11.5" fill="#5f6b7a">
          <tspan x="762" y="723.63">
            Upload notifications
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-job`}>
        <rect x="707" y="893" width="178" height="58" rx="8" fill="#ffffff" stroke="#c6ccd4" strokeWidth="1" />
        <use href={`#${uid}-s2`} x="723" y="906" width="32" height="32" />
        <text fontSize="13" fontWeight="600" fill="#000000">
          <tspan x="767" y="918.23">
            Cloud Run job
          </tspan>
        </text>
        <text fontSize="11.5" fill="#5f6b7a">
          <tspan x="767" y="935.63">
            Chunk and embed
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-gemini`}>
        <rect x="88" y="893" width="160" height="58" rx="8" fill="#ffffff" stroke="#c6ccd4" strokeWidth="1" />
        <use href={`#${uid}-s3`} x="104" y="906" width="32" height="32" />
        <text fontSize="13" fontWeight="600" fill="#000000">
          <tspan x="148" y="918.23">
            Gemini
          </tspan>
        </text>
        <text fontSize="11.5" fill="#5f6b7a">
          <tspan x="148" y="935.63">
            Agent Platform
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-alloydb`}>
        <rect x="228" y="1105" width="245" height="58" rx="8" fill="#ffffff" stroke="#c6ccd4" strokeWidth="1" />
        <use href={`#${uid}-s6`} x="244" y="1118" width="32" height="32" />
        <text fontSize="13" fontWeight="600" fill="#000000">
          <tspan x="288" y="1130.23">
            AlloyDB for PostgreSQL
          </tspan>
        </text>
        <text fontSize="11.5" fill="#5f6b7a">
          <tspan x="288" y="1147.63">
            Vector store with ScaNN index
          </tspan>
        </text>
      </g>
      <g id={`${uid}-legend`}>
        <rect x="798" y="1235" width="158" height="53" rx="6" fill="#ffffff" stroke="#c6ccd4" strokeWidth="1" />
        <path d="M808 1252.5 H836" fill="none" stroke="#545b64" strokeWidth="1.5" />
        <text fontSize="11.5" fill="#000000">
          <tspan x="844" y="1256.68">
            Requests and data
          </tspan>
        </text>
        <path d="M808 1270.5 H836" fill="none" stroke="#545b64" strokeWidth="1.5" strokeDasharray="6 4" />
        <text fontSize="11.5" fill="#000000">
          <tspan x="844" y="1274.68">
            Ingestion events
          </tspan>
        </text>
      </g>
    </svg>
  );
}
