Class DocumentGroundingFilter
java.lang.Object
com.sap.ai.sdk.orchestration.model.DocumentGroundingFilter
- All Implemented Interfaces:
GroundingModuleConfigConfigFiltersInner
public class DocumentGroundingFilter
extends Object
implements GroundingModuleConfigConfigFiltersInner
DocumentGroundingFilter
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for DocumentGroundingFilter. -
Method Summary
Modifier and TypeMethodDescriptionaddChunkMetadataItem(KeyValueListPair chunkMetadataItem) Add one chunkMetadata instance to thisDocumentGroundingFilter.addDataRepositoriesItem(String dataRepositoriesItem) Add one dataRepositories instance to thisDocumentGroundingFilter.addDataRepositoryMetadataItem(KeyValueListPair dataRepositoryMetadataItem) Add one dataRepositoryMetadata instance to thisDocumentGroundingFilter.addDocumentMetadataItem(SearchDocumentKeyValueListPair documentMetadataItem) Add one documentMetadata instance to thisDocumentGroundingFilter.chunkMetadata(List<KeyValueListPair> chunkMetadata) Set the chunkMetadata of thisDocumentGroundingFilterinstance and return the same instance.create()Create a type-safe, fluent-api builder object to construct a newDocumentGroundingFilterinstance with all required arguments.dataRepositories(List<String> dataRepositories) Set the dataRepositories of thisDocumentGroundingFilterinstance and return the same instance.dataRepositoryMetadata(List<KeyValueListPair> dataRepositoryMetadata) Set the dataRepositoryMetadata of thisDocumentGroundingFilterinstance and return the same instance.dataRepositoryType(DataRepositoryType dataRepositoryType) Set the dataRepositoryType of thisDocumentGroundingFilterinstance and return the same instance.documentMetadata(List<SearchDocumentKeyValueListPair> documentMetadata) Set the documentMetadata of thisDocumentGroundingFilterinstance and return the same instance.booleanRestrict chunks considered during search to those with the given metadata.getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theDocumentGroundingFilter.Specify ['*'] to search across all DataRepositories or give a specific list of DataRepository ids.Restrict DataRepositories considered during search to those annotated with the given metadata.Get dataRepositoryTypeRestrict documents considered during search to those annotated with the given metadata.getId()Identifier of this SearchFilter - unique per request.Get searchConfiginthashCode()Set the id of thisDocumentGroundingFilterinstance and return the same instance.searchConfig(GroundingFilterSearchConfiguration searchConfig) Set the searchConfig of thisDocumentGroundingFilterinstance and return the same instance.voidsetChunkMetadata(List<KeyValueListPair> chunkMetadata) Set the chunkMetadata of thisDocumentGroundingFilterinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisDocumentGroundingFilterinstance.voidsetDataRepositories(List<String> dataRepositories) Set the dataRepositories of thisDocumentGroundingFilterinstance.voidsetDataRepositoryMetadata(List<KeyValueListPair> dataRepositoryMetadata) Set the dataRepositoryMetadata of thisDocumentGroundingFilterinstance.voidsetDataRepositoryType(DataRepositoryType dataRepositoryType) Set the dataRepositoryType of thisDocumentGroundingFilterinstance.voidsetDocumentMetadata(List<SearchDocumentKeyValueListPair> documentMetadata) Set the documentMetadata of thisDocumentGroundingFilterinstance.voidSet the id of thisDocumentGroundingFilterinstance.voidsetSearchConfig(GroundingFilterSearchConfiguration searchConfig) Set the searchConfig of thisDocumentGroundingFilterinstance.toMap()Get the value of all properties of thisDocumentGroundingFilterinstance including unrecognized properties.toString()
-
Constructor Details
-
DocumentGroundingFilter
protected DocumentGroundingFilter()Default constructor for DocumentGroundingFilter.
-
-
Method Details
-
id
Set the id of thisDocumentGroundingFilterinstance and return the same instance.- Parameters:
id- Identifier of this SearchFilter - unique per request.- Returns:
- The same instance of this
DocumentGroundingFilterclass
-
getId
Identifier of this SearchFilter - unique per request.- Returns:
- id The id of this
DocumentGroundingFilterinstance.
-
setId
Set the id of thisDocumentGroundingFilterinstance.- Parameters:
id- Identifier of this SearchFilter - unique per request.
-
searchConfig
@Nonnull public DocumentGroundingFilter searchConfig(@Nullable GroundingFilterSearchConfiguration searchConfig) Set the searchConfig of thisDocumentGroundingFilterinstance and return the same instance.- Parameters:
searchConfig- The searchConfig of thisDocumentGroundingFilter- Returns:
- The same instance of this
DocumentGroundingFilterclass
-
getSearchConfig
Get searchConfig- Returns:
- searchConfig The searchConfig of this
DocumentGroundingFilterinstance.
-
setSearchConfig
Set the searchConfig of thisDocumentGroundingFilterinstance.- Parameters:
searchConfig- The searchConfig of thisDocumentGroundingFilter
-
dataRepositories
Set the dataRepositories of thisDocumentGroundingFilterinstance and return the same instance.- Parameters:
dataRepositories- Specify ['*'] to search across all DataRepositories or give a specific list of DataRepository ids.- Returns:
- The same instance of this
DocumentGroundingFilterclass
-
addDataRepositoriesItem
@Nonnull public DocumentGroundingFilter addDataRepositoriesItem(@Nonnull String dataRepositoriesItem) Add one dataRepositories instance to thisDocumentGroundingFilter.- Parameters:
dataRepositoriesItem- The dataRepositories that should be added- Returns:
- The same instance of type
DocumentGroundingFilter
-
getDataRepositories
Specify ['*'] to search across all DataRepositories or give a specific list of DataRepository ids.- Returns:
- dataRepositories The dataRepositories of this
DocumentGroundingFilterinstance.
-
setDataRepositories
Set the dataRepositories of thisDocumentGroundingFilterinstance.- Parameters:
dataRepositories- Specify ['*'] to search across all DataRepositories or give a specific list of DataRepository ids.
-
dataRepositoryType
@Nonnull public DocumentGroundingFilter dataRepositoryType(@Nonnull DataRepositoryType dataRepositoryType) Set the dataRepositoryType of thisDocumentGroundingFilterinstance and return the same instance.- Parameters:
dataRepositoryType- The dataRepositoryType of thisDocumentGroundingFilter- Returns:
- The same instance of this
DocumentGroundingFilterclass
-
getDataRepositoryType
Get dataRepositoryType- Returns:
- dataRepositoryType The dataRepositoryType of this
DocumentGroundingFilterinstance.
-
setDataRepositoryType
Set the dataRepositoryType of thisDocumentGroundingFilterinstance.- Parameters:
dataRepositoryType- The dataRepositoryType of thisDocumentGroundingFilter
-
dataRepositoryMetadata
@Nonnull public DocumentGroundingFilter dataRepositoryMetadata(@Nullable List<KeyValueListPair> dataRepositoryMetadata) Set the dataRepositoryMetadata of thisDocumentGroundingFilterinstance and return the same instance.- Parameters:
dataRepositoryMetadata- Restrict DataRepositories considered during search to those annotated with the given metadata. Useful when combined with dataRepositories=['*']- Returns:
- The same instance of this
DocumentGroundingFilterclass
-
addDataRepositoryMetadataItem
@Nonnull public DocumentGroundingFilter addDataRepositoryMetadataItem(@Nonnull KeyValueListPair dataRepositoryMetadataItem) Add one dataRepositoryMetadata instance to thisDocumentGroundingFilter.- Parameters:
dataRepositoryMetadataItem- The dataRepositoryMetadata that should be added- Returns:
- The same instance of type
DocumentGroundingFilter
-
getDataRepositoryMetadata
Restrict DataRepositories considered during search to those annotated with the given metadata. Useful when combined with dataRepositories=['*']- Returns:
- dataRepositoryMetadata The dataRepositoryMetadata of this
DocumentGroundingFilterinstance.
-
setDataRepositoryMetadata
Set the dataRepositoryMetadata of thisDocumentGroundingFilterinstance.- Parameters:
dataRepositoryMetadata- Restrict DataRepositories considered during search to those annotated with the given metadata. Useful when combined with dataRepositories=['*']
-
documentMetadata
@Nonnull public DocumentGroundingFilter documentMetadata(@Nullable List<SearchDocumentKeyValueListPair> documentMetadata) Set the documentMetadata of thisDocumentGroundingFilterinstance and return the same instance.- Parameters:
documentMetadata- Restrict documents considered during search to those annotated with the given metadata.- Returns:
- The same instance of this
DocumentGroundingFilterclass
-
addDocumentMetadataItem
@Nonnull public DocumentGroundingFilter addDocumentMetadataItem(@Nonnull SearchDocumentKeyValueListPair documentMetadataItem) Add one documentMetadata instance to thisDocumentGroundingFilter.- Parameters:
documentMetadataItem- The documentMetadata that should be added- Returns:
- The same instance of type
DocumentGroundingFilter
-
getDocumentMetadata
Restrict documents considered during search to those annotated with the given metadata.- Returns:
- documentMetadata The documentMetadata of this
DocumentGroundingFilterinstance.
-
setDocumentMetadata
Set the documentMetadata of thisDocumentGroundingFilterinstance.- Parameters:
documentMetadata- Restrict documents considered during search to those annotated with the given metadata.
-
chunkMetadata
@Nonnull public DocumentGroundingFilter chunkMetadata(@Nullable List<KeyValueListPair> chunkMetadata) Set the chunkMetadata of thisDocumentGroundingFilterinstance and return the same instance.- Parameters:
chunkMetadata- Restrict chunks considered during search to those with the given metadata.- Returns:
- The same instance of this
DocumentGroundingFilterclass
-
addChunkMetadataItem
@Nonnull public DocumentGroundingFilter addChunkMetadataItem(@Nonnull KeyValueListPair chunkMetadataItem) Add one chunkMetadata instance to thisDocumentGroundingFilter.- Parameters:
chunkMetadataItem- The chunkMetadata that should be added- Returns:
- The same instance of type
DocumentGroundingFilter
-
getChunkMetadata
Restrict chunks considered during search to those with the given metadata.- Returns:
- chunkMetadata The chunkMetadata of this
DocumentGroundingFilterinstance.
-
setChunkMetadata
Set the chunkMetadata of thisDocumentGroundingFilterinstance.- Parameters:
chunkMetadata- Restrict chunks considered during search to those with the given metadata.
-
getCustomFieldNames
Get the names of the unrecognizable properties of theDocumentGroundingFilter.- 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 thisDocumentGroundingFilterinstance.- 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 thisDocumentGroundingFilterinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisDocumentGroundingFilterinstance. 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 newDocumentGroundingFilterinstance with all required arguments.
-
toMap()instead.