> ## Documentation Index
> Fetch the complete documentation index at: https://docs.athina.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# PII Detection

Fails if the text contains Personal Identifiable Information (PII).

* Inputs: `text`
* Type: `boolean`
* Metrics: `passed` (0 or 1)

### Example[](#example)

<Card>
  **With PII**

  * **Query**: *"Sam Altman's Ethereum address is 0x2390jd24jJD3m29kd20kd02k30rk02."*
  * **Result**: `Failed`
</Card>

<Card>
  **Without PII**

  * **Query**: *"What is the capital of France?"*
  * **Result**: `Passed`
</Card>

### How does it work?[](#how-does-it-work)

This evaluator uses an open-source [Hugging Face library ](https://huggingface.co/lakshyakh93/deberta_finetuned_pii) to detect PII in the text.

The model is a fine-tuned version of Microsoft's Deberta V3.

### Notes[](#notes)

* The model is not perfect and might not detect all PII.
* You can use Athina as real time guardrails, but the PII detection eval can take a few seconds to complete, so it is not recommended for chat apps. ([Example Notebook ](https://github.com/athina-ai/athina-evals/blob/main/examples/guard.ipynb))
