WeaviateEx.API.Vectorizers.Text2VecPalm (WeaviateEx v0.7.4)

View Source

Text2Vec-Palm (Google Vertex AI) vectorizer configuration.

Uses Google's PaLM/Vertex AI embedding models.

Example

Text2VecPalm.new(
  project_id: "my-gcp-project",
  model_id: "textembedding-gecko@001"
)

Summary

Functions

Parse configuration from API response.

Create a new Text2Vec-Palm configuration.

Convert configuration to API format.

Returns the vectorizer name for the API.

Types

t()

@type t() :: %WeaviateEx.API.Vectorizers.Text2VecPalm{
  api_endpoint: String.t() | nil,
  model_id: String.t() | nil,
  project_id: String.t() | nil,
  vectorize_collection_name: boolean()
}

Functions

from_api(map)

@spec from_api(map()) :: t()

Parse configuration from API response.

new(opts \\ [])

@spec new(keyword()) :: t()

Create a new Text2Vec-Palm configuration.

Options

  • :project_id - Google Cloud project ID (required)
  • :model_id - Model ID (e.g., "textembedding-gecko@001")
  • :api_endpoint - Custom API endpoint
  • :vectorize_collection_name - Include collection name (default: true)

to_api(config)

@spec to_api(t()) :: map()

Convert configuration to API format.

vectorizer_name()

@spec vectorizer_name() :: String.t()

Returns the vectorizer name for the API.