Interview Prep/Agentic AI/Prompting & structured outputs

How would you prompt an LLM to classify alerts by severity?

BeginnerHands-onPrompting & structured outputs
Answer

Give the allowed labels, a short definition of each, two or three examples, and require one label only in a fixed format. Set temperature low. Then test it on 50 to 100 real historical alerts with known labels to measure accuracy before trusting it.

All Agentic AI questions Roadmap: LLM fundamentals & RAG

More on Prompting & structured outputs