Class GroundingFilterSearchConfiguration
java.lang.Object
com.sap.ai.sdk.orchestration.model.GroundingFilterSearchConfiguration
GroundingFilterSearchConfiguration
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for GroundingFilterSearchConfiguration. -
Method Summary
Modifier and TypeMethodDescriptioncreate()Create a newGroundingFilterSearchConfigurationinstance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theGroundingFilterSearchConfiguration.Maximum number of chunks to be returned.[Only supports 'vector' dataRepositoryType] - Maximum number of documents to be returned.inthashCode()maxChunkCount(Integer maxChunkCount) Set the maxChunkCount of thisGroundingFilterSearchConfigurationinstance and return the same instance.maxDocumentCount(Integer maxDocumentCount) Set the maxDocumentCount of thisGroundingFilterSearchConfigurationinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisGroundingFilterSearchConfigurationinstance.voidsetMaxChunkCount(Integer maxChunkCount) Set the maxChunkCount of thisGroundingFilterSearchConfigurationinstance.voidsetMaxDocumentCount(Integer maxDocumentCount) Set the maxDocumentCount of thisGroundingFilterSearchConfigurationinstance.toMap()Get the value of all properties of thisGroundingFilterSearchConfigurationinstance including unrecognized properties.toString()
-
Constructor Details
-
GroundingFilterSearchConfiguration
protected GroundingFilterSearchConfiguration()Default constructor for GroundingFilterSearchConfiguration.
-
-
Method Details
-
maxChunkCount
Set the maxChunkCount of thisGroundingFilterSearchConfigurationinstance and return the same instance.- Parameters:
maxChunkCount- Maximum number of chunks to be returned. Cannot be used with 'maxDocumentCount'. Minimum: 0- Returns:
- The same instance of this
GroundingFilterSearchConfigurationclass
-
getMaxChunkCount
Maximum number of chunks to be returned. Cannot be used with 'maxDocumentCount'. minimum: 0- Returns:
- maxChunkCount The maxChunkCount of this
GroundingFilterSearchConfigurationinstance.
-
setMaxChunkCount
Set the maxChunkCount of thisGroundingFilterSearchConfigurationinstance.- Parameters:
maxChunkCount- Maximum number of chunks to be returned. Cannot be used with 'maxDocumentCount'. Minimum: 0
-
maxDocumentCount
@Nonnull public GroundingFilterSearchConfiguration maxDocumentCount(@Nullable Integer maxDocumentCount) Set the maxDocumentCount of thisGroundingFilterSearchConfigurationinstance and return the same instance.- Parameters:
maxDocumentCount- [Only supports 'vector' dataRepositoryType] - Maximum number of documents to be returned. Cannot be used with 'maxChunkCount'. If maxDocumentCount is given, then only one chunk per document is returned. Minimum: 0- Returns:
- The same instance of this
GroundingFilterSearchConfigurationclass
-
getMaxDocumentCount
[Only supports 'vector' dataRepositoryType] - Maximum number of documents to be returned. Cannot be used with 'maxChunkCount'. If maxDocumentCount is given, then only one chunk per document is returned. minimum: 0- Returns:
- maxDocumentCount The maxDocumentCount of this
GroundingFilterSearchConfigurationinstance.
-
setMaxDocumentCount
Set the maxDocumentCount of thisGroundingFilterSearchConfigurationinstance.- Parameters:
maxDocumentCount- [Only supports 'vector' dataRepositoryType] - Maximum number of documents to be returned. Cannot be used with 'maxChunkCount'. If maxDocumentCount is given, then only one chunk per document is returned. Minimum: 0
-
getCustomFieldNames
Get the names of the unrecognizable properties of theGroundingFilterSearchConfiguration.- 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 thisGroundingFilterSearchConfigurationinstance.- 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 thisGroundingFilterSearchConfigurationinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisGroundingFilterSearchConfigurationinstance. 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 newGroundingFilterSearchConfigurationinstance. No arguments are required.
-
toMap()instead.