> For the complete documentation index, see [llms.txt](https://docs.ebbot.ai/ebbot-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ebbot.ai/ebbot-docs/core-capabilities/ebbotgpt/ebbotgpt-knowledge/knowledge-pre-processing/source-filter.md).

# Source Filter

Read about how you can use the Source Filter feature to clean or filter your data in EbbotGPT Knowledge based on specific keywords.

## Remove field or document based on keywords

Use this feature to automatically clean or filter your data based on specific keywords. Logic: If a specific Field contains a certain Phrase, the system will either Remove the Document or Clear the Field.

<figure><img src="https://2117387010-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3rWESGvwA3vHJ3zNiAG1%2Fuploads%2FWF3vKEPctKKqw4EiU4BN%2Fimage.png?alt=media&amp;token=07e4d248-b44e-4c55-b4cb-59ca5fba39d0" alt=""><figcaption></figcaption></figure>

**1. Select your target field**

Start by entering the name of the Field you want to monitor (for example: `content` or `title`). This tells the system exactly where to look.

**2. Choose the matching logic**

Select how the system should identify the phrase. You can set it to find an exact match, look for the phrase anywhere in the text, or check if the text doesn't contain that phrase.

**3. Enter your phrase**

Type in the specific word or phrase that triggers the filter. Note! This is not case-sensitive unless you check the 'Case sensitive' checkbox.

**4. Choose the final action**

Decide what the system should do when it finds a match:

* **Remove Document**: Deletes the entire record from your results.
* **Remove Field(s)**: Keeps the record but clears out the content of one or more specific fields.

<figure><img src="https://2117387010-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3rWESGvwA3vHJ3zNiAG1%2Fuploads%2FkM2P843J5kEGaq9u1hWp%2Fimage.png?alt=media&amp;token=b7e45111-e3f9-43f8-bcd6-9eba023dda41" alt=""><figcaption></figcaption></figure>
