mirror of
https://github.com/zenlm/zen-guard.git
synced 2026-07-27 06:13:05 +00:00
Merge pull request #1 from loktar00/patch-1
Fix formatting of the safety check section in README replace sented with sent.
This commit is contained in:
@@ -223,7 +223,7 @@ print(chat_completion.choices[0].message.content)
|
||||
|
||||
A typical workflow proceeds as follows:
|
||||
|
||||
**(1) Prompt-Level Safety Check**: The user’s input prompt is simultaneously sented to both the LLM assistant and Qwen3Guard-Stream. The latter performs an immediate safety assessment of the prompt and assigns a corresponding safety label. Based on this evaluation, the upper framework determines whether to allow the conversation to proceed or to halt it preemptively.
|
||||
**(1) Prompt-Level Safety Check**: The user’s input prompt is simultaneously sent to both the LLM assistant and Qwen3Guard-Stream. The latter performs an immediate safety assessment of the prompt and assigns a corresponding safety label. Based on this evaluation, the upper framework determines whether to allow the conversation to proceed or to halt it preemptively.
|
||||
|
||||
**(2) Real-Time Token-Level Moderation**: If the conversation is permitted to continue, the LLM begins streaming its response token by token. Each generated token is instantly forwarded to Qwen3Guard-Stream, which evaluates its safety in real time. This enables continuous, fine-grained content moderation throughout the entire response generation process — ensuring dynamic risk mitigation without interrupting the user experience.
|
||||
|
||||
@@ -349,4 +349,4 @@ If you are interested to leave a message to either our research team or product
|
||||
<a href="#readme-top" style="text-decoration: none; color: #007bff; font-weight: bold;">
|
||||
↑ Back to Top ↑
|
||||
</a>
|
||||
</p>
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user