Search Engine Setup

3 min read

Where to put credentials so each search engine works.

Mode

Where secrets live

Source of env names

Search Proxy (recommended)

Search Proxy pod

Search Proxy client web/settings (GOOGLE_SEARCH_*, BRAVE_SEARCH_*, PERPLEXITY_SEARCH_*, BING_AGENT_*, VERTEXAI_AGENT_*)

Legacy

assistants-core pod

Direct egress from assistants-core (AZURE_AI_*, Vertex SA vars, Google/reader keys on core)

In both modes, assistants-core still needs client/config: SEARCH_PROXY_BASE_URL (when using Search Proxy), ACTIVE_SEARCH_ENGINES, and Custom API vars if used.

When SEARCH_PROXY_BASE_URL is set, every engine in ACTIVE_SEARCH_ENGINES needs its credentials on Search Proxy; credentials on assistants-core are not used (Customized API is the exception, see below). An engine without credentials on Search Proxy still shows in the Space, but its searches fail.

Visibility lists: Activation Reference. Behaviour: Architecture Search Engines / Search Proxy. Confirm exact Helm value paths against the charts for your release.


Search Proxy (recommended)

Set these on the Search Proxy deployment.

Google

Variable

Role

GOOGLE_SEARCH_API_KEY

API key

GOOGLE_SEARCH_ENGINE_ID

Programmable Search Engine id (cx)

GOOGLE_SEARCH_API_ENDPOINT

Optional override (default Custom Search JSON API URL)

Brave (proxy-only)

Variable

Role

BRAVE_SEARCH_API_KEY

API key

BRAVE_SEARCH_API_ENDPOINT

Optional override

Requires Search Proxy. Not available on the legacy path.

Perplexity (proxy-only)

Variable

Role

PERPLEXITY_SEARCH_API_KEY

API key

PERPLEXITY_SEARCH_API_ENDPOINT

Optional override

Requires Search Proxy. Not available on the legacy path.

Customized API

Configured on assistants-core (routed through Search Proxy only when FEATURE_FLAG_SEARCH_PROXY_ENABLE_CUSTOM_API_UN_26736 is enabled):

Variable

Role

CUSTOM_WEB_SEARCH_API_ENDPOINT

Base URL

CUSTOM_WEB_SEARCH_API_METHOD

GET / POST

CUSTOM_WEB_SEARCH_API_HEADERS

JSON headers

CUSTOM_WEB_SEARCH_API_ADDITIONAL_QUERY_PARAMS

JSON

CUSTOM_WEB_SEARCH_API_ADDITIONAL_BODY_PARAMS

JSON

Env can lock fields so Spaces UI hides them.


Grounding (agent search) — Search Proxy

Bing (BING_AGENT_*)

Variable

Role

BING_AGENT_ENDPOINT

Azure AI Foundry / project endpoint

BING_AGENT_BING_RESOURCE_CONNECTION_STRING

Bing grounding connection

BING_AGENT_BING_AGENT_MODEL

Model deployment for the automatically created agent (required)

BING_AGENT_AZURE_IDENTITY_CREDENTIAL_TYPE

Azure identity mode (e.g. default / workload)

BING_AGENT_AZURE_IDENTITY_VALIDATE_TOKEN_URL

Optional token audience

BING_AGENT_USE_PRIVATE_ENDPOINT_TRANSPORT

Optional private-endpoint transport

VertexAI (VERTEXAI_AGENT_*)

Variable

Role

VERTEXAI_AGENT_CREDENTIAL_TYPE

workload_identity (default) or service_account

VERTEXAI_AGENT_SERVICE_ACCOUNT_CREDENTIALS

Optional; required when type is service_account (base64-encoded SA JSON)

VERTEXAI_AGENT_SERVICE_ACCOUNT_SCOPES

Optional OAuth scopes

To always use Web Grounding for Enterprise, set VERTEXAI_AGENT_FORCE_ACTIVATE_ENTERPRISE_SEARCH=true on assistants-core. Enable Enterprise Search is then on for every Space and cannot be turned off. See Search Engine Configuration.

To change the default Gemini model for Grounding with VertexAI, set VERTEXAI_AGENT_DEFAULT_VERTEX_AI_MODEL_NAME on assistants-core (default gemini-3-flash-preview). Spaces can still choose another model.


Checklist for a new tenant on Search Proxy

  1. Deploy Search Proxy; enable searchProxy dependency / set SEARCH_PROXY_BASE_URL on assistants-core.

  2. Mount standard-search and crawler secrets on Search Proxy (web/settings).

  3. Mount / bind Azure or GCP identity for grounding (BING_AGENT_* / VERTEXAI_AGENT_*).

  4. Set ACTIVE_SEARCH_ENGINES on assistants-core to the engines you want visible. Each of them needs its credentials on Search Proxy.

  5. Configure corporate egress with HTTP_CLIENT_* on Search Proxy if required.

  6. Verify Brave/Perplexity only after Search Proxy health checks pass.


Legacy path (assistants-core direct egress)

Use when Search Proxy is not enabled (SEARCH_PROXY_BASE_URL unset). Supported until decommissioned. Brave and Perplexity are not available.

Standard search — legacy

Google

Variable

Role

GOOGLE_SEARCH_API_KEY

API key

GOOGLE_SEARCH_ENGINE_ID

Programmable Search Engine id (cx)

GOOGLE_SEARCH_API_ENDPOINT

Optional override

Mount on assistants-core.

Customized API

Same CUSTOM_WEB_SEARCH_API_* vars as above (always on assistants-core).


Grounding — legacy

Bing (AZURE_AI_* on assistants-core)

Variable

Role

AZURE_AI_PROJECT_ENDPOINT

Foundry project endpoint

AZURE_AI_BING_RESOURCE_CONNECTION_STRING

Bing grounding connection when required

AZURE_AI_BING_AGENT_MODEL

Model deployment name for auto-provision

DEFAULT_AZURE_IDENTITY_CREDENTIAL_TYPE

Azure identity mode (workload / default)

DEFAULT_AZURE_IDENTITY_CREDENTIALS_VALIDATE_TOKEN_URL

Optional token audience

UNIQUE_PRIVATE_ENDPOINT_TRANSPORT_ENABLED

Optional private-endpoint transport

VertexAI (on assistants-core)

Variable / mechanism

Role

GCP Workload Identity / ADC

Production auth

VERTEXAI_SERVICE_ACCOUNT_CREDENTIALS

Dev/alternate credentials (SA JSON)

VERTEXAI_SERVICE_ACCOUNT_SCOPES

Optional OAuth scopes

VERTEXAI_AGENT_FORCE_ACTIVATE_ENTERPRISE_SEARCH

Optional; true always uses Web Grounding for Enterprise (Enable Enterprise Search locked on)

VERTEXAI_AGENT_DEFAULT_VERTEX_AI_MODEL_NAME

Optional; default Gemini model for Spaces (default gemini-3-flash-preview)

Corporate HTTP proxy for legacy egress: PROXY_* on assistants-core — see Proxy Configuration.

Last updated