Interview Prep/Agentic AI/Prompting & structured outputs

Your summarisation prompt works for short logs but misses key errors in long ones. What do you change?

IntermediateScenarioPrompting & structured outputs
Answer

Long inputs dilute attention. Pre-filter the logs in code (errors, warnings, unique stack traces), chunk them and summarise each chunk, then summarise the summaries. Tell the model explicitly what matters, such as first error, error rate change and affected services.

All Agentic AI questions Roadmap: LLM fundamentals & RAG

More on Prompting & structured outputs