# Functions
GetToken returns access token from the given token source.
NewClient creates a new HTTP client and returns it.
NewEmbedder creates a client that implements embeddings.Embedder.
WithBaseURL sets the API base URL.
WithHTTPClient sets the HTTP client.
WithModelID sets the Vertex AI model ID.
WithProjectID sets the Google Project ID.
WithToken sets the API token.
WithTokenSrc sets the API token source.
# Constants
BaseURL is the Google Vertex AI HTTP API base URL.
No description provided by the author
No description provided by the author
EmbedAction is embedding API action.
No description provided by the author
EmbedGeckoV* are English language embedding models See for the information about the latest available version https://cloud.google.com/vertex-ai/docs/generative-ai/learn/model-versioning#latest-version.
No description provided by the author
No description provided by the author
EmbedMultiGecko is a multilanguage embeddings model.
No description provided by the author
No description provided by the author
ModelURI is the Google Vertex AI HTTP API model URI.
No description provided by the author
No description provided by the author
NOTE: https://developers.google.com/identity/protocols/oauth2/scopes.
No description provided by the author
# Variables
ErrMissingTokenSource is returned when the API client is missing a token source.
# Structs
APIError is API error.
Client is a Google Vertex AI HTTP API client.
EmbedddingResponse received from API endpoint.
EmbeddingRequest sent to API endpoint.
ImageBase64 contains image encoded as base64 string.
ImageGCS contains GCS URI to image file.
NOTE: Title is only valid with TaskType set to RetrDocTask https://cloud.google.com/vertex-ai/docs/generative-ai/embeddings/get-text-embeddings#api_changes_to_models_released_on_or_after_august_2023.
MultiEmbedddingResponse received from API.
MultiEmbeddingRequest is multimodal embedding request.
MultiInstance contains the request payload.
MultiParams are additional API request parameters.
MultiPrediction for a given request.
Options are client options.
Params are additional API request parameters passed via body.
Predictions is the generated response.
Statistics define the statistics for a text embedding.