docs(config): fix configuration reference for jailbreak, streaming and sample conversation#1643
docs(config): fix configuration reference for jailbreak, streaming and sample conversation#1643
Conversation
…nd sample conversation - Fix check jailbreak to jailbreak detection heuristics in input rails table - Add injection detection to output rails table - Fix sample_conversation format to use Colang syntax - Deprecate top-level streaming field with proper admonition - Simplify streaming config to boolean
Documentation preview |
Greptile SummaryThis PR corrects documentation inaccuracies in the configuration reference:
Issues found:
|
| Filename | Overview |
|---|---|
| docs/configure-rails/configuration-reference.md | Fixes jailbreak flow name and sample_conversation format, adds injection detection to output rails, and deprecates top-level streaming field. However, the check jailbreak flow name was not updated in two other YAML code examples (lines 171, 239), and the Complete Example still shows streaming as an object instead of a boolean. |
Flowchart
flowchart TD
A[User Input] --> B[Input Rails]
B --> B1["self check input"]
B --> B2["jailbreak detection heuristics ✏️"]
B --> B3["jailbreak detection model"]
B --> B4["mask sensitive data on input"]
B --> B5["detect sensitive data on input"]
B --> B6["llama guard check input"]
B --> B7["content safety check input"]
B --> B8["topic safety check input"]
B1 & B2 & B3 & B4 & B5 & B6 & B7 & B8 --> C[LLM Processing]
C --> D[Output Rails]
D --> D1["self check output"]
D --> D2["self check facts"]
D --> D3["self check hallucination"]
D --> D4["mask sensitive data on output"]
D --> D5["llama guard check output"]
D --> D6["content safety check output"]
D --> D7["injection detection ✨"]
D1 & D2 & D3 & D4 & D5 & D6 & D7 --> E[Bot Response]
style B2 fill:#ffd700,stroke:#333
style D7 fill:#90ee90,stroke:#333
Last reviewed commit: 44ca5f2
Additional Comments (3)
The flow name Prompt To Fix With AIThis is a comment left during a code review.
Path: docs/configure-rails/configuration-reference.md
Line: 171:171
Comment:
**Inconsistent flow name not updated**
The flow name `check jailbreak` was corrected to `jailbreak detection heuristics` in the Built-in Input Flows table (line 253), but this YAML example still uses the old incorrect name. The actual flow is defined as `jailbreak detection heuristics` in `nemoguardrails/library/jailbreak_detection/flows.co` and `flows.v1.co`. This should be updated for consistency.
```suggestion
- jailbreak detection heuristics
```
How can I resolve this? If you propose a fix, please make it concise.
Same issue as the Rails Schema section — this YAML example still references the old Prompt To Fix With AIThis is a comment left during a code review.
Path: docs/configure-rails/configuration-reference.md
Line: 239:239
Comment:
**Inconsistent flow name not updated**
Same issue as the Rails Schema section — this YAML example still references the old `check jailbreak` flow name. It should match the corrected name in the Built-in Input Flows table.
```suggestion
- jailbreak detection heuristics
```
How can I resolve this? If you propose a fix, please make it concise.
The Complete Example at the bottom of the document still shows the top-level Prompt To Fix With AIThis is a comment left during a code review.
Path: docs/configure-rails/configuration-reference.md
Line: 829:830
Comment:
**Complete Example contradicts streaming deprecation**
The Complete Example at the bottom of the document still shows the top-level `streaming` field as an object (`streaming:\n enabled: true`), which contradicts the change made earlier in this PR that simplifies it to a boolean and marks it as deprecated. This should either be updated to `streaming: true` (to match the new boolean format) or removed entirely (since the field is deprecated and ignored at runtime).
```suggestion
streaming: true
```
How can I resolve this? If you propose a fix, please make it concise. |
Description