Class GoogleGenAiBatchEmbeddingModel.Builder
java.lang.Object
dev.langchain4j.model.google.genai.GoogleGenAiBatchEmbeddingModel.Builder
- Enclosing class:
GoogleGenAiBatchEmbeddingModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiEndpoint(String apiEndpoint) apiVersion(@Nullable String apiVersion) The version of the API to call, for examplev1betaorv1.build()client(com.google.genai.Client client) customHeaders(Map<String, String> customHeaders) googleCredentials(com.google.auth.oauth2.GoogleCredentials credentials) maxRetries(Integer maxRetries) outputDimensionality(Integer outputDimensionality) titleMetadataKey(String titleMetadataKey)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
client
-
googleCredentials
public GoogleGenAiBatchEmbeddingModel.Builder googleCredentials(com.google.auth.oauth2.GoogleCredentials credentials) -
apiKey
-
projectId
-
location
-
modelName
-
maxRetries
-
timeout
-
outputDimensionality
-
taskType
public GoogleGenAiBatchEmbeddingModel.Builder taskType(GoogleGenAiEmbeddingModel.TaskTypeEnum taskType) -
titleMetadataKey
-
apiEndpoint
-
apiVersion
The version of the API to call, for examplev1betaorv1. When not set (null), the version set in theGOOGLE_GENAI_API_VERSIONenvironment variable is used, otherwisev1betaon the Gemini Developer API and the default of the Google GenAI SDK on Vertex AI. Ignored when a client is set withclient(...). -
customHeaders
-
build
-