Classify errors using these examples as reference. ## Examples **Category: Configuration Error** Error: `ValueError: Missing required environment variable: OPENAI_API_KEY` Explanation: Missing or invalid configuration, requires admin action. **Category: Resource Error** Error: `CUDA out of memory. Tried to allocate 2.00 GiB` Explanation: Insufficient compute resources, may need scaling or optimization. **Category: Network Error** Error: `ConnectionError: Failed to establish connection to embedding-service:8080` Explanation: Service unreachable, check networking or service health. **Category: Data Error** Error: `JSONDecodeError: Expecting value at line 1 column 1` Explanation: Malformed input data, requires data validation fix. **Category: Rate Limit Error** Error: `RateLimitError: Rate limit exceeded for requests per minute` Explanation: Too many requests, implement backoff or increase limits. ## Error to Classify {{error_message}} ## Output Provide category, explanation, severity, and recommended action.
Few-Shot Error Classification
Few-shot error classification with examples for configuration, resource, network, data, and rate limit errors with action recommendations.
80 copies0 forks
Share this prompt:
Details
Category
AnalysisUse Cases
Error classificationTroubleshootingAutomated triage
Works Best With
claude-sonnet-4-20250514gpt-4o
Created Updated Shared