Get Corpus Stats • AI Agent SDK
get_corpus_stats: Get statistics about the indexed corpus.
get_corpus_stats
Method
</div>
This is a method of the Knowledge class in the knowledge module.
Get statistics about the indexed corpus.
Signature
def get_corpus_stats() -> AnyReturns
ResponseField
AnyCorpusStats with file count, chunk count, and strategy recommendation
Uses
CorpusStats
Source
View on GitHubpraisonaiagents/knowledge/knowledge.py at line 1048