Stress testing probes an LLM system under demanding or adversarial conditions to expose weaknesses that ordinary evaluation may miss. Use it alongside automated metrics and standard evaluations, not as a replacement. section 9.1.5
A practical stress-testing cycle can:
- Test for risks such as hallucinations and bias, then analyze results and refine the system. section 9.1.5
- Use LLMs to generate adversarial test cases, with human oversight to check their relevance and coherence. section 9.1.5
A flash-sale failure
An e-commerce support system performs well in testing, but tenfold traffic during a flash sale drives up response times and costs. Repeated questions are sent through expensive models because caching is absent. section 9.0
Figure 9.2 The red-teaming process for LLMs
The red-teaming process diagram can help orient an iterative testing and refinement approach. section 9.1.5



