Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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