Vector Index Health Monitor

U

@

·

Build a vector index health monitor with stats collection, performance evaluation, anomaly detection, and maintenance recommendations.

1 copies0 forks
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

Details

Category

Coding

Use Cases

Index monitoringHealth checksMaintenance automation

Works Best With

claude-sonnet-4-20250514gpt-4o
Created Shared

Create your own prompt vault and start sharing

Vector Index Health Monitor | Promptsy