> For the complete documentation index, see [llms.txt](https://docs.tonic.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tonic.ai/textual/tonic-textual-api/request-auditor.md).

# Auditing redaction requests

{% hint style="info" %}
**Required global permission:** Use the Request Explorer
{% endhint %}

The **Request Auditor** allows you to review the quality of the entity detection in your redaction requests to the Python SDK or REST API.

The **Request Auditor** uses an LLM to review the redaction results for a sample percentage of the requests. The LLM review specifically looks for entities that were not identified in the original request.

The reviewed requests receive a score based on the LLM findings. You configure a threshold score at or below which a request requires a human review to see what was missed in the original request.

For self-hosted instances, you can [configure the LLM to use and parameters for processing the requests](/textual/textual-install-administer/configuring-textual/enable-and-configure-textual-features/request-auditor-config.md).

## Displaying the Request Auditor <a href="#request-auditor-display" id="request-auditor-display"></a>

To display the **Request Auditor**, in the Textual navigation panel, click the **Request Auditor** option.

On the **Request Auditor**:

* The **Request log** page displays the reviewed requests.
* The **Audit settings** page provides configuration options for the audit.

<figure><img src="/files/uHd5kUJUeaYDU6LZQWRz" alt=""><figcaption><p>Request Auditor page</p></figcaption></figure>

## Configuring the audit <a href="#request-auditor-configure" id="request-auditor-configure"></a>

On the **Audit settings** page of the **Request Auditor**, you configure:

* Whether to enable request auditing.
* The percentage of requests for the LLM to review.
* When to require a user to review the LLM results.
* How long to keep the files.

<figure><img src="/files/bgtasxglQtuSdMo0rboI" alt=""><figcaption><p>Audit settings page of the Request Auditor</p></figcaption></figure>

After you change the configuration, to save the changes, click **Save**.

### Enabling or disabling request auditing

To enable request auditing, toggle **Enable requests auditing** to the on position.

To disable request auditing, toggle **Enable requests auditing** to the off position. When you disable request auditing, no new requests are sent for auditing. Existing requests remain in the request log until they expire.

### Configuring the percentage of requests to audit <a href="#request-auditor-sampling-rate" id="request-auditor-sampling-rate"></a>

For **Sampling rate** field, set the percentage of requests that the auditor reviews.

You can either use the slider, or type the percentage value directly into the field.

### Configuring the threshold for user review <a href="#request-auditor-score-threshold" id="request-auditor-score-threshold"></a>

In the **Score threshold for user review** field, specify the score value to use to determine whether a request requires a user to review it manually.

Requests that receive a score at or below the threshold require the user review.

A perfect score is 1.0.

### Configuring the retention period for reviewed files <a href="#request-auditor-retention-period" id="request-auditor-retention-period"></a>

In the **Log retention period** field, provide the number of days to retain a reviewed request in the **Request log**.

The default is 7 days.

Requests that have a score above the threshold are removed after the retention period.

Requests that require a user review and that are not yet reviewed are exempt from the retention period. They remain in the list.

When a request is marked as reviewed, it is then subject to the retention period. For example, the retention period is 7 days. A request requires a user review. After 3 days, a user marks it as reviewed. The request is then removed 7 days after that.

## Viewing the request log <a href="#request-auditor-view-log" id="request-auditor-view-log"></a>

The **Request log** page of the **Request Auditor** displays the current list of reviewed requests.

### Information in the request log <a href="#request-auditor-log-info" id="request-auditor-log-info"></a>

At the top of the page is summary information about the requests:

* The average F1 scores from the LLM reviews for the requests in the list.
* The number of requests that are waiting for a user review.
* The total number of requests that are currently in the list.

For each request, the request list includes:

* The identifier of the request.
* The recall score assigned during the LLM review.
* The current status of the request.
  * **Reviewed by AI -** The request was reviewed by the LLM and received a score that is above the threshold for user review.
  * **Pending user review -** The request requires and is waiting for a user review.
  * **Reviewed by user -** The user review is completed.
* The number of days before the request expires.
* The source of the request. Currently, the source is always **SDK**.
* The timestamp of the request.

### Filtering the request log <a href="#request-auditor-filter-log" id="request-auditor-filter-log"></a>

You can filter the log by the request status.

To filter the list:

1. Click **Filter**.
2. On the filter panel, select the filters to apply.

## Displaying and reviewing a request <a href="#request-display-review" id="request-display-review"></a>

To display the details for a request, click the request row.

<figure><img src="/files/grmRIlYcVqU2Ts2tqqY2" alt=""><figcaption><p>Details page for a request on the Request Auditor</p></figcaption></figure>

### Information on the request details <a href="#request-details-info" id="request-details-info"></a>

The request details include:

* **Recall score** - Measures the model's ability to find all of the entities. Indicates how many of the actual entities it detected. For example, the original request detected 10 correct values. If the LLM review determined that the total number of correct values is 20, then the recall score is lower than if the total number of correct values is 12.
* **False negatives** - List of entities that the LLM detected that were not detected by the original request.
* Redacted text. In the text, the detected entities are highlighted to indicate whether they were detected in the original request, or detected during the LLM review.
* **Entity type settings snapshot -** Lists the entity type handling configuration for the request.

### Marking a request as reviewed <a href="#request-mark-reviewed" id="request-mark-reviewed"></a>

For requests that require a user review, the details include a **Mark as reviewed** option. To mark a reviewed request as not reviewed, click **Unmark as reviewed**.

After it is marked as reviewed, the request is subject to the configured expiration period. For example, if requests expire after 7 days, then the request expires and is removed 7 days after it is reviewed.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.tonic.ai/textual/tonic-textual-api/request-auditor.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
