You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
deploy: feat(embeddingModel): Add Backend API selection fields (googleapis#2592)
Allow users to use both VertexAI and Google AI as gemini embedding model
backend.
- Use ADC for VertexAI authentication (either configure `project` and
`location` inside the yaml file or as env vars).
- Use API key for Google AI authentication. 912aa9e
<p>When a tool parameter is configured with <code>embeddedBy: &lt;your-gemini-model-name&gt;</code>,
4153
-
the Toolbox intercepts the raw text input from the client and sends it to the
4154
-
Gemini API. The resulting numerical array is then formatted before being passed
4155
-
to your database source.</p></description></item><item><title>Google Sign-In</title><link>https://Jaleel-zhu.github.io/genai-toolbox/dev/documentation/configuration/authentication/google/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://Jaleel-zhu.github.io/genai-toolbox/dev/documentation/configuration/authentication/google/</guid><description><h2 id="getting-started">Getting Started</h2>
4143
+
<p>Toolbox supports two authentication modes:</p>
4144
+
<ol>
4145
+
<li><strong>Google AI (API Key):</strong> Used if you
4146
+
provide <code>apiKey</code> (or set <code>GOOGLE_API_KEY</code>/<code>GEMINI_API_KEY</code> environment
4147
+
variables). This uses the <a href="https://aistudio.google.com/app/apikey">Google AI Studio</a> backend.</li>
4148
+
<li><strong>Vertex AI (ADC):</strong> Used if provided <code>project</code> and <code>location</code> (or set
4149
+
<code>GOOGLE_CLOUD_PROJECT</code>/<code>GOOGLE_CLOUD_LOCATION</code> environment variables). This uses <a href="https://cloud.google.com/docs/authentication#adc">Application
4150
+
Default Credentials (ADC)</a>.</li>
4151
+
</ol>
4152
+
<p>We recommend using an API key for quick testing and using Vertex AI with ADC for
4153
+
production environments.</p></description></item><item><title>Google Sign-In</title><link>https://Jaleel-zhu.github.io/genai-toolbox/dev/documentation/configuration/authentication/google/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://Jaleel-zhu.github.io/genai-toolbox/dev/documentation/configuration/authentication/google/</guid><description><h2 id="getting-started">Getting Started</h2>
4156
4154
<p>Google Sign-In manages the OAuth 2.0 flow and token lifecycle. To integrate the
4157
4155
Google Sign-In workflow to your web app <a href="https://developers.google.com/identity/sign-in/web/sign-in">follow this guide</a>.</p>
4158
4156
<p>After setting up the Google Sign-In workflow, you should have registered your
0 commit comments