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