Class GuardrailContextualGroundingFilter
The details for the guardrails contextual grounding filter.
Inherited Members
Namespace: Glitch9.AIDevKit.AmazonAws
Assembly: Glitch9.AIDevKit.Provider.AmazonAws.dll
Syntax
public class GuardrailContextualGroundingFilter
Properties
| Edit this page View SourceAction
Required. The action performed by the guardrails contextual grounding filter. Valid Values: BLOCKED | NONE
Declaration
[JsonProperty("action")]
public string Action { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Detected
Optional. Indicates whether content that fails the contextual grounding evaluation (grounding or relevance score less than the corresponding threshold) was detected.
Declaration
[JsonProperty("detected")]
public bool? Detected { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
Score
Required. The score generated by contextual grounding filter.
Declaration
[JsonProperty("score")]
public double Score { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Threshold
Required. The threshold used by contextual grounding filter to determine whether the content is grounded or not.
Declaration
[JsonProperty("threshold")]
public double Threshold { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Type
Required. The contextual grounding filter type. Valid Values: GROUNDING | RELEVANCE
Declaration
[JsonProperty("type")]
public string Type { get; set; }
Property Value
| Type | Description |
|---|---|
| string |