mirror of
https://github.com/open-webui/pipelines.git
synced 2026-11-05 01:37:24 +00:00
[GH-ISSUE #7] feat: add guardrail example #14
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/pipelines#14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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")
@mkhludnev commented on GitHub (May 27, 2024):
Pardon. It might be obvious, but how to detect toxicity? Just a hell bunch of regexps?
@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
@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!