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

# Managing Data Sources

## Resetting The Contextual AI & Purging Or Preserving Data Sources

Contextual AI suggestions can degrade over time if poor Translation Memory (TM) entries are uploaded to your Data Sources. To help you manage the quality of Contextual AI models, the LILT platform allows you to do the following:

* Reset a Contextual AI model.
* Purge a Data Source.
* Preserve a Data Source.

See the [TM Size and Content Guidelines](/kb/tm-size-content-guidelines) article for guidelines on what TM data is best suited for LILT.

## Resetting AI suggestions

You can reset the model by following these steps:

1. Open the `Custom Models` tab.
2. Click the dropdown arrow next to the Edit button and select "Reset AI suggestions".

   <img src="https://mintcdn.com/lilt-db26f913/hgFsGbktMvG8e1e8/images/image.png?fit=max&auto=format&n=hgFsGbktMvG8e1e8&q=85&s=ca1fa2bf799056fbe92f1652e9b1e25f" alt="image.png" title="image.png" style={{ width:"32%" }} width="1918" height="939" data-path="images/image.png" />

Reset the Contextual AI to perform the following:

* Reset the [LILT Translate](/kb/introduction-to-lilt-translate) automatic suggestions to a clean slate
* Re-train the Contextual AI model on all confirmed segments in the Data Source

*Note: when resetting the Contextual AI, your TB and TM entries will remain untouched.*

## Purging memory and termbase entries

You can restore your Data Source to a clean slate by purging the memory and termbase entries:

1. Open the `Data > Sources` tab.
2. Open the desired Data Source by clicking on the Data Source name or clicking the `Edit`button.
3. Open the `Settings` page.
4. Under the `Purge data source and termbase` section, click the `Purge data source and termbase`button to open a popup where you will need to confirm you want to purge the Data Source.

<Frame>
  <img src="https://mintcdn.com/lilt-db26f913/3GpNTXXX3YC63b99/images/4adeec06-image2023-9-1_15-59-39.png?fit=max&auto=format&n=3GpNTXXX3YC63b99&q=85&s=d2d818fdcba94945aa36ce62b5a5947a" alt="" width="2132" height="964" data-path="images/4adeec06-image2023-9-1_15-59-39.png" />
</Frame>

Purge the Data Source & Termbase to perform the following:

* **remove all the custom TB and TM entries** from the Data Source
* reset the [LILT Translate](/kb/introduction-to-lilt-translate) automatic suggestions to a clean state; does **not** retrain on the existing TM data

## Preserving Data Source by disabling in-context learning

By default,Data Source adapt to both uploaded TMX files and the linguistic activity of translators and reviewers in LILT Translate. If at any point you need to stop a Data Source from adapting any further, you can do so by disabling the `in-context learning` option within the Data Source settings.

### Disabling in-context learning when creating a new Data Source

During the creation of a new Data Source, toggle off the option for `in-context learning`and then continue with creating the Data Source.

<Frame>
  <img src="https://mintcdn.com/lilt-db26f913/h-pj1JNusV0pbQh0/images/a0f8fd81-image2023-9-1_16-0-19.png?fit=max&auto=format&n=h-pj1JNusV0pbQh0&q=85&s=f374c4da17004e5af7f4f517d82b1b89" alt="" width="1576" height="818" data-path="images/a0f8fd81-image2023-9-1_16-0-19.png" />
</Frame>

### Disabling in-context learning on an existing Data Source

1. Open the `Data > Sources` tab.
2. Open the desired Data Source by clicking on the name or clicking the `Edit`button.
3. Open the `Settings` page.
4. Toggle in-context learning off. This can be enabled/disabled at any time.

<Frame>
  <img src="https://mintcdn.com/lilt-db26f913/_SPh7S1sP0AAJsry/images/5ad37f51-image2023-9-1_16-0-51.png?fit=max&auto=format&n=_SPh7S1sP0AAJsry&q=85&s=98be6f8e85c0b59b26200fadcc5c510a" alt="" width="2226" height="1276" data-path="images/5ad37f51-image2023-9-1_16-0-51.png" />
</Frame>
