Skip to content

Add design guidelines for LLM response with guardrails #572

@rebeccaalpert

Description

@rebeccaalpert

Red Hat provides guardrails for LLMs. These can help check if a model is saying something inappropriate. If an LLM was providing an answer, we should provide guidance on messaging in the case when a guardrail is hit. There are some sample guardrail API messages in the above video. In this case, the response from LLM may not come in. Bill Murdock suggested that with streaming, it is harder to run guardrails first, however. Some models simply remove messages. Danielle Jett suggests running against guardrail first and then simulating streaming, though this may cause a delay.

Assuming we are talking about removing a message from the DOM, @thatblindgeye wonders whether removing a message would be confusing. Eric wonders whether replacing message may be a better solution in the case where guardrail is not hit first before message is displayed.

We should do some research and provide some design guidelines around this.

Potentially relevant research:

Related:

Metadata

Metadata

Assignees

Labels

Documentation 📝Improvements or additions to documentationPF6Applies to only the PF6 version

Projects

Status

In Progress

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions