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

# Ignore Matcher • AI Agent SDK

> IgnoreMatcher: Matcher for .praisonignore patterns.

# IgnoreMatcher

> Defined in the [**indexing**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/indexing.md) module.

AI Agent

Matcher for .praisonignore patterns.

Supports gitignore-style patterns:

* * matches any sequence of characters
* \*\* matches any path segments
* ! negates a pattern
* # starts a comment

## Constructor

**patterns** `Optional`

No description available.

## Methods

> [card] [from\_file()](https://praison.ai/docs/sdk/reference/praisonaiagents/functions/IgnoreMatcher-from_file.md)
>
> Load patterns from file.

> [card] [from\_directory()](https://praison.ai/docs/sdk/reference/praisonaiagents/functions/IgnoreMatcher-from_directory.md)
>
> Auto-detect and load .praisonignore from directory.

> [card] [should\_ignore()](https://praison.ai/docs/sdk/reference/praisonaiagents/functions/IgnoreMatcher-should_ignore.md)
>
> Check if path should be ignored.

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/knowledge/indexing.py#L174)
>
> `praisonaiagents/knowledge/indexing.py` at line 174


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.