Model Endpoints and Data
Captain uses models to read files, to embed text and to rank search results. In a BYOC install those calls go to provider accounts that belong to you, so the data in them is covered by your own agreement with the provider. Captain is not in the path of any model call, and it never sees a prompt or an answer.
On Google Cloud, the default provider is Vertex AI in the same project as the install. Each pod calls it with its own Google identity through a private endpoint, so no model key exists unless you decide to bring one for another provider.
This page lists every model call an install makes, what each call sends, how to keep the calls in the United States, and what each provider says about keeping the data. A model job that you switch off sends nothing.
Defaults
An install has five model jobs, and each one is a setting that names a provider and a model. These are the defaults.
| Job | Setting | Default model | Provider |
|---|---|---|---|
| Embed documents and queries | models.embedding | gemini-embedding-2, 3072 dimensions | Vertex AI |
| Read PDF pages, describe images and figures | models.vision | gemini-3.5-flash-lite, fallback gemini-3.8-flash | Vertex AI |
| Tag and summarize chunks | models.tagging | gemini-3.5-flash-lite | Vertex AI |
| Rank results | models.rerank | semantic-ranker-default-004 | Google's ranking service |
| Chat in the web app | models.chat | Claude Opus 5 (claude-opus-5) on Vertex AI, falling back to Gemini 3.8 Flash (gemini-3.8-flash) on Vertex AI | Vertex AI |
The default chat model is Claude, which Google serves in Vertex AI only after it has been enabled for the project in Model Garden. Until you enable it, chat is answered by the fallback, Gemini 3.8 Flash, and the install check tells you that the fallback is in use. An install Admin can change the chat model to any model your providers offer.
The embedding model is the one setting that is fixed after first use. The install records the model and its vector size at the first index, and it refuses a later index request that uses a different model or size, because vectors from two models cannot be searched together and changing the model means indexing everything again.
What each call sends
The table lists each model call with the component that makes it, the endpoint, the credential and the data in the request. Every call goes to the location described in the next section, which is us by default.
| Job | Called by | Endpoint | Credential | Data sent |
|---|---|---|---|---|
| Read PDF pages | Parser | Vertex AI, generateContent | The parser's Google identity | One rendered page image of the document, plus a fixed instruction |
| Describe images and figures | Workers | Vertex AI, generateContent | The workers' Google identity | An image file or a figure crop, or a short-lived signed link to it in the install's bucket, plus a fixed instruction |
| Tag and summarize | Workers | Vertex AI, generateContent | The workers' Google identity | Chunk text, plus a fixed instruction |
| Embed documents | Workers | Vertex AI, embedContent | The workers' Google identity | Chunk text, one chunk per call |
| Embed a search | API | Vertex AI, embedContent | The API's Google identity | The query text |
| Rank results | API | The ranking service, rankingConfigs:rank | The API's Google identity | The query text and up to 200 passages of chunk text |
| Chat | API | Vertex AI, streamGenerateContent (Gemini) or streamRawPredict (Claude) | The API's Google identity | The question, the conversation so far, the passages the searches returned, and the product's instructions |
Some data is never sent to a model: passwords, API keys, email addresses and the names of people. A file's name is different, because the product shows the source of each passage. A file name can therefore appear in chunk text and in the passages that chat receives.
Keeping calls in the United States
An install keeps every model call in the United States by default. Two settings in the Terraform variables control this, and both default to us:
model_region = "us"
data_residency = "us"The first setting, model_region, chooses where calls are sent. With us, calls go to Google's US multi-region endpoint, aiplatform.us.rep.googleapis.com, and to the US host of the ranking service.
That endpoint needs its own private path. Google's private API addresses, which the install uses for every other Google service, do not serve regional hosts. The install therefore creates a Private Service Connect endpoint for that one name, with a private DNS zone for exactly that name, so that model calls do not cross the public internet.
The second setting, data_residency, is a guard on top of the first. While it is us, the install refuses any model location outside the United States. It checks in three places so that a mistake is caught early: when the chart is rendered, when the install check runs, and when an Admin saves a setting.
Only an install Admin can turn the guard off. When that happens, the settings page says that prompts may be processed outside the United States, and the change is written to the settings history with the name of the person who made it.
An Admin can also move a single job to another location in Settings. The choices are us, global (where Google may process a prompt in any country) or a single region where Google serves that model. Before the change is saved, the install calls the model once in the new location to confirm that it answers.
Bringing your own provider keys
Google is the default provider, not the only one. Any model job, the embedding model included, can run on another provider with a key from your own account, for example OpenAI for embedding and chat, or Anthropic for chat. The table shows how the two most common ones are called and how US residency works there. For a provider that is not in the table, your Captain team adds it with you.
| Provider | Endpoint | Credential | US residency |
|---|---|---|---|
Anthropic (provider: anthropic) | api.anthropic.com, POST /v1/messages | Your key, read from a Secret Manager secret you name, sent as x-api-key | With residency: us every call carries inference_geo: "us", and an answer that names another place is refused |
OpenAI (provider: openai) | api.openai.com, or us.api.openai.com with residency: us. POST /v1/embeddings and POST /v1/chat/completions | Your key, read from a Secret Manager secret you name, sent as a bearer token | The US host serves a project created in the US region. A key cannot show its project's region, so the install check reports it as unchecked |
To move a job to another provider, set it in the models section of the install's settings file. Each job names its provider and model, and a key that is the name of the Secret Manager secret holding your key, never the key itself. The embedding job also names its dimensions. Then allow the provider's addresses for outbound calls: the outbound check takes the provider's host from the job's settings, and the network rule needs the provider's address ranges in model_provider_cidrs. The install check calls the new model once before the change is used.
Data governance and retention for these calls belong to your agreement with the provider. When a job runs on your OpenAI account, or on Vertex AI under your Google Cloud agreement, what the provider may keep, for how long and under which terms is set by that agreement, which your company holds and negotiates. Captain is not a party to it, and Captain never sees the calls.
A few things change when a job moves to one of these providers:
- The data sent is the same as for the Google job it replaces. Page images are sent as base64 or as image parts.
- OpenAI serves embedding models, such as
text-embedding-3-large. Choose the embedding provider before the first index, because the embedding model is fixed after first use. - Anthropic has no embedding model or ranking model, so when rerank runs on Anthropic a Claude model orders the passages.
- While data residency is
us, a job on either provider is refused unless its ownresidencysetting isus. - Both providers are reached over the public internet. The install opens outbound HTTPS to the address ranges you name in
model_provider_cidrsand to nothing else, through a NAT that exists only when you name a range. - A fallback model runs on the same provider as its job, with that job's key, project, region and residency.
- A model on your own network (
provider: openai_compatible) is refused while data residency isus, because the install cannot tell where that model runs.
What each provider states about retention
Whether a provider keeps your prompts is decided by the provider and by your agreement with it, not by Captain. To help with a review, the tables below quote each provider's own page as it read on 1 December 2026. Terms change, so read the same pages again before you sign anything, and rely on your own agreement over this summary.
Google: Vertex AI
| Point | Google's words | Page |
|---|---|---|
| Training | "Google won't use your data to train or fine-tune any AI/ML models without your prior permission or instruction." | Data governance |
| Cache, in memory | "It's stored only in memory, not at rest." "It's deleted no later than 24 hours after it's written." | Same page |
| Cache, durable tier | On by default for supported models. The install turns it off for the project | Same page |
| Abuse-monitoring logs | When a classifier flags a request, prompts may be logged: "This data is stored securely for up to 90 days in the same region or multi-region". "customers with a Google Cloud Master Agreement are exempt from prompt logging for this abuse monitoring by default." | Abuse monitoring |
| Claude in Vertex AI | "Use of Anthropic models on Gemini Enterprise Agent Platform is governed by Anthropic's Commercial Terms of Service." | Same page |
| HIPAA | Google's list of covered products includes "Generative AI on Agent Platform" | HIPAA on Google Cloud |
Some Vertex AI features keep data whatever the settings say: grounding with Google Search or Maps, request-response logging, the Interactions API and explicit caches. Captain does not use any of them.
Google: the ranking service
The ranking service is covered by different pages from the rest of Vertex AI, and they say less. Google's page states: "The ranking API is stateless so there's no need to index documents before calling the API." It does not say whether queries or passages are logged or kept, and the service is not named separately on Google's HIPAA list.
Ask Google about this before you send regulated data to the ranking service. Until Google answers, you can set the rerank job's provider to vertex, so that a Gemini model does the ranking under the Vertex AI terms above.
Zero data retention on Vertex AI
Keeping prompts out of every cache and log on Vertex AI takes several steps, and they belong to different parties. The install does the first one for you.
| Step | Who |
|---|---|
| Turn off the project's prompt cache, both tiers | The install, on by default (vertex_zero_data_retention = true). Terraform reads the setting back and stops if Google did not keep it |
| Use no feature that keeps data | Captain, by not calling them |
| Prompt logging for abuse monitoring | You, with Google. Exempt by default under a Google Cloud Master Agreement |
| Durable cache off across the organization | You, through your Google account team. Optional: the project setting covers the install |
Anthropic's and OpenAI's own APIs
These terms apply only if you move a job to one of these providers with your own key.
| Provider | Retention | Training | Zero retention |
|---|---|---|---|
| Anthropic API | "we automatically delete inputs and outputs on our backend within 30 days of receipt or generation" | "By default, we will not use your inputs or outputs from our commercial products" | Set per organization through Anthropic's account team |
| OpenAI API | "abuse monitoring logs are generated for all API feature usage and retained for up to 30 days" | "data sent to the OpenAI API is not used to train or improve OpenAI models" | "subject to prior approval by OpenAI and acceptance of additional requirements" |
Pages: Anthropic data retention, Anthropic data residency, OpenAI data controls.
Whether a business associate agreement covers a provider is a matter between you and that provider.
Turning a call off or moving it
Each model call can be switched off, moved or limited through settings.
| To | Do |
|---|---|
| Stop a job | Set that job's provider to empty. Chat is then off. Without tagging there are no tags or summaries. Without rerank, results stay in search order. Embedding cannot be off, and vision cannot be off while the parser is on |
| Move one job to another location | An Admin changes "Where the model runs" in Settings |
| Forbid every location outside the United States | Data residency us, the default |
| Use another project's models | Refused unless allowOtherModelProjects: true |
| Cap what the install sends | Each job's limits.requestsPerMinute, maxConcurrency and timeoutSeconds |
After any of these changes, the install check calls every model and every fallback once, so a model that would refuse a request is found when you install and not when someone searches.
The question to ask your reviewers
A security or privacy review of an install usually comes down to one question about models:
Which exact model endpoints may our parsing and embedding services call with regulated data, and what data is each endpoint permitted to receive?
The table under What each call sends is the list to answer that question against.