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
from praisonaiagents.knowledge import indexingClasses
CorpusStats
Statistics about an indexed corpus.
IndexResultResult of an indexing operation.
IgnoreMatcherMatcher for .praisonignore patterns.
FileTrackerTrack file hashes and modification times for incremental indexing.
Constants
| Name | Value |
|---|---|
STRATEGY_THRESHOLDS | {10: 'direct', 100: 'basic', 1000: 'hybrid', 10000: 'reranked', 100000: 'compressed'} |
DEFAULT_STRATEGY | 'hierarchical' |