NeMo Guardrails with Google Gemini and Vertex AI

Gemini and Vertex AI models run in NeMo Guardrails through the opt-in LangChain framework, the google_genai or vertexai engine, and a mounted credential file. This page covers the packages, container credentials, and the separate Google Cloud text moderation rail.

On this page

How NeMo Guardrails connects to Gemini and Vertex AI

The google_genai and vertexai engines both run through the opt-in LangChain framework, so a team wanting guardrails in front of Gemini or Vertex AI models must enable it with NEMOGUARDRAILS_LLM_FRAMEWORK=langchain and install the matching LangChain package: langchain-google-genai for the google_genai engine or langchain-google-vertexai for the vertexai engine. Without that opt-in, the engines are not available. The two packages are open-source Python dependencies that the client's container image installs, so they belong to the build, not to Google Cloud. Gemini itself is reached through the Google API that the LangChain package calls, and the model access the client holds determines what the application can reach.

Vertex AI adds a Google Cloud resource the client owns: a service account and its JSON key file. NeMo Guardrails does not create or manage that identity. The Docker guide for NeMo Guardrails mounts a file-based credential such as a service account JSON into the container and sets GOOGLE_APPLICATION_CREDENTIALS to the path inside the container. Decide early whether the key file is acceptable for your environment or whether the workload should use an identity bound to its runtime, and confirm the role grants with your Google Cloud administrators. Keep the key out of the image itself, and treat the mounted path and environment variable as part of the deployment configuration your security team reviews.

The gcpnlp moderation input rail is separate from the model engine. It calls the Google Cloud Text Moderation API, authenticates with application default credentials, and treats a maximum risk score above 0.80 as a violation, per the NeMo Guardrails documentation for that rail. Enabling it means a second Google Cloud dependency with its own project, API enablement, billing and data handling terms, which the client must confirm with Google. Using Gemini or Vertex AI as the main model does not switch on this rail, and a configuration can use the model engine without it. Map each Google Cloud resource to an owner before implementation so the library settings and the cloud accounts can be reviewed separately.

What you need before connecting Gemini or Vertex AI

Connecting Gemini or Vertex AI to NeMo Guardrails depends on a runtime, a LangChain package and Google Cloud access that the client provisions. Each card below is a prerequisite to confirm before the configuration work starts.

Python runtime version

NeMo Guardrails 0.25.0 requires Python 3.11, 3.12 or 3.13. Confirm the interpreter in the image or virtual environment that will run the guardrails code, not only the workstation used for testing. Pin the version so a base image update does not silently move the runtime outside the supported range.

NeMo Guardrails docs

LangChain opt-in setting

The google_genai and vertexai engines run through the LangChain integration, which is opt-in. Set NEMOGUARDRAILS_LLM_FRAMEWORK=langchain in the runtime environment, or the engines will not load. Add this variable to the container definition and deployment manifests so every environment behaves the same way.

Matching LangChain Google package

Install langchain-google-genai for the google_genai engine or langchain-google-vertexai for the vertexai engine, not both by default. Record the exact package versions in the lock file and review them during upgrades, since NeMo Guardrails and LangChain release independently and changes in either can affect how calls are made.

Google Cloud project and API access

The client must supply a Google Cloud project with the relevant Gemini or Vertex AI APIs enabled, billing attached and quotas that fit the expected call volume. Ask the cloud team who owns project creation, API enablement and quota requests, and confirm the region where model calls will run, since that decision affects data residency review.

Service account permissions

Create a dedicated service account for the guardrails runtime and grant it only the model-calling role that the chosen engine needs. Avoid reusing a developer or broad project account. Confirm with the identity team how the account is reviewed, rotated and disabled when a workload is retired.

Network egress to Google endpoints

The runtime must reach Google API endpoints over HTTPS. In segmented or air-gapped networks, this egress path needs a firewall rule, proxy setting or private connectivity approved by the network team. Test it from the actual runtime subnet, because a successful test from a laptop does not prove the cluster can reach the endpoint.

Credential file handling

A Vertex AI service account JSON file is a long-lived secret. Store it in the client's secrets manager, deliver it to the container at runtime through a mount, and set GOOGLE_APPLICATION_CREDENTIALS to its path. Agree with the security team who can read the secret, how it is rotated and how access is logged, and keep the file out of images and source control.

Docker deployment guide

Configuring the google_genai or vertexai engine step by step

This sequence takes a team from choosing a Gemini engine to a running NeMo Guardrails configuration that sends a test prompt through the model. Each step leaves a check the team can repeat in its own environment before moving on.

  1. Choose the google_genai or vertexai engine

    Decide which engine matches how your organization accesses Gemini. The google_genai engine is the route for Gemini access through the Google AI Gemini API, while the vertexai engine is for models hosted in Google Cloud Vertex AI under a Google Cloud project. Make this choice with your platform and cloud teams, because it determines the credentials, billing account and network path used in every later step. Record the chosen engine and model name in your change ticket. The step is done when the team agrees on one engine and one model identifier for the first environment.

  2. Install the matching LangChain package in the runtime image

    Both engines run through the opt-in LangChain framework, so the image needs the LangChain package for the engine you chose: langchain-google-genai for google_genai or langchain-google-vertexai for vertexai. Add it to the same dependency file that installs nemoguardrails, so the container build is reproducible and the package version is pinned for review. Confirm that the Python version in the base image is one NeMo Guardrails 0.25.0 supports (3.11, 3.12 or 3.13). The check is a build that completes and an interactive import of the package inside the built container without errors.

  3. Set the LangChain opt-in environment variable

    NeMo Guardrails loads LangChain integration only when told to. Set NEMOGUARDRAILS_LLM_FRAMEWORK to langchain in the container environment or the shell that runs your application, and keep it in the deployment manifest rather than in an operator's session. Without this setting, the engine declared later will not resolve. The check is a short Python command that prints the value of the variable from inside the running environment, followed by a startup log that does not report a missing framework.

  4. Declare the model and engine in config.yml

    Create or edit the config.yml file in your guardrails configuration folder and add the model block with its type and engine set to google_genai or vertexai, along with the model name your chosen engine expects. Engine-specific keys, such as project and location settings for Vertex AI, are listed in the NeMo Guardrails supported LLMs documentation, so check that page for the exact keys rather than copying them from a blog post or older example. Keep the file under version control and review it with the same process you use for other application configuration. The check is a schema-valid file that the library loads without a configuration error.

  5. Provide credentials for the engine

    Give the runtime access to Google Cloud credentials appropriate for the engine. For Vertex AI, this usually means a service account whose file is available to the process, which is handled in the container credential step described on this page. For the google_genai engine, confirm with your Google Cloud or Gemini account owner which key or credential type your organization uses, and store it in your secrets manager instead of the configuration folder. The check is that the process can read the credential source and the first model call does not fail with an authentication error.

  6. Load the configuration and run a test call

    Load the configuration folder with the Python API or start the guardrails server against it, then send one harmless sample prompt through the configured model. Use a prompt you have written for this test and keep it in your repository so it can be rerun after upgrades. Compare the response with what the same model returns when called directly, to confirm the rails do not alter a benign message. The check is a successful response with the model's answer, logged with the engine and model name, which shows the framework is loaded and the sample prompt passes through the configured model.

  7. Confirm the framework and model in logs

    Review the startup and request logs to confirm that the LangChain framework was loaded, that the chosen engine was selected, and that no fallback engine was used. Record the NeMo Guardrails version, the LangChain package versions and the model identifier in your deployment record so auditors and upgrade reviewers can trace what was tested. Ask your platform team which log destination is used for this environment before you rely on it. The step is complete when the team can show a log entry for the test call that names the engine and model, and the record is stored with the change ticket.

Mounting a Vertex AI service account file in containers

For file-based credentials such as a Vertex AI service account JSON, the NeMo Guardrails Docker guide mounts the credential file into the container and sets GOOGLE_APPLICATION_CREDENTIALS to the path where the file appears inside the container. The key file should be supplied at runtime from a host path or a secret store, never copied into the image with COPY or ADD. An image that contains a service account key can be pulled by anyone with registry access, persists in image layers after the key is rotated, and makes the key harder to revoke or audit. Keep the image generic so the same build runs in development, staging and production with different credentials.

The mount path and the environment variable must match exactly. If the file is mounted at /secrets/vertex-sa.json, GOOGLE_APPLICATION_CREDENTIALS must be set to that same absolute path, and the file must be readable by the non-root user the container runs as. A common failure is a correct mount with a stale or relative variable value, which surfaces only when the first Vertex AI call is made, so check it with a test request after startup. The same credential path also determines which project and roles the guardrails server inherits, so confirm that the service account has only the Vertex AI permissions the chosen model needs and nothing broader.

On Kubernetes or another orchestrator, the same principle applies with platform objects in place of a bind mount. Typical choices are a Kubernetes Secret mounted as a volume, a secret injected by an external secrets operator, or a workload identity that avoids a key file altogether. Each option changes who can read the key, how rotation works and whether pods need a restart after a rotation. Confirm the mount approach against your own container platform, your secrets management policy and the current guidance for the Google Cloud client libraries your deployment uses, since credential resolution can differ between environments.

Choosing how the runtime authenticates to Google Cloud

On a developer workstation, the runtime usually picks up credentials that the developer has already established with the Google Cloud CLI or another local sign-in. The configuration stays close to the code, and the developer can test Gemini or Vertex AI calls without placing any key file in the project. This setup suits prototyping and rail tuning, but it reflects one person's access rights, so it should not be treated as the production model.

  • Who signs in: The developer's own Google Cloud identity, with access limited to the project and models they are allowed to use.
  • Package set-up: Install the LangChain package for the engine in use, such as langchain-google-genai or langchain-google-vertexai, inside a supported Python environment.
  • Key files: Avoid committing any service account JSON to the repository, and keep local credential files outside the project directory.
  • Environment variables: Set NEMOGUARDRAILS_LLM_FRAMEWORK=langchain for the opt-in integration.
  • Confirm with administrators: Whether developers may call the target project and models, and which quota and billing account those test calls consume.

Confirm with your Google Cloud administrators which developer roles may reach the project, and whether test traffic is logged separately from production.

How a Gemini request passes through the guardrails server

The request starts in the client application, which calls the NeMo Guardrails server over HTTP or through the Python API. Input rails run first, then the LangChain engine for google_genai or vertexai sends the prompt to Google endpoints. Output rails check the reply before it returns to the client. The optional gcpnlp input rail calls the Google Cloud Text Moderation API using application default credentials, which come from the mounted service account file. Check that the trust boundary matches where your credentials and data are allowed to travel.

Request path through the guardrails server, with the trust boundary to Google endpoints.

Adding the Google Cloud text moderation rail

The gcpnlp rail is a separate input rail that sends user text to the Google Cloud Text Moderation API. It is not a model engine. Choosing google_genai or vertexai decides which model answers the conversation, while gcpnlp decides whether the incoming message is screened for harmful content before the model sees it. You can use one without the other, and a Gemini or Vertex AI deployment does not get this check automatically. The rail authenticates with application default credentials, so the process running NeMo Guardrails must resolve a Google identity through the usual mechanisms, such as GOOGLE_APPLICATION_CREDENTIALS pointing at a service account file in a container.

On the Google Cloud side, the project that owns the credentials needs the Text Moderation API enabled, and the identity needs permission to call it. Confirm the exact API name, required IAM role and whether the service is available in your region and project before you commit to the design, since these details are controlled by Google and can change. Also confirm the billing arrangement for the project, because each moderation request is metered to the project that makes it, and that cost recurs with traffic. Ask your Google Cloud account team or check current pricing in your own project rather than relying on figures from this page.

The rail's threshold is the main decision. NeMo Guardrails treats a maximum risk score above 0.80 as a violation, so a message is blocked when any scored category exceeds that value. Plan how the rail sits alongside your other input rails, such as self-check input, jailbreak detection or PII masking. Order matters: a cheap local check that blocks obvious abuse can run first, so fewer requests reach the metered API. Test the threshold against your own sample traffic, including false positives on legitimate support or medical text, and record which rail produced each block so reviewers can trace decisions.

Mapping engines, packages and credentials to their roles

This table maps each engine, package, environment variable and credential path to the role it plays in a NeMo Guardrails deployment for Gemini and Vertex AI. Read each row as a separate decision: the model engine, the opt-in switch, the container credential, and the separate Google Cloud moderation rail, which uses its own credential path. Confirm each row in your own configuration before you deploy.

ElementRole in the setupWhere it is setNotes for review
google_genai engineCalls Gemini through the Google AI Gemini API as the main modelmodels block in config.ymlRequires the LangChain opt-in and the langchain-google-genai package
vertexai engineCalls Gemini through Vertex AI as the main modelmodels block in config.ymlRequires the LangChain opt-in and the langchain-google-vertexai package
LangChain opt-inEnables the LangChain framework that both Google engines run throughNEMOGUARDRAILS_LLM_FRAMEWORK=langchain environment variableSet in the runtime or container, not inside config.yml
langchain-google-genaiProvider package used by the google_genai enginePython environment or container imageInstall alongside the NeMo Guardrails version you deploy
langchain-google-vertexaiProvider package used by the vertexai enginePython environment or container imageInstall only when the Vertex AI engine is used
Vertex AI service account JSONAuthenticates Vertex AI calls from a file rather than ambient identityMounted into the container at a path you chooseKeep the file out of the image and restrict who can read it
GOOGLE_APPLICATION_CREDENTIALSPoints the Google client libraries at the mounted service account fileContainer environment variable set to the mounted file pathMust match the mount path exactly; confirm in the Docker guide for your version
gcpnlp moderation input railCalls the GCP Text Moderation API as a separate input checkrails block in config.yml with the gcpnlp rail named thereUses application default credentials, not the Gemini engine credential

Securing the credential file and the model path

The Vertex AI service account file is the most sensitive part of a Gemini deployment, and the gcpnlp rail depends on the same credentials. The controls below cover where the file lives, who can read it, what the logs keep, and how a failed credential is detected instead of letting a rail quietly stop.

Keep the key file out of images

Do not copy the service account JSON into the image during the build, and do not bake it into a layer that others can pull. Mount it at runtime from a path your container platform controls, then point GOOGLE_APPLICATION_CREDENTIALS at the mounted path. Check the image history and filesystem after each build to confirm the file is absent. Ask whether your platform offers a secrets store that can deliver the file without writing it to disk on the host.

Docker deployment guide

Exclude credentials from version control

Keep the JSON key, any .env file that names it, and copies of the mount configuration out of Git repositories and build contexts. Add the file patterns to .gitignore and .dockerignore, and run a secret scanner in CI on every push. If a key has ever been committed, treat it as exposed, rotate it in Google Cloud, and remove it from history. Keep only the mount path and variable names in configuration files that teams share.

Grant the service account least privilege

Give the service account only the Vertex AI role needed to call the models the configuration uses, and no project-wide editor or owner role. Create one account per environment so that a development key cannot call production models. Review which roles the account holds at each audit, and confirm that the same account is the one the GCP text moderation rail uses, so that its permissions are reviewed as one set.

Restrict who can read the mount

Limit read access to the key file on the host and inside the container to the user the NeMo Guardrails process runs as, with file permissions set so that other local users cannot read it. Check who holds access to the container runtime, the orchestrator and the secrets store, since any of them can expose the file. Ask your platform team to document who can exec into the running container.

Log decisions without raw personal data

Record for each call the configuration name, which rails ran, the outcome (allowed, blocked or error), and a request identifier that links to your application log. Avoid writing full prompts, model responses or the moderation scores of personal content to shared logs unless your privacy review allows it. Confirm with your compliance team how long these logs are kept and who can read them before you turn on debug output.

Detect a skipped gcpnlp rail

A credential failure in the GCP Text Moderation check must not let a request pass as if the rail had run. Test this by starting the container with the key path missing or the file unreadable, then send a request that the rail would block. The result should be an error or a block, not an allowed response. Add an alert on rail errors and on any response that reached the model without a recorded rail result.

GCP text moderation docs

Common failures when Gemini or Vertex AI calls break

This table lists the failures teams most often hit when wiring Gemini or Vertex AI into NeMo Guardrails, with the likely cause and fix for each. Work down the rows in order, since the opt-in framework variable and package installs are checked before credentials and moderation settings. The main takeaway is that most breaks trace to a missing environment variable, package or credential path rather than to the model itself.

FailureLikely causeFix
Gemini engine fails to load at startupNEMOGUARDRAILS_LLM_FRAMEWORK=langchain is not set in the process or container environment, so the google_genai or vertexai engine is never registeredSet NEMOGUARDRAILS_LLM_FRAMEWORK=langchain in the runtime environment, then restart the process or container and confirm it is present inside the running container
Import error for the Gemini engineThe langchain-google-genai package is missing for the google_genai engine, or langchain-google-vertexai is missing for the vertexai engineInstall the package that matches the engine you configured, pin it in your requirements, and rebuild the image rather than patching the running container
Wrong LangChain Google package installedThe package for one engine was installed while config.yml names the other engine, so the model name or provider does not resolveMatch the engine in config.yml to its package, remove the unused package from the build, and confirm the engine name against the supported LLMs documentation
Credential file not found in the containerA Vertex AI service account JSON exists on the host but was not mounted into the container, or the mount path differs from the path in GOOGLE_APPLICATION_CREDENTIALSMount the file into the container at a fixed path, set GOOGLE_APPLICATION_CREDENTIALS to that same container path, and check the path with a file test inside the container
Permission denied on the Vertex AI callThe service account file loads but lacks the Vertex AI role needed for the model, or the project and region in config.yml do not match the project that owns the accountConfirm the service account has the Vertex AI permissions your model needs in the correct project, and align project and location settings with that project
Application default credentials not found for gcpnlpThe gcpnlp input rail uses application default credentials, which are not available in the runtime (no credential file, no metadata server, no gcloud login)Provide credentials through GOOGLE_APPLICATION_CREDENTIALS or the platform identity your cluster uses, and test the Text Moderation call alone before enabling the rail
gcpnlp blocks more traffic than expectedThe rail treats a maximum risk score above 0.80 as a violation, and the threshold was not reviewed against your trafficReview sample blocked and allowed messages before go-live and document the threshold you accepted, since the default is a configuration choice you own
Installation or startup fails on Python versionNeMo Guardrails 0.25.0 requires Python 3.11, 3.12 or 3.13, and the host or base image runs an older or unsupported interpreterBuild on a supported Python version, confirm it with python --version in the image, and align the base image and CI runners to the same version

Questions buyers ask before connecting Gemini or Vertex AI

How much does it cost to connect Gemini or Vertex AI to NeMo Guardrails?

The NeMo Guardrails library is free under the Apache 2.0 license, so the cost is the work to configure it and the Google Cloud usage it triggers. Your costs fall into three groups: the engineering time to install the LangChain packages, mount credentials and test rails; the Gemini or Vertex AI model usage billed by Google Cloud for every guarded call, including the extra calls self-check rails make; and any Google Cloud Text Moderation API usage if you add the gcpnlp rail. Usage charges recur and grow with traffic, while setup is largely one-time. No price figure is supplied for this work, so ask Google Cloud for current Gemini and Vertex AI pricing and ask your partner for a written quote based on your scope.

How long does it take to connect Gemini through NeMo Guardrails?

The duration depends on how many rails you run, how many environments need the configuration, and whether your team already operates Google Cloud service accounts. A basic connection to one model in one environment is mostly package installation, credential mounting and a test pass. Adding moderation rails, custom actions and container deployment extends the work, along with the review and testing your security team requires. No duration is supplied for this work, so ask any provider for a schedule tied to the written scope and confirm the Python version and package requirements in your own build pipeline first.

What does my team need to provide before the work starts?

You need a Google Cloud project with access to the Gemini or Vertex AI models you plan to use, a service account with only the permissions the application needs, and a container build or runtime where the credential file can be mounted securely. You also need a Python 3.11, 3.12 or 3.13 environment, since NeMo Guardrails 0.25.0 supports those versions, and a decision on whether the GCP Text Moderation rail is in scope. Confirm with your Google Cloud administrators how service account keys are issued and stored under your policies, because some organizations restrict or disallow downloaded key files.

Can our own engineers set up Gemini or Vertex AI with NeMo Guardrails?

Yes, if your team can work with Python packages, Docker, Google Cloud IAM and YAML configuration. The core steps are documented: install the opt-in LangChain framework with the matching LangChain Google package for the google_genai or vertexai engine, configure the model in config.yml, and for file-based credentials mount the JSON file into the container and set GOOGLE_APPLICATION_CREDENTIALS. The harder parts are designing rails that fit your policy, proving they block what they should, and keeping evidence for reviewers. Your team can start in-house and bring in a partner for the security review and testing, or hand the whole build to a partner under a fixed-scope agreement.

What do Google Cloud charges depend on when we use this setup?

Google Cloud charges depend on the services your configuration calls, not on NeMo Guardrails itself. Model usage for Gemini or Vertex AI is billed by Google according to the model and volume you send. Each guarded request can trigger additional model calls, for example when self-check input or output rails run, so the number of rails and their prompts directly change usage. If you enable the gcpnlp moderation input rail, the GCP Text Moderation API is a separate service with its own billing. Confirm current rates and free-tier terms directly with Google Cloud, and model your expected traffic with each rail enabled before approving the design.

How should we handle a Vertex AI service account JSON file in containers?

Mount the credential file into the container at runtime rather than copying it into the image, then set GOOGLE_APPLICATION_CREDENTIALS to the path inside the container. The NeMo Guardrails Docker guide describes this pattern for file-based credentials. Keep the file out of source control, limit the service account to the required Vertex AI permissions, and plan rotation and revocation with your security team. Where your policy allows, prefer workload identity or other keyless methods on your cluster or cloud platform, and confirm that option with Google Cloud and your platform team before you adopt it.

Does the GCP Text Moderation rail replace our other content safety checks?

No, it covers one check. The gcpnlp input rail sends user input to the GCP Text Moderation API using application default credentials and treats a maximum risk score above 0.80 as a violation. That threshold is a default you should test against your own traffic, since false positives and missed content both depend on your users and language. Most organizations pair a moderation API with rails for topics, personal data and jailbreak attempts, and they need evidence that each layer works. Confirm the threshold, the data sent to Google, and whether your data handling terms allow it before you enable the rail.

Does connecting Gemini through NeMo Guardrails satisfy our compliance review?

No single configuration satisfies a compliance review on its own. NeMo Guardrails can help you show controls such as input and output checks, logging and testing, but independent auditors and certification bodies decide what counts as sufficient evidence. Your review will also cover Google Cloud data processing terms, region choices, credential management and retention of prompts and logs. Ask your compliance lead which frameworks apply, and ask any implementation partner to prepare the configuration, test results and access records that the assessors will request.

What a Gemini and Vertex AI guardrails engagement includes

A fixed-scope engagement for NeMo Guardrails with Gemini or Vertex AI covers four workstreams: configuration, container credential handling, testing and handover. The configuration work sets the model engine in config.yml to either the google_genai or the vertexai engine, confirms the matching LangChain package is installed (langchain-google-genai or langchain-google-vertexai), enables the opt-in LangChain framework, and designs the input, output and any moderation rails that sit around the model. For the Google Cloud text moderation rail, the work also decides whether the gcpnlp input rail is needed and how its risk threshold will be reviewed, since the supplied documentation treats a maximum risk score above 0.80 as a violation. Confirm the exact Python version and package versions with the team before build starts, because the NeMo Guardrails release line changes often.

Container credential handling is where most of the deployment risk sits. For a Vertex AI service account JSON file, the work covers mounting the file into the container at a fixed path, setting GOOGLE_APPLICATION_CREDENTIALS to that path, restricting file permissions, and keeping the key out of images and version control. The engagement also decides whether a long-lived key is acceptable at all or whether workload identity or application default credentials on the host platform is the better fit for your environment, and records that decision. Testing then checks both paths: prompts that should be blocked by input or output rails are blocked, and benign prompts reach Gemini and return normally, with the results logged. Handover includes the configuration files, container build notes, credential rotation steps and a test script the client can rerun after upgrades.

The client provides Google Cloud access to a test project with billing and the Vertex AI or Gemini APIs enabled, a service account with the least permissions needed for the chosen engine, a named technical owner, and access to the target container platform. Scope, deliverables, timelines and the Google Cloud resources used are agreed in writing before work starts, and any usage charges that Google Cloud bills to the client's account are confirmed with the client in advance. Ask the vendor to confirm which Gemini model names and regions your project can use, since those depend on your account and are not set by NeMo Guardrails. Your quote should itemize environment setup, credential work, test cases and documentation, and state which items recur, such as credential rotation and rerunning tests after a NeMo Guardrails upgrade.

How DeployOpen scopes and delivers this integration

DeployOpen plans, builds, tests and documents NeMo Guardrails with Google Gemini and Vertex AI inside the infrastructure you control, including the service account handling, container packaging and Google Cloud moderation rail. Engagements are fixed-scope, with the scope, deliverables and timeline agreed in writing before work starts.

How we scope

  • Confirm which engine serves Gemini: google_genai or vertexai, and the Google Cloud project and region used
  • Record the LangChain packages, Python version and container base image the build will use
  • Decide whether the gcpnlp text moderation rail is in scope and who owns the Google Cloud account

How we build

  • Configure the chosen engine, its LangChain package and the NEMOGUARDRAILS_LLM_FRAMEWORK setting in the container
  • Mount the Vertex AI service account file and set GOOGLE_APPLICATION_CREDENTIALS without baking secrets into images
  • Write config.yml, Colang files and input and output rails tuned to the approved use cases

How we hand over

  • Deliver container images, configuration folders and deployment manifests for your own registry and runtime
  • Provide written test results for blocked and allowed prompts, plus a runbook covering credential rotation
  • Document each rail, its thresholds and the evidence your security and compliance teams can review

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after handover
  • Re-test configurations when NeMo Guardrails, LangChain or Google client packages change versions
  • Confirm with your team how upgrades to the NeMo Guardrails release line will be reviewed before rollout

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.