alxkm/triage-explain ? reverse-engineered prompt

Reverse engineered prompt

Build me a Java project that takes telemetry detector results and turns them into short plain language explanations for operators.

The detectors should make the actual decision about whether a reading looks like a process change, an instrument fault, or data path corruption, and then a local model should only explain that decision. I want the explanations to be tightly grounded, with a fallback template when the model response is missing or breaks the rules. The response should always be one JSON object with the cause, the explanation, and the next check to do, and it should stay short and not mention unsupported causes.

Use a local Ollama model, and support calling it through both Spring AI and LangChain4j. I also want a small reproducible benchmark setup that can export incidents, run the experiments, resume if interrupted, and write results and summaries to disk. If you need to check current docs online for the libraries or Ollama, feel free to do that.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab