From File • AI Agent SDK

from_file: Load patterns from file.

from_file

Method

</div>

This is a method of the IgnoreMatcher class in the indexing module.

Load patterns from file.

Signature

python
def from_file(filepath: str) -> 'IgnoreMatcher'

Parameters

ParamField str

Path to .praisonignore file

Returns

ResponseField 'IgnoreMatcher'

IgnoreMatcher with loaded patterns

Uses

  • splitlines
  • f.read
  • cls

Source

View on GitHub

praisonaiagents/knowledge/indexing.py at line 267