[GH-ISSUE #7] feat: add guardrail example #14

Closed
opened 2026-10-18 21:01:32 +00:00 by bsakaguchi · 3 comments
Owner

Originally created by @tjbck on GitHub (May 24, 2024).
Original GitHub issue: https://github.com/open-webui/pipelines/issues/7

(e.g. detect toxicity -> if toxic == True: return "I cannot help you with that")

Originally created by @tjbck on GitHub (May 24, 2024). Original GitHub issue: https://github.com/open-webui/pipelines/issues/7 (e.g. detect toxicity -> if toxic == True: return "I cannot help you with that")
bsakaguchi 2026-10-18 21:01:32 +00:00
Author
Owner

@mkhludnev commented on GitHub (May 27, 2024):

Pardon. It might be obvious, but how to detect toxicity? Just a hell bunch of regexps?

<!-- gh-comment-id:2133402598 --> @mkhludnev commented on GitHub (May 27, 2024): Pardon. It might be obvious, but how to detect toxicity? Just a hell bunch of regexps?
Author
Owner

@tjbck commented on GitHub (May 27, 2024):

We could probably use another LLM pipeline (prompt engineering) to detect 😅 or use something like https://github.com/unitaryai/detoxify

<!-- gh-comment-id:2134106761 --> @tjbck commented on GitHub (May 27, 2024): We could probably use another LLM pipeline (prompt engineering) to detect 😅 or use something like https://github.com/unitaryai/detoxify
Author
Owner

@tjbck commented on GitHub (May 29, 2024):

https://github.com/open-webui/pipelines/blob/main/pipelines/examples/detoxify_filter_pipeline.py

@mkhludnev Just added here, feel free to try it out and let me know if you encounter any issues!

<!-- gh-comment-id:2136394240 --> @tjbck commented on GitHub (May 29, 2024): https://github.com/open-webui/pipelines/blob/main/pipelines/examples/detoxify_filter_pipeline.py @mkhludnev Just added here, feel free to try it out and let me know if you encounter any issues!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
open-webui/pipelines#14
No description provided.