Class RerankServiceOptions

java.lang.Object
com.datastax.astra.client.core.rerank.RerankServiceOptions

public class RerankServiceOptions extends Object
Options for the Rerank service at collection/table creation.
  • Constructor Details

    • RerankServiceOptions

      public RerankServiceOptions()
      Default constructor for serialization purposes.
  • Method Details

    • addAuthentication

      public RerankServiceOptions addAuthentication(String key, Object value)
      Adds a single authentication key-value pair to the authentication map.
      Parameters:
      key - the key for the authentication entry
      value - the value for the authentication entry
      Returns:
      the current VectorServiceOptions instance for method chaining
    • authentication

      public RerankServiceOptions authentication(Map<String,Object> auth)
      Sets the authentication map.
      Parameters:
      auth - the map containing authentication details
      Returns:
      the current VectorServiceOptions instance for method chaining
    • modelName

      public RerankServiceOptions modelName(String modelName)
      Sets the LLM model name.
      Parameters:
      modelName - the name of the model
      Returns:
      the current VectorServiceOptions instance for method chaining
    • provider

      public RerankServiceOptions provider(String provider)
      Sets the LLM provider.
      Parameters:
      provider - the name of the provider
      Returns:
      the current VectorServiceOptions instance for method chaining
    • parameters

      public RerankServiceOptions parameters(Map<String,Object> parameters)
      Sets the parameters map.
      Parameters:
      parameters - a map of free-form parameters
      Returns:
      the current VectorServiceOptions instance for method chaining