Class GoogleGenAiEmbeddingConnectionDetails

java.lang.Object
org.springframework.ai.google.genai.GoogleGenAiEmbeddingConnectionDetails

public class GoogleGenAiEmbeddingConnectionDetails extends Object
GoogleGenAiEmbeddingConnectionDetails represents the details of a connection to the embedding service using the new Google Gen AI SDK. It provides methods to create and configure the GenAI Client instance.
Since:
1.0.0
Author:
Christian Tzolov, Mark Pollack, Ilayaperumal Gopinathan, Dan Dobrin
  • Field Details

  • Method Details

    • builder

    • getProjectId

      public String getProjectId()
    • getLocation

      public String getLocation()
    • getApiKey

      public String getApiKey()
    • getGenAiClient

      public com.google.genai.Client getGenAiClient()
    • getModelEndpointName

      public String getModelEndpointName(String modelName)
      Constructs the model endpoint name in the format expected by the embedding models.
      Parameters:
      modelName - the model name (e.g., "text-embedding-004")
      Returns:
      the full model endpoint name