Skip to main content
Cognisafe’s built-in scorers cover the OWASP LLM Top 10, but you may need domain-specific scoring rules — for example, detecting competitor mentions, enforcing brand guidelines, or checking for medical advice disclaimers. Custom scorers are defined in evals/scorers.yaml using the same format as the built-in scorers.
Custom scorers are a Pro tier and above feature. On the free tier, only the built-in scorers run. Custom scorer UI configuration in the dashboard is coming soon — for now, custom scorers are defined by editing scorers.yaml directly in a self-hosted deployment.

Scorer format

Each scorer entry in evals/scorers.yaml has the following fields:

Field reference

Example: medical advice detection

Running custom scorers

After adding a scorer to scorers.yaml, restart the safety_worker service. It reads the YAML on startup and registers all scorers automatically:
Each new scorer runs on all subsequent requests. Historical requests are not retroactively scored.

Current built-in scorer definitions

The full evals/scorers.yaml for the built-in scorers is in the GitHub repository.