sd_get_collection_stats
Retrieve document counts and metadata for a collection to assess its size and content before browsing or searching. Provides quick statistics to verify data availability.
Instructions
Get statistics about documents in a collection.
PURPOSE: Understand the size and content of a collection.
WHEN TO USE:
User asks "how many documents are there?"
Getting an overview before browsing/searching
Verifying data availability
Args: collection: Collection path (relative to data_path). Empty = root.
Returns: CollectionStats object with document counts and metadata
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Full path to the collection | |
| total_files | Yes | Total number of files | |
| tei_documents | Yes | Number of TEI documents |