from_directory
Method
This is a method of the CorpusStats class in the indexing module.Create CorpusStats from directory scan.
Signature
Parameters
str
required
Directory path to scan
Optional
Optional list of extensions to include
Returns
'CorpusStats'
CorpusStats with file count and token estimate
Uses
os.walksplitextgetsizeclsisoformatdatetime.now
Used By
Source
View on GitHub
praisonaiagents/knowledge/indexing.py at line 71
