Interface CohereEmbeddingModelConfig
- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
CohereEmbeddingModelConfig.BuilderBase.CohereEmbeddingModelConfigImpl
Configuration for the Cohere embedding model,
CohereEmbeddingModel
.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Fluent API builder forCohereEmbeddingModelConfig
.static class
CohereEmbeddingModelConfig.BuilderBase<BUILDER extends CohereEmbeddingModelConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends CohereEmbeddingModelConfig> Fluent API builder base forCohereEmbeddingModelConfig
. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionapiKey()
The API key used to authenticate requests to the Cohere API.baseUrl()
The base URL for the Cohere API.builder()
Create a new fluent API builder to customize configuration.builder
(CohereEmbeddingModelConfig instance) Create a new fluent API builder from an existing instance.static CohereEmbeddingModelConfig
create()
Create a new instance with default values.static CohereEmbeddingModelConfig
Create a new instance from configuration.A map containing custom headers.boolean
enabled()
If set tofalse
(default), Cohere model will not be available even if configured.The input type, such assearch_document
,search_query
,classification
,clustering
, orimage
.Whether to log API requests.Whether to log API responses.The maximum number of segments per batch.The model name to use.timeout()
The timeout setting for API requests.
-
Field Details
-
CONFIG_ROOT
Default configuration prefix.- See Also:
-
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance
- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config
- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Create a new instance with default values.- Returns:
- a new instance
-
inputType
The input type, such assearch_document
,search_query
,classification
,clustering
, orimage
.- Returns:
- an
Optional
containing the input type
-
maxSegmentsPerBatch
The maximum number of segments per batch.- Returns:
- an
Optional
containing the maximum number of segments per batch
-
enabled
boolean enabled()If set tofalse
(default), Cohere model will not be available even if configured.- Returns:
- whether Cohere model is enabled, defaults to
false
-
baseUrl
The base URL for the Cohere API.- Returns:
- the base URL
-
apiKey
The API key used to authenticate requests to the Cohere API.- Returns:
- an
Optional
containing the API key
-
logRequests
Whether to log API requests.- Returns:
- an
Optional
containing true if requests should be logged, false otherwise
-
logResponses
Whether to log API responses.- Returns:
- an
Optional
containing true if responses should be logged, false otherwise
-
customHeaders
A map containing custom headers.- Returns:
- custom headers map
-
timeout
The timeout setting for API requests.- Returns:
- the timeout setting in
Duration.parse(java.lang.CharSequence)
format
-
modelName
The model name to use.- Returns:
- the model name
-