ProjectTech4DevAI / ProjectTech4DevAI/kaapi-guardrails

Validation: Improve clarity of messages

Open
#98 0 comments 0 reactions 1 assignee View on GitHub

@Prajna1999 is already working on this.

Since Jul 22, 2026.

enhancement
Dominant language
Python
Stars
5
Forks
3
Avg merge
9d 13h
Merged PRs (30d)
2

Description

Describe the current behavior
While whatever is returned right now works for most situtaion but there are situations where it could be a litting confusing. for example

  1. whenever you chose rephrase as on fail action , this is what you will get -
"safe_text": "Please rephrase the query without unsafe content. {the reason of asking for rephrase which will differ per validator}"
  1. profanity free validator is not specifically an output validator, yet when we run the validator with rephrase as on fail action -
    "safe_text": "Please rephrase the query without unsafe content. [REDACTED] contains profanity. Please return profanity-free output."

Describe the enhancement you'd like

  1. Since all our validator don't just block unsafe content and block irrelevant content as well, so "without unsafe content" should be removed.

  2. rephrase the sentence "please return profanity free output" as this shows that you expect profanity free to be an output validator

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.