PII Masking
PII (Personally Identifiable Information) masking automatically redacts sensitive data with your regex rules so it never reaches the underlying AI model, helping you protect privacy and comply with data protection regulations.How PII Masking Works
Masking is enforced at the model egress — the moment just before any request is sent to the AI provider. Every outbound request has your current rules applied to all of its text:- User questions: the question is masked before it reaches the model.
- Retrieved context: data-source content pulled in to answer a question is masked before it is sent as context.
- File attachments: text extracted from documents, logs, PDFs, and Word (DOCX) files, plus the AI-generated descriptions of attached or embedded images, is masked before it reaches the model.
- Embeddings: text is masked before it is embedded, both at indexing time and at query time.
- Answers & follow-ups: every step of the answer pipeline is covered.
<<LABEL>> format (e.g. <<EMAIL>>, <<SSN>>).
Because masking runs on every request with your current rules, adding, editing, or removing a rule takes effect immediately on the next question — there is no re-indexing step. Data sources are stored as-is and masked live whenever their content is sent to the model.
Configuration

- Case sensitive: all pattern matching is case-sensitive.
- PCRE2 standard: patterns follow the Perl Compatible Regular Expressions 2 specification.
- Validation: invalid patterns are flagged inline; you can also test at regex101.com before saving.
=, or spaces) into a field and they expand into separate rows.
Example rules
These cover the most common pattern-based PII found in logs and support tickets — network identifiers, addresses, IDs, credential hashes, and tokens. Paste the block straight into the editor (one rule per line: a label, then the pattern) and adjust to your needs:In the chat
Masked values render as labeled chips in the conversation (for example a smallEMAIL chip) with a “PII masked” tooltip on hover, so it is clear where sensitive data was redacted. The original value is never shown.

Analytics
Open Analytics → PII Masking to see masking activity for your Guru:- totals and the labels masked most,
- a breakdown by pipeline stage,
- recent redacted examples.