Package com.sap.ai.sdk.grounding.model
Class SearchConfiguration
java.lang.Object
com.sap.ai.sdk.grounding.model.SearchConfiguration
SearchConfiguration
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for SearchConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchConfigurationcreate()Create a newSearchConfigurationinstance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theSearchConfiguration.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 thisSearchConfigurationinstance and return the same instance.maxDocumentCount(Integer maxDocumentCount) Set the maxDocumentCount of thisSearchConfigurationinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisSearchConfigurationinstance.voidsetMaxChunkCount(Integer maxChunkCount) Set the maxChunkCount of thisSearchConfigurationinstance.voidsetMaxDocumentCount(Integer maxDocumentCount) Set the maxDocumentCount of thisSearchConfigurationinstance.toMap()Get the value of all properties of thisSearchConfigurationinstance including unrecognized properties.toString()
-
Constructor Details
-
SearchConfiguration
protected SearchConfiguration()Default constructor for SearchConfiguration.
-
-
Method Details
-
maxChunkCount
Set the maxChunkCount of thisSearchConfigurationinstance and return the same instance.- Parameters:
maxChunkCount- Maximum number of chunks to be returned. Cannot be used with 'maxDocumentCount'. Minimum: 0 Maximum: 0- Returns:
- The same instance of this
SearchConfigurationclass
-
getMaxChunkCount
Maximum number of chunks to be returned. Cannot be used with 'maxDocumentCount'. minimum: 0 maximum: 0- Returns:
- maxChunkCount The maxChunkCount of this
SearchConfigurationinstance.
-
setMaxChunkCount
Set the maxChunkCount of thisSearchConfigurationinstance.- Parameters:
maxChunkCount- Maximum number of chunks to be returned. Cannot be used with 'maxDocumentCount'. Minimum: 0 Maximum: 0
-
maxDocumentCount
Set the maxDocumentCount of thisSearchConfigurationinstance 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 Maximum: 0- Returns:
- The same instance of this
SearchConfigurationclass
-
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 maximum: 0- Returns:
- maxDocumentCount The maxDocumentCount of this
SearchConfigurationinstance.
-
setMaxDocumentCount
Set the maxDocumentCount of thisSearchConfigurationinstance.- 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 Maximum: 0
-
getCustomFieldNames
Get the names of the unrecognizable properties of theSearchConfiguration.- 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 thisSearchConfigurationinstance.- 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 thisSearchConfigurationinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisSearchConfigurationinstance. 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 newSearchConfigurationinstance. No arguments are required.
-
toMap()instead.