larry-zy commented on issue #1539: URL: https://github.com/apache/dubbo-admin/issues/1539#issuecomment-5567895247
Pure prompt and prompt-assembly issues include: the final-answer phase reuses a system prompt that instructs the model to call tools when needed, while tools are no longer bound and the model is simultaneously required to produce a final answer. This creates an instruction conflict that may lead to fabricated verification or invalid tool calls. The prompt should therefore be split into separate act and final-answer policies, with the final-answer policy explicitly stating that no tools are available and that the answer must rely only on already provided evidence. Other issues include absolute history instructions that can induce hallucination; no clear distinction between confirmed facts, inferences, and unknowns; undefined user-facing behavior for tool failures, timeouts, empty results, and unavailable data; no rule that user input, retrieved documents, tool outputs, and future Memory content must be treated as untrusted data rather than executable instructions; redundant injecti on of tool names; and overly specific, easily outdated infrastructure rules. The prompt should be simplified into reusable policy fragments and retain stable decision principles rather than hardcoded tool names or metric details. Diagnostic answers should also follow a minimum structure covering conclusion, evidence, uncertainty, and recommended next steps. These changes are limited to `ai/prompts/agentReasonAct.txt` and `ai/component/agent/react/prompt.go` and do not depend on storage, compression, hooks, middleware, or changes in other modules. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
