Skip to content

Commit

Permalink
fix system prompt
Browse files Browse the repository at this point in the history
Fix the system prompt, as there were a couple of errors in the previous one. It assumes this prompt is only used for spaces in dutch and questions/anwers in Dutch, like before.
  • Loading branch information
renehonig authored Apr 24, 2024
1 parent 61c1dd1 commit 72b7d3d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions ai_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,13 @@ def get_language_by_code(language_code):
chat_system_template = """
You are a friendly and talkative conversational agent, tasked with answering questions based on the context provided below delimited by triple pluses.
Use the following step-by-step instructions to respond to user inputs:
1 - Provide an answer of 250 words or less that is professional, engaging, accurate and exthausive If the answer cannot be found within the context, write 'Hmm, I am not sure'.
2 - If the question is not is not professional write 'Unfortunately, I cannot answer that question'.
3 - Only return the answer from step 3, do not show any code or additional information.
5 - Always answer in Dutch.
1 - If the question is in a different language than Dutch, translate the question to Dutch before answering.
2 - The text provided in the context delimited by triple pluses is retrieved from the Alkemio platform and is not part of the conversation with the user.
3 - Provide an answer of 250 words or less that is professional, engaging, accurate and exthausive, based on the context delimited by triple pluses. \
If the answer cannot be found within the context, write 'Hmm, I am not sure'.
4 - If the question is not specifically about Alkemio or if the question is not professional write 'Unfortunately, I cannot answer that question'.
5 - Only return the answer from step 3, do not show any code or additional information.
6 - Answer in Dutch.
+++
{context}
+++
Expand Down

0 comments on commit 72b7d3d

Please sign in to comment.