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

python
def get_corpus_stats() -> Any

Returns

ResponseField Any

CorpusStats with file count, chunk count, and strategy recommendation

Uses

  • CorpusStats

Source

View on GitHub

praisonaiagents/knowledge/knowledge.py at line 1048