|
Bogdan Timofte
authored
3 months ago
|
1
|
# autoSMART OpenAI Configuration
|
|
|
2
|
# AI prediction engine settings
|
|
|
3
|
|
|
|
4
|
[openai]
|
|
|
5
|
# API Configuration
|
|
|
6
|
api_key = sk-your-openai-api-key-here
|
|
|
7
|
api_endpoint = https://api.openai.com/v1
|
|
|
8
|
model = gpt-4
|
|
|
9
|
max_tokens = 2048
|
|
|
10
|
temperature = 0.1 # Low temperature for consistent predictions
|
|
|
11
|
|
|
|
12
|
# Request limits and retry
|
|
|
13
|
max_requests_per_hour = 100
|
|
|
14
|
retry_attempts = 3
|
|
|
15
|
retry_delay = 5 # seconds between retries
|
|
|
16
|
request_timeout = 60 # seconds
|
|
|
17
|
|
|
|
18
|
[prediction]
|
|
|
19
|
# Prediction parameters
|
|
|
20
|
prediction_window_days = 30 # Predict failures within 30 days
|
|
|
21
|
confidence_threshold = 0.7 # Minimum confidence for alerts
|
|
|
22
|
historical_data_days = 90 # Use 90 days of historical data
|
|
|
23
|
minimum_readings = 10 # Minimum readings before prediction
|
|
|
24
|
|
|
|
25
|
# AI prompt configuration
|
|
|
26
|
system_prompt = "You are an expert HDD failure prediction system. Analyze SMART data and provide failure probability with reasoning."
|
|
|
27
|
include_context = true # Include disk model, age, environment
|
|
|
28
|
include_trends = true # Include trend analysis in prompts
|
|
|
29
|
|
|
|
30
|
[analysis]
|
|
|
31
|
# Analysis frequency
|
|
|
32
|
full_analysis_hours = 24 # Full AI analysis every 24 hours
|
|
|
33
|
quick_check_hours = 6 # Quick check every 6 hours
|
|
|
34
|
emergency_check_minutes = 30 # Emergency analysis for critical values
|
|
|
35
|
|
|
|
36
|
# Batch processing
|
|
|
37
|
batch_size = 10 # Analyze 10 disks per batch
|
|
|
38
|
batch_delay = 2 # seconds between batch requests
|
|
|
39
|
|
|
|
40
|
[features]
|
|
|
41
|
# Feature engineering for AI
|
|
|
42
|
enable_trend_analysis = true
|
|
|
43
|
enable_anomaly_detection = true
|
|
|
44
|
enable_correlation_analysis = true
|
|
|
45
|
enable_environmental_factors = true
|
|
|
46
|
|
|
|
47
|
# Advanced features
|
|
|
48
|
enable_model_specific_analysis = true # Different analysis per HDD model
|
|
|
49
|
enable_failure_clustering = true # Group similar failure patterns
|
|
|
50
|
enable_seasonal_adjustment = true # Account for seasonal temperature changes
|