System Design
19. AI System Design and LLM InfrastructureAnimated
Guardrails and Content Filtering
Checks on inputs and outputs.
The idea
Filters block unsafe, off-topic or leaking content and validate formats.
Watch it work
Press play, pause, or step through. Some animations have settings you can change.
- client
- gateway / proxy
- service
- cache
- data store
- queue / stream
Check input for prompt injection, personal data and abuse.
- step:
- 1/4
- at:
- User input
1/8
The green dot is a request moving through the system.
Step by step
- 1Check the input
- 2Run the model
- 3Check the output
- 4Block, fix or retry
Where it is used
Safe deployment.
Watch out for
Filters add latency and false positives.