# How it works

Conceptually, we need to determine the presence of a series of risks for each input and
output, and take action on it.

The ideal method depends on the type of the problem,
and aims to pick the best combination of accuracy, latency and cost.

There are three commonly used methods:

1. **Heuristics or traditional NLP models**: ideal for checking for PII or competitor mentions
2. **Small language models**: ideal for staying on topic
3. **Large language models**: ideal for detecting complex issues like hallucination