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