# Configuring the use of AI features

On a self-hosted Structural instance, before you can use AI features, you must [connect to an LLM](https://docs.tonic.ai/app/admin/structural-ai-use/connecting-a-self-hosted-instance-to-an-llm).

## Excluding sample data from LLM-based sensitivity detection <a href="#llm-detection-exclude-sample-data" id="llm-detection-exclude-sample-data"></a>

By default, LLM-based sensitivity detection sends both the database schema and sample source data values to the LLM.

To exclude the contextual source data, and only send the schema, set the [environment setting](https://docs.tonic.ai/app/admin/environment-variables-setting) `TONIC_LLM_ENABLE_ENHANCED_RECOMMENDATIONS_SAMPLE_DATA` to false.

* For a self-hosted instance, you can set this from the **Environment Settings** tab on **Structural Settings**.
* For a Cloud organization, you set this from the **Organization Settings** tab on **Structural Settings**.

## Setting whether a workspace uses LLM-based sensitivity detection

On Structural Cloud, LLM-based sensitivity detection is enabled by default.

You can disable LLM-based sensitivity detection within individual workspaces.

To do this, in the [advanced workspace overrides](https://docs.tonic.ai/app/workspace/managing-workspaces/workspace-configuration-settings/advanced-overrides), set `TONIC_LLM_ENABLE_ENHANCED_RECOMMENDATIONS` to `false`.


---

# Agent Instructions: 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:

```
GET https://docs.tonic.ai/app/admin/structural-ai-use/configuring-the-use-of-ai-features.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
