Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Guardrails

Guardrails prevent data leaks in the workspace by detecting secrets, personal data, and prohibited content in conversations and uploads.

Here are the available features:

Browse the tabs

  • Guardrails: the list of available detectors and their settings.

  • Alerts: incidents detected by guardrails. The number next to the tab shows unread alerts.

Available guardrails

  • API keys: known formats (AWS, OpenAI, GitHub, Google, Slack), JWTs, and PEM private keys.

  • Passwords and credentials: explicit passwords, connection strings, and authorization headers.

  • Entropy-based secrets: high-entropy tokens with no known format.

  • Personal data (LGPD): Brazilian CPF and CNPJ tax IDs and payment cards, with real validation; phone numbers and PIX keys (Brazil's instant payment system) are optional.

  • File extensions: blocks uploads by file extension (e.g., .env, .pem, .key).

  • File contents: applies the text detectors to the contents of uploaded files.

  • Prohibited terms: a workspace list of customer names, code names, and off-limits topics.

  • Sensitive information (AI): AI-assisted detection of sensitive information.

The LGPD is Brazil's General Data Protection Law. If your company operates in other countries, add custom guardrails for local ID formats, such as US Social Security numbers.

Turn on and configure a guardrail

To turn on a guardrail, follow these steps:

  1. In the Guardrails tab, turn on the toggle next to the guardrail.

  2. Click Configure to adjust its behavior.

  3. Save your changes.

The badge next to the name shows the configured action mode:

  • Audit only: logs the incident without interrupting the user.

  • Notify and block: alerts the user and stops the content from being sent.

Important: start with Audit only to gauge how often incidents occur before you block content.

Create a custom guardrail

To detect a pattern specific to your company, follow these steps:

  1. At the top of the page, click + Create guardrail.

  2. In the Name field, enter a name for the guardrail.

  3. In the Regular expression field, enter the pattern to detect. Example: EMP-\d{6} to detect employee IDs in the format EMP-123456.

  4. Click Save.

Last updated

Was this helpful?