Skip to content

RegEx Guardrail WARN and REDACT actions do not have any impact #393

Description

@jw-proworks

Which component is this issue related to?

Umbraco.AI (Core)

Which Umbraco AI version are you using? (Please write the exact version, example: 10.1.0)

1.0.0

Bug summary

The WARN and REDACT actions seem to have no effect on RegEx guardrails. Only the BLOCK action seems to cause the guardrails to be triggered.

Specifics

No response

Steps to reproduce

When set as follows:

Image

the following prompt: "Is John Banta reputable?"

produces an error (which in the logs indicates the guardrail was invoked) from Umbraco Copilot dialog.

However, when changing the action to "WARN," no warning or error is received for the same prompt. In fact, a lengthy entry about why he is reputable is received.

Similarly, when using the "REDACT" action for the same prompt, nothing is redacted and a full response is given.

Expected result / actual result

I expected:

  1. For the WARN action, a warning to be displayed somewhere in the response that indicated a guardrail had been triggered
  2. For the REDACT action, all references to "John Banta" to be redacted since that was part of the regex match

Dependencies

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions