Package com.sap.ai.sdk.grounding.model
Class BoostingScoringConfiguration
java.lang.Object
com.sap.ai.sdk.grounding.model.BoostingScoringConfiguration
BoostingScoringConfiguration
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for BoostingScoringConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionaddMetadataItem(BoostingScoringConfigurationMetadataInner metadataItem) Add one metadata instance to thisBoostingScoringConfiguration.static BoostingScoringConfigurationcreate()Create a newBoostingScoringConfigurationinstance.Set the enabled of thisBoostingScoringConfigurationinstance and return the same instance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theBoostingScoringConfiguration.Get metadataGet scoreComputationStrategyContribution to final score.inthashCode()Enable metadata-based boosting.Set the metadata of thisBoostingScoringConfigurationinstance and return the same instance.scoreComputationStrategy(BoostingScoreComputationStrategy scoreComputationStrategy) Set the scoreComputationStrategy of thisBoostingScoringConfigurationinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisBoostingScoringConfigurationinstance.voidsetEnabled(Boolean enabled) Set the enabled of thisBoostingScoringConfigurationinstance.voidSet the metadata of thisBoostingScoringConfigurationinstance.voidsetScoreComputationStrategy(BoostingScoreComputationStrategy scoreComputationStrategy) Set the scoreComputationStrategy of thisBoostingScoringConfigurationinstance.voidSet the weight of thisBoostingScoringConfigurationinstance.toMap()Get the value of all properties of thisBoostingScoringConfigurationinstance including unrecognized properties.toString()Set the weight of thisBoostingScoringConfigurationinstance and return the same instance.
-
Constructor Details
-
BoostingScoringConfiguration
protected BoostingScoringConfiguration()Default constructor for BoostingScoringConfiguration.
-
-
Method Details
-
enabled
Set the enabled of thisBoostingScoringConfigurationinstance and return the same instance.- Parameters:
enabled- Enable metadata-based boosting.- Returns:
- The same instance of this
BoostingScoringConfigurationclass
-
isEnabled
Enable metadata-based boosting.- Returns:
- enabled The enabled of this
BoostingScoringConfigurationinstance.
-
setEnabled
Set the enabled of thisBoostingScoringConfigurationinstance.- Parameters:
enabled- Enable metadata-based boosting.
-
metadata
@Nonnull public BoostingScoringConfiguration metadata(@Nullable List<BoostingScoringConfigurationMetadataInner> metadata) Set the metadata of thisBoostingScoringConfigurationinstance and return the same instance.- Parameters:
metadata- The metadata of thisBoostingScoringConfiguration- Returns:
- The same instance of this
BoostingScoringConfigurationclass
-
addMetadataItem
@Nonnull public BoostingScoringConfiguration addMetadataItem(@Nonnull BoostingScoringConfigurationMetadataInner metadataItem) Add one metadata instance to thisBoostingScoringConfiguration.- Parameters:
metadataItem- The metadata that should be added- Returns:
- The same instance of type
BoostingScoringConfiguration
-
getMetadata
Get metadata- Returns:
- metadata The metadata of this
BoostingScoringConfigurationinstance.
-
setMetadata
Set the metadata of thisBoostingScoringConfigurationinstance.- Parameters:
metadata- The metadata of thisBoostingScoringConfiguration
-
weight
Set the weight of thisBoostingScoringConfigurationinstance and return the same instance.- Parameters:
weight- Contribution to final score.- Returns:
- The same instance of this
BoostingScoringConfigurationclass
-
getWeight
Contribution to final score.- Returns:
- weight The weight of this
BoostingScoringConfigurationinstance.
-
setWeight
Set the weight of thisBoostingScoringConfigurationinstance.- Parameters:
weight- Contribution to final score.
-
scoreComputationStrategy
@Nonnull public BoostingScoringConfiguration scoreComputationStrategy(@Nullable BoostingScoreComputationStrategy scoreComputationStrategy) Set the scoreComputationStrategy of thisBoostingScoringConfigurationinstance and return the same instance.- Parameters:
scoreComputationStrategy- The scoreComputationStrategy of thisBoostingScoringConfiguration- Returns:
- The same instance of this
BoostingScoringConfigurationclass
-
getScoreComputationStrategy
Get scoreComputationStrategy- Returns:
- scoreComputationStrategy The scoreComputationStrategy of this
BoostingScoringConfigurationinstance.
-
setScoreComputationStrategy
public void setScoreComputationStrategy(@Nullable BoostingScoreComputationStrategy scoreComputationStrategy) Set the scoreComputationStrategy of thisBoostingScoringConfigurationinstance.- Parameters:
scoreComputationStrategy- The scoreComputationStrategy of thisBoostingScoringConfiguration
-
getCustomFieldNames
Get the names of the unrecognizable properties of theBoostingScoringConfiguration.- Returns:
- The set of properties names
-
getCustomField
@Nullable @Deprecated public Object getCustomField(@Nonnull String name) throws NoSuchElementException Deprecated.UsetoMap()instead.Get the value of an unrecognizable property of thisBoostingScoringConfigurationinstance.- Parameters:
name- The name of the property- Returns:
- The value of the property
- Throws:
NoSuchElementException- If no property with the given name could be found.
-
toMap
Get the value of all properties of thisBoostingScoringConfigurationinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisBoostingScoringConfigurationinstance. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
customFieldName- The name of the propertycustomFieldValue- The value of the property
-
equals
-
hashCode
public int hashCode() -
toString
-
create
Create a newBoostingScoringConfigurationinstance. No arguments are required.
-
toMap()instead.