Prompt Copilot
Overview
mse-promptcopilot (MSE Prompt debugging and optimization assistant) combines Prompt debugging and intelligent Prompt optimization in a single Agent. Before you publish a Prompt, use it to verify model responses and optimize the Prompt content based on your requirements.
Debug a Prompt
Prompt debugging lets you verify a Prompt with real or simulated user inputs, and check whether the model follows the configured role, tasks, output format, and constraints.
Procedure
Provide the Prompt to debug to the Agent.
Provide user inputs for testing.
Review the model response and check whether the content, format, tone, and length meet your expectations.
Adjust the Prompt or the user inputs based on the debugging results, and test again.
Intelligently optimize a Prompt
If debugging results do not meet your expectations, use intelligent Prompt optimization to generate an optimized Prompt.
Procedure
Provide the Prompt to optimize to the Agent.
(Optional) Specify optimization requirements, such as more concise responses, a fixed output format, additional constraints, or a different expression style.
Review the optimized Prompt returned by the Agent and decide whether to adopt it.
Debug the optimized Prompt again to verify the actual effect.
Recommended workflow
Debug the original Prompt with representative user inputs.
Identify the issues to improve based on the model responses.
Use intelligent Prompt optimization to generate a new Prompt.
Debug the new Prompt with the same inputs and compare the results before and after optimization.
After verification, save and publish the confirmed Prompt through your existing process.
Usage notes
If the Prompt contains variables, test with different variable values, covering empty values, boundary values, and abnormal values.
More specific optimization requirements produce results that are easier to verify. Avoid vague descriptions such as "better effect".
Model outputs have a degree of randomness. We recommend that you test with multiple sets of inputs.
Do not include passwords, keys, or personal sensitive information in the Prompt, user inputs, or optimization requirements.