AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Specifies the filters to use on the metadata attributes in the knowledge base data sources before returning results. For more information, see Query configurations. See the examples below to see how to use these filters.
This data type is used in the following API operations:
Retrieve
request – in the filter
field
RetrieveAndGenerate
request – in the filter
field
Namespace: Amazon.BedrockAgentRuntime.Model
Assembly: AWSSDK.BedrockAgentRuntime.dll
Version: 3.x.y.z
public class RetrievalFilter
The RetrievalFilter type exposes the following members
Name | Description | |
---|---|---|
![]() |
RetrievalFilter() |
Name | Type | Description | |
---|---|---|---|
![]() |
AndAll | System.Collections.Generic.List<Amazon.BedrockAgentRuntime.Model.RetrievalFilter> |
Gets and sets the property AndAll. Knowledge base data sources are returned if their metadata attributes fulfill all the filter conditions inside this list. |
![]() |
Equals | Amazon.BedrockAgentRuntime.Model.FilterAttribute |
Gets and sets the property Equals.
Knowledge base data sources are returned if they contain a metadata attribute whose
name matches the
The following example would return data sources with an
|
![]() |
GreaterThan | Amazon.BedrockAgentRuntime.Model.FilterAttribute |
Gets and sets the property GreaterThan.
Knowledge base data sources are returned if they contain a metadata attribute whose
name matches the
The following example would return data sources with an
|
![]() |
GreaterThanOrEquals | Amazon.BedrockAgentRuntime.Model.FilterAttribute |
Gets and sets the property GreaterThanOrEquals.
Knowledge base data sources are returned if they contain a metadata attribute whose
name matches the
The following example would return data sources with an
|
![]() |
In | Amazon.BedrockAgentRuntime.Model.FilterAttribute |
Gets and sets the property In.
Knowledge base data sources are returned if they contain a metadata attribute whose
name matches the
The following example would return data sources with an
|
![]() |
LessThan | Amazon.BedrockAgentRuntime.Model.FilterAttribute |
Gets and sets the property LessThan.
Knowledge base data sources are returned if they contain a metadata attribute whose
name matches the
The following example would return data sources with an
|
![]() |
LessThanOrEquals | Amazon.BedrockAgentRuntime.Model.FilterAttribute |
Gets and sets the property LessThanOrEquals.
Knowledge base data sources are returned if they contain a metadata attribute whose
name matches the
The following example would return data sources with an
|
![]() |
ListContains | Amazon.BedrockAgentRuntime.Model.FilterAttribute |
Gets and sets the property ListContains.
Knowledge base data sources are returned if they contain a metadata attribute whose
name matches the
The following example would return data sources with an
|
![]() |
NotEquals | Amazon.BedrockAgentRuntime.Model.FilterAttribute |
Gets and sets the property NotEquals. Knowledge base data sources are returned when:
The following example would return data sources that don't contain an
|
![]() |
NotIn | Amazon.BedrockAgentRuntime.Model.FilterAttribute |
Gets and sets the property NotIn.
Knowledge base data sources are returned if they contain a metadata attribute whose
name matches the
The following example would return data sources whose
|
![]() |
OrAll | System.Collections.Generic.List<Amazon.BedrockAgentRuntime.Model.RetrievalFilter> |
Gets and sets the property OrAll. Knowledge base data sources are returned if their metadata attributes fulfill at least one of the filter conditions inside this list. |
![]() |
StartsWith | Amazon.BedrockAgentRuntime.Model.FilterAttribute |
Gets and sets the property StartsWith.
Knowledge base data sources are returned if they contain a metadata attribute whose
name matches the
The following example would return data sources with an
|
![]() |
StringContains | Amazon.BedrockAgentRuntime.Model.FilterAttribute |
Gets and sets the property StringContains.
Knowledge base data sources are returned if they contain a metadata attribute whose
name matches the
|
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5