You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've searched for similar issues and couldn't find anything matching
I've discussed this feature request in the K8sGPT Slack and got positive feedback
Is this feature request related to a problem?
Yes
Problem Description
Currently, the prompt used by the tool doesn't prevent "Prompt Manipulation" where inputs like language or error messages could be used to totally change the intention of the prompt. It also doesn't specify a length for the reply, not being able to define a max number of tokens that can be expensive.
Solution Description
Prevent prompt injection by being specific on what is the “variable” text.
Keep it concise, no more than 280 characters (like a tweet)
Clear output format: Error and Proposed Solution.
default_prompt=`Simplify the following Kubernetes error message delimited by triple dashes written in --- %s --- language; --- %s ---. Provide the most possible solution in a step by step style in no more than 280 characters. Write the output in the following format: Error: {Explain error here} Solution: {Step by step solution here} `
Benefits
Security
Limit tokens
Reliable/Expected output format.
Potential Drawbacks
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Checklist
Is this feature request related to a problem?
Yes
Problem Description
Currently, the prompt used by the tool doesn't prevent "Prompt Manipulation" where inputs like language or error messages could be used to totally change the intention of the prompt. It also doesn't specify a length for the reply, not being able to define a max number of tokens that can be expensive.
Solution Description
Benefits
Potential Drawbacks
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: