Implement a health monitoring system for vector indices. ## Index Configuration {{index_config}} ## Monitoring Requirements {{monitoring_requirements}} ## Alert Thresholds {{alert_thresholds}} Build the monitor: ```python class VectorIndexHealthMonitor: def check_index_stats(self) -> IndexStats: """ Collect: - Vector count - Index size - Segment health - Build progress """ pass def evaluate_query_performance(self) -> QueryPerformance: """ Measure: - Latency percentiles - Throughput - Recall estimates """ pass def detect_anomalies(self, metrics: IndexMetrics) -> List[Anomaly]: """ Detect: - Latency spikes - Recall degradation - Resource pressure """ pass def recommend_maintenance(self, health: HealthReport) -> List[Action]: """Suggest maintenance actions""" pass ``` Include: - Synthetic query probes - Trend analysis - Alerting integration - Self-healing triggers
Vector Index Health Monitor
U
@
Build a vector index health monitor with stats collection, performance evaluation, anomaly detection, and maintenance recommendations.
1 copies0 forks
Details
Category
CodingUse Cases
Index monitoringHealth checksMaintenance automation
Works Best With
claude-sonnet-4-20250514gpt-4o
Created Shared