From 06542b4bf1aec193f11a40526a1b60be01972e66 Mon Sep 17 00:00:00 2001 From: Camilo Giraldo Date: Wed, 17 May 2023 06:03:33 +1000 Subject: [PATCH] fix: improve default_prompt (#406) * fix: improve default_prompt Signed-off-by: Camilo Giraldo * fix: specific instructions for prompt output Signed-off-by: Camilo Giraldo --------- Signed-off-by: Camilo Giraldo Co-authored-by: Alex Jones --- pkg/ai/prompts.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/ai/prompts.go b/pkg/ai/prompts.go index 6ba5d07053..59a59886b1 100644 --- a/pkg/ai/prompts.go +++ b/pkg/ai/prompts.go @@ -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} + ` )