Invoke Gemini Embed Content

Generates embeddings using Gemini.

This example provides a sample configuration for the Invoke Gemini Embed Content policy. For more information on the policy parameter descriptions, see DataPower Nano Gateway documentation.

kind: InvokeGeminiEmbedContent
apiVersion: api.ibm.com/v1
metadata:
  name: invoke-gemini-embed-content-policy
  namespace: sample
  version: '1.0'
spec:
  inputMessage: 'request' # Optional - default value is request
  outputMessage: 'response' # Optional - default value is response
  tlsClientProfile: 'aiEndpointTlsClientProfile'
  apiKeySecret: '*****' # The name of a Kubernetes Secret which holds the Gemini API Key. The Secret must contain data literal "geminiApiKey" whose value is the API Key to use for authentication.
  model: 'modelId'