> ## 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**](../modules/indexing) module.

<Badge color="blue">AI Agent</Badge>

Matcher for .praisonignore patterns.

Supports gitignore-style patterns:

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

## Constructor

<ParamField query="patterns" type="Optional" required={false}>
  No description available.
</ParamField>

## Methods

<CardGroup cols={2}>
  <Card title="from_file()" icon="function" href="../functions/IgnoreMatcher-from_file">
    Load patterns from file.
  </Card>

  <Card title="from_directory()" icon="function" href="../functions/IgnoreMatcher-from_directory">
    Auto-detect and load .praisonignore from directory.
  </Card>

  <Card title="should_ignore()" icon="function" href="../functions/IgnoreMatcher-should_ignore">
    Check if path should be ignored.
  </Card>
</CardGroup>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/knowledge/indexing.py#L179">
  `praisonaiagents/knowledge/indexing.py` at line 179
</Card>
