Package com.sap.ai.sdk.grounding.model
Class DenseRetrievalScoringConfiguration
java.lang.Object
com.sap.ai.sdk.grounding.model.DenseRetrievalScoringConfiguration
DenseRetrievalScoringConfiguration
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for DenseRetrievalScoringConfiguration. -
Method Summary
Modifier and TypeMethodDescriptioncreate()Create a newDenseRetrievalScoringConfigurationinstance.Set the enabled of thisDenseRetrievalScoringConfigurationinstance and return the same instance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theDenseRetrievalScoringConfiguration.Contribution to final score.inthashCode()Enable dense retrieval.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisDenseRetrievalScoringConfigurationinstance.voidsetEnabled(Boolean enabled) Set the enabled of thisDenseRetrievalScoringConfigurationinstance.voidSet the weight of thisDenseRetrievalScoringConfigurationinstance.toMap()Get the value of all properties of thisDenseRetrievalScoringConfigurationinstance including unrecognized properties.toString()Set the weight of thisDenseRetrievalScoringConfigurationinstance and return the same instance.
-
Constructor Details
-
DenseRetrievalScoringConfiguration
protected DenseRetrievalScoringConfiguration()Default constructor for DenseRetrievalScoringConfiguration.
-
-
Method Details
-
enabled
Set the enabled of thisDenseRetrievalScoringConfigurationinstance and return the same instance.- Parameters:
enabled- Enable dense retrieval.- Returns:
- The same instance of this
DenseRetrievalScoringConfigurationclass
-
isEnabled
Enable dense retrieval.- Returns:
- enabled The enabled of this
DenseRetrievalScoringConfigurationinstance.
-
setEnabled
Set the enabled of thisDenseRetrievalScoringConfigurationinstance.- Parameters:
enabled- Enable dense retrieval.
-
weight
Set the weight of thisDenseRetrievalScoringConfigurationinstance and return the same instance.- Parameters:
weight- Contribution to final score.- Returns:
- The same instance of this
DenseRetrievalScoringConfigurationclass
-
getWeight
Contribution to final score.- Returns:
- weight The weight of this
DenseRetrievalScoringConfigurationinstance.
-
setWeight
Set the weight of thisDenseRetrievalScoringConfigurationinstance.- Parameters:
weight- Contribution to final score.
-
getCustomFieldNames
Get the names of the unrecognizable properties of theDenseRetrievalScoringConfiguration.- 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 thisDenseRetrievalScoringConfigurationinstance.- 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 thisDenseRetrievalScoringConfigurationinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisDenseRetrievalScoringConfigurationinstance. 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 newDenseRetrievalScoringConfigurationinstance. No arguments are required.
-
toMap()instead.