indexing • AI Agent SDK

Incremental Indexing Infrastructure for PraisonAI Agents.

indexing

AI Agent

Incremental Indexing Infrastructure for PraisonAI Agents.

Provides:

  • CorpusStats: Statistics about indexed corpus
  • IndexResult: Result of indexing operation
  • IgnoreMatcher: .praisonignore pattern matching
  • FileTracker: File hash/mtime tracking for incremental updates

No heavy imports – only stdlib.

Import

python
from praisonaiagents.knowledge import indexing

Classes

Constants

NameValue
STRATEGY_THRESHOLDS{10: 'direct', 100: 'basic', 1000: 'hybrid', 10000: 'reranked', 100000: 'compressed'}
DEFAULT_STRATEGY'hierarchical'