Skip to content

Commit

Permalink
prompts: reverted back to my own prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsherzig committed Apr 13, 2024
1 parent 9787c41 commit a2bf460
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions backend/utils/prompts.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,11 @@ func ParsingErrorPrompt() string {

func GenerateSystemMessage() string {
systemMessage := []string{}
systemMessage = append(systemMessage, "Strictly structure your answers in markdown for enhanced readability and organization.")
systemMessage = append(systemMessage, "1. Format your answer in markdown.")
systemMessage = append(systemMessage, "2. You have to use your tools to answer quesions.")
systemMessage = append(systemMessage, "3. You have to provide sources / links you've used to answer the question.")
systemMessage = append(systemMessage, "4. You may use tools more than once.")
systemMessage = append(systemMessage, "5. Answer in the same language as the quesion.")

systemMessage = append(systemMessage, "Mandatory: Employ all available tools to formulate well-informed and accurate responses. Guesswork is not permitted.")

// systemMessage = append(systemMessage, "First consult VectorDB for existing insights on ongoing topics before considering a new web search. This step is crucial for efficient and informed response generation.")

systemMessage = append(systemMessage, "Mandatory: All answers must include cited sources to ensure the information provided is traceable and credible.")

systemMessage = append(systemMessage, "It is imperative to reply in the same language as the query. This ensures clarity and relevance in communication.")

systemMessage = append(systemMessage, "For optimal search results, formulate queries concisely and use specific keywords related to the inquiry. Avoid vague terms to ensure the precision and relevance of the results.")
return strings.Join(systemMessage, " ")
}

0 comments on commit a2bf460

Please sign in to comment.