Package com.sap.ai.sdk.grounding.model
Class SearchScores
java.lang.Object
com.sap.ai.sdk.grounding.model.SearchScores
SearchScores
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaggregatedScore(SearchScoresAggregatedScore aggregatedScore) Set the aggregatedScore of thisSearchScoresinstance and return the same instance.static SearchScores.Buildercreate()Create a type-safe, fluent-api builder object to construct a newSearchScoresinstance with all required arguments.denseRetrievalScore(SearchScoresAggregatedScore denseRetrievalScore) Set the denseRetrievalScore of thisSearchScoresinstance and return the same instance.booleanGet aggregatedScoregetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theSearchScores.Get denseRetrievalScoreinthashCode()voidsetAggregatedScore(SearchScoresAggregatedScore aggregatedScore) Set the aggregatedScore of thisSearchScoresinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisSearchScoresinstance.voidsetDenseRetrievalScore(SearchScoresAggregatedScore denseRetrievalScore) Set the denseRetrievalScore of thisSearchScoresinstance.toMap()Get the value of all properties of thisSearchScoresinstance including unrecognized properties.toString()
-
Constructor Details
-
SearchScores
protected SearchScores()Default constructor for SearchScores.
-
-
Method Details
-
aggregatedScore
Set the aggregatedScore of thisSearchScoresinstance and return the same instance.- Parameters:
aggregatedScore- The aggregatedScore of thisSearchScores- Returns:
- The same instance of this
SearchScoresclass
-
getAggregatedScore
Get aggregatedScore- Returns:
- aggregatedScore The aggregatedScore of this
SearchScoresinstance.
-
setAggregatedScore
Set the aggregatedScore of thisSearchScoresinstance.- Parameters:
aggregatedScore- The aggregatedScore of thisSearchScores
-
denseRetrievalScore
@Nonnull public SearchScores denseRetrievalScore(@Nonnull SearchScoresAggregatedScore denseRetrievalScore) Set the denseRetrievalScore of thisSearchScoresinstance and return the same instance.- Parameters:
denseRetrievalScore- The denseRetrievalScore of thisSearchScores- Returns:
- The same instance of this
SearchScoresclass
-
getDenseRetrievalScore
Get denseRetrievalScore- Returns:
- denseRetrievalScore The denseRetrievalScore of this
SearchScoresinstance.
-
setDenseRetrievalScore
Set the denseRetrievalScore of thisSearchScoresinstance.- Parameters:
denseRetrievalScore- The denseRetrievalScore of thisSearchScores
-
getCustomFieldNames
Get the names of the unrecognizable properties of theSearchScores.- 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 thisSearchScoresinstance.- 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 thisSearchScoresinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisSearchScoresinstance. 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 type-safe, fluent-api builder object to construct a newSearchScoresinstance with all required arguments.
-
toMap()instead.