ProjectTech4DevAI / ProjectTech4DevAI/kaapi-guardrails
Validation: Improve clarity of messages
@Prajna1999 is already working on this.
Since Jul 22, 2026.
- 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
- 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}"
- 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
-
Since all our validator don't just block unsafe content and block irrelevant content as well, so "without unsafe content" should be removed.
-
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.