You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/guardrails/components/CreateGuardrailModal.jsx
return`Auto-detect from traffic, Confidence: ${basePromptConfidenceScore.toFixed(2)}`;
14
+
}
15
+
};
16
+
17
+
constBasePromptStep=({
18
+
enableBasePromptRule,
19
+
setEnableBasePromptRule,
20
+
basePromptConfidenceScore,
21
+
setBasePromptConfidenceScore
22
+
})=>{
23
+
return(
24
+
<VerticalStackgap="4">
25
+
<Textvariant="bodyMd"tone="subdued">
26
+
Verify if agent requests match the intent of the base prompt. The base prompt is automatically detected from traffic, and user inputs filling placeholders like {`{var}`} or {`{}`} are checked against this intent.
27
+
</Text>
28
+
29
+
<FormLayout>
30
+
<Checkbox
31
+
label="Enable agent intent verification"
32
+
checked={enableBasePromptRule}
33
+
onChange={setEnableBasePromptRule}
34
+
/>
35
+
36
+
{enableBasePromptRule&&(
37
+
<Box>
38
+
<BoxpaddingBlockStart="2">
39
+
<RangeSlider
40
+
label="Confidence Threshold"
41
+
value={basePromptConfidenceScore}
42
+
min={0}
43
+
max={1}
44
+
step={0.1}
45
+
output
46
+
onChange={setBasePromptConfidenceScore}
47
+
helpText="Set the confidence threshold (0-1). Higher values require more confidence to block content."
Copy file name to clipboardExpand all lines: apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/guardrails/components/steps/ExternalModelStep.jsx
Copy file name to clipboardExpand all lines: apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/guardrails/components/steps/ServerSettingsStep.jsx
0 commit comments