Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "stats [collection-name]", Short: "Show collection statistics and analytics", Long: `Show detailed statistics about a collection. This command displays: - Document count - Metadata field distribution - Collection size and index information - Top metadata values Examples: weave stats MyCollection weave stats MyDocs --output json weave stats MyCollection --top 10`, Args: cobra.ExactArgs(1), Run: runStats, }
Cmd represents the stats command
Functions ¶
This section is empty.
Types ¶
type CollectionStats ¶
type CollectionStats struct {
CollectionName string `json:"collection_name" yaml:"collection_name"`
DocumentCount int `json:"document_count" yaml:"document_count"`
VectorDB string `json:"vector_db" yaml:"vector_db"`
Metadata map[string]MetadataFieldStat `json:"metadata_fields,omitempty" yaml:"metadata_fields,omitempty"`
}
CollectionStats represents statistics about a collection
type MetadataFieldStat ¶
type MetadataFieldStat struct {
Type string `json:"type" yaml:"type"`
UniqueValues int `json:"unique_values" yaml:"unique_values"`
TopValues []ValueCount `json:"top_values,omitempty" yaml:"top_values,omitempty"`
SampleValue interface{} `json:"sample_value,omitempty" yaml:"sample_value,omitempty"`
}
MetadataFieldStat represents statistics for a metadata field
type ValueCount ¶
type ValueCount struct {
Value string `json:"value" yaml:"value"`
Count int `json:"count" yaml:"count"`
}
ValueCount represents a value and its count
Click to show internal directories.
Click to hide internal directories.