Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prompt blocking #81

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

gr8nishan
Copy link
Collaborator

@gr8nishan gr8nishan commented Aug 12, 2024

Title: [pebblo_retrieval/base.py] Blocking prompts based on detected entity group and entity
Description: Blocking prompt based on detected entity group and entity.
The user will provide a deny list against which the entity detected in the prompt will be verified. If we find any group or entity in the deny list, we will block the prompt. User can provide a message that needs to be returned in case the prompt is blocked otherwise, the default message is returned.
Users can also decide whether to block prompt or not using the variable block_prompt.
Message can be configured using the variable prompt_message
Users can also decide to skip the prompt governance feature using the enable_prompt_gov variable.
Issue: NA
Dependencies: NA
Add tests and docs: NA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant