Skip to main content

CorpusStats

Defined in the indexing module.
AI Agent Statistics about an indexed corpus. Used for strategy selection and monitoring. Attributes: file_count: Number of files in corpus chunk_count: Number of chunks created total_tokens: Estimated total tokens indexed_at: Timestamp of last indexing path: Path to corpus root strategy_recommendation: Recommended retrieval strategy

Properties

int
No description available.
int
No description available.
int
No description available.
Optional[str]
No description available.
Optional[str]
No description available.

Methods

from_directory()

Create CorpusStats from directory scan.

strategy_recommendation()

Recommend retrieval strategy based on corpus size.
  • from_dict: Create from dictionary.
  • to_dict: Convert to dictionary.

Source

View on GitHub

praisonaiagents/knowledge/indexing.py at line 42