Package com.sap.ai.sdk.grounding.model
Class KeyWordRetrievalScoringConfiguration
java.lang.Object
com.sap.ai.sdk.grounding.model.KeyWordRetrievalScoringConfiguration
KeyWordRetrievalScoringConfiguration
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for KeyWordRetrievalScoringConfiguration. -
Method Summary
Modifier and TypeMethodDescriptioncreate()Create a newKeyWordRetrievalScoringConfigurationinstance.Set the enabled of thisKeyWordRetrievalScoringConfigurationinstance and return the same instance.booleanextractKeyWordsFromQuery(Boolean extractKeyWordsFromQuery) Set the extractKeyWordsFromQuery of thisKeyWordRetrievalScoringConfigurationinstance and return the same instance.getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theKeyWordRetrievalScoringConfiguration.Contribution to final score.inthashCode()Enable dense retrieval.Extract Keywords from Query.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisKeyWordRetrievalScoringConfigurationinstance.voidsetEnabled(Boolean enabled) Set the enabled of thisKeyWordRetrievalScoringConfigurationinstance.voidsetExtractKeyWordsFromQuery(Boolean extractKeyWordsFromQuery) Set the extractKeyWordsFromQuery of thisKeyWordRetrievalScoringConfigurationinstance.voidSet the weight of thisKeyWordRetrievalScoringConfigurationinstance.toMap()Get the value of all properties of thisKeyWordRetrievalScoringConfigurationinstance including unrecognized properties.toString()Set the weight of thisKeyWordRetrievalScoringConfigurationinstance and return the same instance.
-
Constructor Details
-
KeyWordRetrievalScoringConfiguration
protected KeyWordRetrievalScoringConfiguration()Default constructor for KeyWordRetrievalScoringConfiguration.
-
-
Method Details
-
enabled
Set the enabled of thisKeyWordRetrievalScoringConfigurationinstance and return the same instance.- Parameters:
enabled- Enable dense retrieval.- Returns:
- The same instance of this
KeyWordRetrievalScoringConfigurationclass
-
isEnabled
Enable dense retrieval.- Returns:
- enabled The enabled of this
KeyWordRetrievalScoringConfigurationinstance.
-
setEnabled
Set the enabled of thisKeyWordRetrievalScoringConfigurationinstance.- Parameters:
enabled- Enable dense retrieval.
-
weight
Set the weight of thisKeyWordRetrievalScoringConfigurationinstance and return the same instance.- Parameters:
weight- Contribution to final score.- Returns:
- The same instance of this
KeyWordRetrievalScoringConfigurationclass
-
getWeight
Contribution to final score.- Returns:
- weight The weight of this
KeyWordRetrievalScoringConfigurationinstance.
-
setWeight
Set the weight of thisKeyWordRetrievalScoringConfigurationinstance.- Parameters:
weight- Contribution to final score.
-
extractKeyWordsFromQuery
@Nonnull public KeyWordRetrievalScoringConfiguration extractKeyWordsFromQuery(@Nullable Boolean extractKeyWordsFromQuery) Set the extractKeyWordsFromQuery of thisKeyWordRetrievalScoringConfigurationinstance and return the same instance.- Parameters:
extractKeyWordsFromQuery- Extract Keywords from Query.- Returns:
- The same instance of this
KeyWordRetrievalScoringConfigurationclass
-
isExtractKeyWordsFromQuery
Extract Keywords from Query.- Returns:
- extractKeyWordsFromQuery The extractKeyWordsFromQuery of this
KeyWordRetrievalScoringConfigurationinstance.
-
setExtractKeyWordsFromQuery
Set the extractKeyWordsFromQuery of thisKeyWordRetrievalScoringConfigurationinstance.- Parameters:
extractKeyWordsFromQuery- Extract Keywords from Query.
-
getCustomFieldNames
Get the names of the unrecognizable properties of theKeyWordRetrievalScoringConfiguration.- 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 thisKeyWordRetrievalScoringConfigurationinstance.- 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 thisKeyWordRetrievalScoringConfigurationinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisKeyWordRetrievalScoringConfigurationinstance. 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 newKeyWordRetrievalScoringConfigurationinstance. No arguments are required.
-
toMap()instead.