Class RerankServiceOptions
java.lang.Object
com.datastax.astra.client.core.rerank.RerankServiceOptions
Options for the Rerank service at collection/table creation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a parameter definition for LLM services. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAuthentication(String key, Object value) Adds a single authentication key-value pair to theauthenticationmap.authentication(Map<String, Object> auth) Sets the authentication map.Sets the LLM model name.parameters(Map<String, Object> parameters) Sets the parameters map.Sets the LLM provider.
-
Constructor Details
-
RerankServiceOptions
public RerankServiceOptions()Default constructor for serialization purposes.
-
-
Method Details
-
addAuthentication
Adds a single authentication key-value pair to theauthenticationmap.- Parameters:
key- the key for the authentication entryvalue- the value for the authentication entry- Returns:
- the current
VectorServiceOptionsinstance for method chaining
-
authentication
Sets the authentication map.- Parameters:
auth- the map containing authentication details- Returns:
- the current
VectorServiceOptionsinstance for method chaining
-
modelName
Sets the LLM model name.- Parameters:
modelName- the name of the model- Returns:
- the current
VectorServiceOptionsinstance for method chaining
-
provider
Sets the LLM provider.- Parameters:
provider- the name of the provider- Returns:
- the current
VectorServiceOptionsinstance for method chaining
-
parameters
Sets the parameters map.- Parameters:
parameters- a map of free-form parameters- Returns:
- the current
VectorServiceOptionsinstance for method chaining
-