Package com.sap.ai.sdk.grounding.model
Class FiltersInner
java.lang.Object
com.sap.ai.sdk.grounding.model.FiltersInner
FiltersInner
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddChunkMetadataItem(RetrievalKeyValueListPair chunkMetadataItem) Add one chunkMetadata instance to thisFiltersInner.addDataRepositoriesItem(String dataRepositoriesItem) Add one dataRepositories instance to thisFiltersInner.addDataRepositoryMetadataItem(RetrievalKeyValueListPair dataRepositoryMetadataItem) Add one dataRepositoryMetadata instance to thisFiltersInner.addDocumentMetadataItem(RetrievalSearchDocumentKeyValueListPair documentMetadataItem) Add one documentMetadata instance to thisFiltersInner.chunkMetadata(List<RetrievalKeyValueListPair> chunkMetadata) Set the chunkMetadata of thisFiltersInnerinstance and return the same instance.static FiltersInner.Buildercreate()Create a type-safe, fluent-api builder object to construct a newFiltersInnerinstance with all required arguments.dataRepositories(List<String> dataRepositories) Set the dataRepositories of thisFiltersInnerinstance and return the same instance.dataRepositoryMetadata(List<RetrievalKeyValueListPair> dataRepositoryMetadata) Set the dataRepositoryMetadata of thisFiltersInnerinstance and return the same instance.dataRepositoryType(DataRepositoryType dataRepositoryType) Set the dataRepositoryType of thisFiltersInnerinstance and return the same instance.documentMetadata(List<RetrievalSearchDocumentKeyValueListPair> documentMetadata) Set the documentMetadata of thisFiltersInnerinstance and return the same instance.booleanSet the filter of thisFiltersInnerinstance and return the same instance.Restrict chunks considered during search to those with the given metadata.getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theFiltersInner.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.Get filtergetId()Identifier of this RetrievalSearchFilter - unique per request.Destination Name of remote instance.Get scoringConfigurationGet searchConfigurationinthashCode()Set the id of thisFiltersInnerinstance and return the same instance.remoteName(String remoteName) Set the remoteName of thisFiltersInnerinstance and return the same instance.scoringConfiguration(VectorScoringConfiguration scoringConfiguration) Set the scoringConfiguration of thisFiltersInnerinstance and return the same instance.searchConfiguration(RetrievalSearchConfiguration searchConfiguration) Set the searchConfiguration of thisFiltersInnerinstance and return the same instance.voidsetChunkMetadata(List<RetrievalKeyValueListPair> chunkMetadata) Set the chunkMetadata of thisFiltersInnerinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisFiltersInnerinstance.voidsetDataRepositories(List<String> dataRepositories) Set the dataRepositories of thisFiltersInnerinstance.voidsetDataRepositoryMetadata(List<RetrievalKeyValueListPair> dataRepositoryMetadata) Set the dataRepositoryMetadata of thisFiltersInnerinstance.voidsetDataRepositoryType(DataRepositoryType dataRepositoryType) Set the dataRepositoryType of thisFiltersInnerinstance.voidsetDocumentMetadata(List<RetrievalSearchDocumentKeyValueListPair> documentMetadata) Set the documentMetadata of thisFiltersInnerinstance.voidSet the filter of thisFiltersInnerinstance.voidSet the id of thisFiltersInnerinstance.voidsetRemoteName(String remoteName) Set the remoteName of thisFiltersInnerinstance.voidsetScoringConfiguration(VectorScoringConfiguration scoringConfiguration) Set the scoringConfiguration of thisFiltersInnerinstance.voidsetSearchConfiguration(RetrievalSearchConfiguration searchConfiguration) Set the searchConfiguration of thisFiltersInnerinstance.toMap()Get the value of all properties of thisFiltersInnerinstance including unrecognized properties.toString()
-
Constructor Details
-
FiltersInner
protected FiltersInner()Default constructor for FiltersInner.
-
-
Method Details
-
id
Set the id of thisFiltersInnerinstance and return the same instance.- Parameters:
id- Identifier of this RetrievalSearchFilter - unique per request.- Returns:
- The same instance of this
FiltersInnerclass
-
getId
Identifier of this RetrievalSearchFilter - unique per request.- Returns:
- id The id of this
FiltersInnerinstance.
-
setId
Set the id of thisFiltersInnerinstance.- Parameters:
id- Identifier of this RetrievalSearchFilter - unique per request.
-
searchConfiguration
@Nonnull public FiltersInner searchConfiguration(@Nullable RetrievalSearchConfiguration searchConfiguration) Set the searchConfiguration of thisFiltersInnerinstance and return the same instance.- Parameters:
searchConfiguration- The searchConfiguration of thisFiltersInner- Returns:
- The same instance of this
FiltersInnerclass
-
getSearchConfiguration
Get searchConfiguration- Returns:
- searchConfiguration The searchConfiguration of this
FiltersInnerinstance.
-
setSearchConfiguration
Set the searchConfiguration of thisFiltersInnerinstance.- Parameters:
searchConfiguration- The searchConfiguration of thisFiltersInner
-
dataRepositories
Set the dataRepositories of thisFiltersInnerinstance 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
FiltersInnerclass
-
addDataRepositoriesItem
Add one dataRepositories instance to thisFiltersInner.- Parameters:
dataRepositoriesItem- The dataRepositories that should be added- Returns:
- The same instance of type
FiltersInner
-
getDataRepositories
Specify ['*'] to search across all DataRepositories or give a specific list of DataRepository ids.- Returns:
- dataRepositories The dataRepositories of this
FiltersInnerinstance.
-
setDataRepositories
Set the dataRepositories of thisFiltersInnerinstance.- Parameters:
dataRepositories- Specify ['*'] to search across all DataRepositories or give a specific list of DataRepository ids.
-
dataRepositoryType
Set the dataRepositoryType of thisFiltersInnerinstance and return the same instance.- Parameters:
dataRepositoryType- The dataRepositoryType of thisFiltersInner- Returns:
- The same instance of this
FiltersInnerclass
-
getDataRepositoryType
Get dataRepositoryType- Returns:
- dataRepositoryType The dataRepositoryType of this
FiltersInnerinstance.
-
setDataRepositoryType
Set the dataRepositoryType of thisFiltersInnerinstance.- Parameters:
dataRepositoryType- The dataRepositoryType of thisFiltersInner
-
remoteName
Set the remoteName of thisFiltersInnerinstance and return the same instance.- Parameters:
remoteName- Destination Name of remote instance.- Returns:
- The same instance of this
FiltersInnerclass
-
getRemoteName
Destination Name of remote instance.- Returns:
- remoteName The remoteName of this
FiltersInnerinstance.
-
setRemoteName
Set the remoteName of thisFiltersInnerinstance.- Parameters:
remoteName- Destination Name of remote instance.
-
dataRepositoryMetadata
@Nonnull public FiltersInner dataRepositoryMetadata(@Nullable List<RetrievalKeyValueListPair> dataRepositoryMetadata) Set the dataRepositoryMetadata of thisFiltersInnerinstance 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
FiltersInnerclass
-
addDataRepositoryMetadataItem
@Nonnull public FiltersInner addDataRepositoryMetadataItem(@Nonnull RetrievalKeyValueListPair dataRepositoryMetadataItem) Add one dataRepositoryMetadata instance to thisFiltersInner.- Parameters:
dataRepositoryMetadataItem- The dataRepositoryMetadata that should be added- Returns:
- The same instance of type
FiltersInner
-
getDataRepositoryMetadata
Restrict DataRepositories considered during search to those annotated with the given metadata. Useful when combined with dataRepositories=['*']- Returns:
- dataRepositoryMetadata The dataRepositoryMetadata of this
FiltersInnerinstance.
-
setDataRepositoryMetadata
public void setDataRepositoryMetadata(@Nullable List<RetrievalKeyValueListPair> dataRepositoryMetadata) Set the dataRepositoryMetadata of thisFiltersInnerinstance.- Parameters:
dataRepositoryMetadata- Restrict DataRepositories considered during search to those annotated with the given metadata. Useful when combined with dataRepositories=['*']
-
documentMetadata
@Nonnull public FiltersInner documentMetadata(@Nullable List<RetrievalSearchDocumentKeyValueListPair> documentMetadata) Set the documentMetadata of thisFiltersInnerinstance 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
FiltersInnerclass
-
addDocumentMetadataItem
@Nonnull public FiltersInner addDocumentMetadataItem(@Nonnull RetrievalSearchDocumentKeyValueListPair documentMetadataItem) Add one documentMetadata instance to thisFiltersInner.- Parameters:
documentMetadataItem- The documentMetadata that should be added- Returns:
- The same instance of type
FiltersInner
-
getDocumentMetadata
Restrict documents considered during search to those annotated with the given metadata.- Returns:
- documentMetadata The documentMetadata of this
FiltersInnerinstance.
-
setDocumentMetadata
public void setDocumentMetadata(@Nullable List<RetrievalSearchDocumentKeyValueListPair> documentMetadata) Set the documentMetadata of thisFiltersInnerinstance.- Parameters:
documentMetadata- Restrict documents considered during search to those annotated with the given metadata.
-
chunkMetadata
Set the chunkMetadata of thisFiltersInnerinstance and return the same instance.- Parameters:
chunkMetadata- Restrict chunks considered during search to those with the given metadata.- Returns:
- The same instance of this
FiltersInnerclass
-
addChunkMetadataItem
@Nonnull public FiltersInner addChunkMetadataItem(@Nonnull RetrievalKeyValueListPair chunkMetadataItem) Add one chunkMetadata instance to thisFiltersInner.- Parameters:
chunkMetadataItem- The chunkMetadata that should be added- Returns:
- The same instance of type
FiltersInner
-
getChunkMetadata
Restrict chunks considered during search to those with the given metadata.- Returns:
- chunkMetadata The chunkMetadata of this
FiltersInnerinstance.
-
setChunkMetadata
Set the chunkMetadata of thisFiltersInnerinstance.- Parameters:
chunkMetadata- Restrict chunks considered during search to those with the given metadata.
-
filter
Set the filter of thisFiltersInnerinstance and return the same instance.- Parameters:
filter- The filter of thisFiltersInner- Returns:
- The same instance of this
FiltersInnerclass
-
getFilter
Get filter- Returns:
- filter The filter of this
FiltersInnerinstance.
-
setFilter
Set the filter of thisFiltersInnerinstance.- Parameters:
filter- The filter of thisFiltersInner
-
scoringConfiguration
@Nonnull public FiltersInner scoringConfiguration(@Nullable VectorScoringConfiguration scoringConfiguration) Set the scoringConfiguration of thisFiltersInnerinstance and return the same instance.- Parameters:
scoringConfiguration- The scoringConfiguration of thisFiltersInner- Returns:
- The same instance of this
FiltersInnerclass
-
getScoringConfiguration
Get scoringConfiguration- Returns:
- scoringConfiguration The scoringConfiguration of this
FiltersInnerinstance.
-
setScoringConfiguration
Set the scoringConfiguration of thisFiltersInnerinstance.- Parameters:
scoringConfiguration- The scoringConfiguration of thisFiltersInner
-
getCustomFieldNames
Get the names of the unrecognizable properties of theFiltersInner.- 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 thisFiltersInnerinstance.- 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 thisFiltersInnerinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisFiltersInnerinstance. 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 newFiltersInnerinstance with all required arguments.
-
toMap()instead.