Skip to content

Commit

Permalink
fix: improve default_prompt (#406)
Browse files Browse the repository at this point in the history
* fix: improve default_prompt

Signed-off-by: Camilo Giraldo <camigira@gmail.com>

* fix: specific instructions for prompt output

Signed-off-by: Camilo Giraldo <camigira@gmail.com>

---------

Signed-off-by: Camilo Giraldo <camigira@gmail.com>
Co-authored-by: Alex Jones <alexsimonjones@gmail.com>
  • Loading branch information
camigira and AlexsJones committed May 16, 2023
1 parent af826d5 commit 06542b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/ai/prompts.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
package ai

const (
default_prompt = "Simplify the following Kubernetes error message and provide a solution in %s: %s"
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}
`
)

0 comments on commit 06542b4

Please sign in to comment.