From fc52cc02bc87b1573ddc1c267694004fc1ad1447 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Thu, 28 Nov 2024 07:57:10 -0600 Subject: [PATCH] Prompt engineering for a tighter list --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index bd1f919..b2defd7 100644 --- a/main.go +++ b/main.go @@ -152,7 +152,7 @@ func (sl *ShortLinks) serveSuggest(w http.ResponseWriter, r *http.Request) { user := strings.Join(r.Form["short"], "\n") comp, err := sl.oai.completeChat( - "You are an assistant helping a user choose useful short names for a URL shortener. The request contains a list recents names chosen by the user, separated by newlines, with the most recent names first. Respond with only a list of possible suggestions for additional short names, separated by newlines. Suggestions may include conceptual variations of the names provided, plural/singular variations, hyphenation variations, or other variations that are likely to be useful. Your bar for suggestions should be relatively high; responding with a short list of high quality suggestions is preferred.", + "You are an assistant helping a user choose useful short names for a URL shortener. The request contains a list recents names chosen by the user, separated by newlines, with the most recent names first. Respond with only a list of possible suggestions for additional short names, separated by newlines. In descending order of preference, suggestions should include: plural/singular variations, 2 and 3 letter abbreivations, conceptual variations, other variations that are likely to be useful. Your bar for suggestions should be relatively high; responding with a shorter list of high quality suggestions is preferred.", user, ) if err != nil {