Package com.sap.ai.sdk.grounding.model
Class VectorScoringConfiguration
java.lang.Object
com.sap.ai.sdk.grounding.model.VectorScoringConfiguration
VectorScoringConfiguration
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for VectorScoringConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionaggregationStrategy(ScoresAggregationStrategy aggregationStrategy) Set the aggregationStrategy of thisVectorScoringConfigurationinstance and return the same instance.boosting(BoostingScoringConfiguration boosting) Set the boosting of thisVectorScoringConfigurationinstance and return the same instance.static VectorScoringConfigurationcreate()Create a newVectorScoringConfigurationinstance.denseRetrieval(DenseRetrievalScoringConfiguration denseRetrieval) Set the denseRetrieval of thisVectorScoringConfigurationinstance and return the same instance.booleanGet aggregationStrategyGet boostinggetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theVectorScoringConfiguration.Get denseRetrievalGet keywordRetrievalMinimum chunk score threshold.inthashCode()keywordRetrieval(KeyWordRetrievalScoringConfiguration keywordRetrieval) Set the keywordRetrieval of thisVectorScoringConfigurationinstance and return the same instance.scoreThreshold(BigDecimal scoreThreshold) Set the scoreThreshold of thisVectorScoringConfigurationinstance and return the same instance.voidsetAggregationStrategy(ScoresAggregationStrategy aggregationStrategy) Set the aggregationStrategy of thisVectorScoringConfigurationinstance.voidsetBoosting(BoostingScoringConfiguration boosting) Set the boosting of thisVectorScoringConfigurationinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisVectorScoringConfigurationinstance.voidsetDenseRetrieval(DenseRetrievalScoringConfiguration denseRetrieval) Set the denseRetrieval of thisVectorScoringConfigurationinstance.voidsetKeywordRetrieval(KeyWordRetrievalScoringConfiguration keywordRetrieval) Set the keywordRetrieval of thisVectorScoringConfigurationinstance.voidsetScoreThreshold(BigDecimal scoreThreshold) Set the scoreThreshold of thisVectorScoringConfigurationinstance.toMap()Get the value of all properties of thisVectorScoringConfigurationinstance including unrecognized properties.toString()
-
Constructor Details
-
VectorScoringConfiguration
protected VectorScoringConfiguration()Default constructor for VectorScoringConfiguration.
-
-
Method Details
-
denseRetrieval
@Nonnull public VectorScoringConfiguration denseRetrieval(@Nullable DenseRetrievalScoringConfiguration denseRetrieval) Set the denseRetrieval of thisVectorScoringConfigurationinstance and return the same instance.- Parameters:
denseRetrieval- The denseRetrieval of thisVectorScoringConfiguration- Returns:
- The same instance of this
VectorScoringConfigurationclass
-
getDenseRetrieval
Get denseRetrieval- Returns:
- denseRetrieval The denseRetrieval of this
VectorScoringConfigurationinstance.
-
setDenseRetrieval
Set the denseRetrieval of thisVectorScoringConfigurationinstance.- Parameters:
denseRetrieval- The denseRetrieval of thisVectorScoringConfiguration
-
keywordRetrieval
@Nonnull public VectorScoringConfiguration keywordRetrieval(@Nullable KeyWordRetrievalScoringConfiguration keywordRetrieval) Set the keywordRetrieval of thisVectorScoringConfigurationinstance and return the same instance.- Parameters:
keywordRetrieval- The keywordRetrieval of thisVectorScoringConfiguration- Returns:
- The same instance of this
VectorScoringConfigurationclass
-
getKeywordRetrieval
Get keywordRetrieval- Returns:
- keywordRetrieval The keywordRetrieval of this
VectorScoringConfigurationinstance.
-
setKeywordRetrieval
Set the keywordRetrieval of thisVectorScoringConfigurationinstance.- Parameters:
keywordRetrieval- The keywordRetrieval of thisVectorScoringConfiguration
-
boosting
@Nonnull public VectorScoringConfiguration boosting(@Nullable BoostingScoringConfiguration boosting) Set the boosting of thisVectorScoringConfigurationinstance and return the same instance.- Parameters:
boosting- The boosting of thisVectorScoringConfiguration- Returns:
- The same instance of this
VectorScoringConfigurationclass
-
getBoosting
Get boosting- Returns:
- boosting The boosting of this
VectorScoringConfigurationinstance.
-
setBoosting
Set the boosting of thisVectorScoringConfigurationinstance.- Parameters:
boosting- The boosting of thisVectorScoringConfiguration
-
scoreThreshold
Set the scoreThreshold of thisVectorScoringConfigurationinstance and return the same instance.- Parameters:
scoreThreshold- Minimum chunk score threshold.- Returns:
- The same instance of this
VectorScoringConfigurationclass
-
getScoreThreshold
Minimum chunk score threshold.- Returns:
- scoreThreshold The scoreThreshold of this
VectorScoringConfigurationinstance.
-
setScoreThreshold
Set the scoreThreshold of thisVectorScoringConfigurationinstance.- Parameters:
scoreThreshold- Minimum chunk score threshold.
-
aggregationStrategy
@Nonnull public VectorScoringConfiguration aggregationStrategy(@Nullable ScoresAggregationStrategy aggregationStrategy) Set the aggregationStrategy of thisVectorScoringConfigurationinstance and return the same instance.- Parameters:
aggregationStrategy- The aggregationStrategy of thisVectorScoringConfiguration- Returns:
- The same instance of this
VectorScoringConfigurationclass
-
getAggregationStrategy
Get aggregationStrategy- Returns:
- aggregationStrategy The aggregationStrategy of this
VectorScoringConfigurationinstance.
-
setAggregationStrategy
Set the aggregationStrategy of thisVectorScoringConfigurationinstance.- Parameters:
aggregationStrategy- The aggregationStrategy of thisVectorScoringConfiguration
-
getCustomFieldNames
Get the names of the unrecognizable properties of theVectorScoringConfiguration.- 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 thisVectorScoringConfigurationinstance.- 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 thisVectorScoringConfigurationinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisVectorScoringConfigurationinstance. 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 newVectorScoringConfigurationinstance. No arguments are required.
-
toMap()instead.