Skip to main content

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

Classes

CorpusStats

Statistics about an indexed corpus.

IndexResult

Result of an indexing operation.

IgnoreMatcher

Matcher for .praisonignore patterns.

FileTracker

Track file hashes and modification times for incremental indexing.

Functions

estimate_tokens_simple()

Simple token estimation (~4 chars per token).

Constants