Duaer

Integrations

Use Guardrails in Duaer

In Duaer, Guardrails is an AI root node: safeguard AI models from malicious input or prevent them from generating undesirable responses. It takes Chat Model sub-nodes.

Add Guardrails to a Duaer workflow

  1. On the Duaer canvas, open the node panel, search for Guardrails, and connect it after the previous node.
  2. Connect the sub-nodes it needs to the inputs under Guardrails (Chat Model), starting with a Chat Model.
  3. Pick an Operation, for example Check Text for Violations.
  4. Select Execute step and check the output.

Guardrails operations in Duaer

  • Check Text for Violations: Validate text against a set of policies (e.g. NSFW, prompt injection).
  • Sanitize Text: Redact text to mask personal data, secret keys, URLs, etc.

Sub-nodes Guardrails takes in Duaer

Connect sub-nodes to the inputs under Guardrails: Chat Model. Each sub-node keeps its own credential and settings.

Questions

What can the Guardrails node do in Duaer?

In Duaer, Guardrails offers Check Text for Violations and Sanitize Text.

In this section