Skip to content

Commit f44a4ce

Browse files
committed
chore: update readme
1 parent 5573c46 commit f44a4ce

1 file changed

Lines changed: 12 additions & 20 deletions

File tree

README.md

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -121,30 +121,22 @@ For a real probe, you need thousands of examples across allowed and disallowed p
121121

122122
## Architecture
123123

124-
```txt
125-
prompt + response
126-
127-
target model forward pass with output_hidden_states=True
128-
129-
selected layer hidden state at final token
130-
131-
linear probe
132-
133-
risk score
124+
```mermaid
125+
flowchart TD
126+
Exchange["prompt + response"] --> ForwardPass["target model forward pass with output_hidden_states=True"]
127+
ForwardPass --> HiddenState["selected layer hidden state at final token"]
128+
HiddenState --> Probe["linear probe"]
129+
Probe --> RiskScore["risk score"]
134130
```
135131

136132
During generation:
137133

138-
```txt
139-
generate N tokens
140-
141-
read selected hidden state
142-
143-
probe risk score
144-
145-
smooth score over a small window
146-
147-
continue / pause / escalate / refuse
134+
```mermaid
135+
flowchart TD
136+
Generate["generate N tokens"] --> ReadHiddenState["read selected hidden state"]
137+
ReadHiddenState --> ProbeRisk["probe risk score"]
138+
ProbeRisk --> SmoothScore["smooth score over a small window"]
139+
SmoothScore --> GuardDecision["continue / pause / escalate / refuse"]
148140
```
149141

150142
## Important limitations

0 commit comments

Comments
 (0)