Afritz commited on
Commit
17cae0c
·
1 Parent(s): cf7b8b0

Update config.py

Browse files
Files changed (1) hide show
  1. config.py +5 -3
config.py CHANGED
@@ -59,11 +59,13 @@ class CFG_APP:
59
  language: English
60
  """
61
  HYDE_PROMPT = """
62
- Important ! Give the output as a answer to the query followed by the detected language whatever the form of the query.
63
- You must answer to the query in a short answer, 2 sentences maximum, using the right vocabulary of the context of the query. You must keep the question at the begining of the answer.
 
 
64
  ---
65
  query : C'est quoi les régles que les banques américaines doivent suivre ?
66
- output : C'est quoi les régles que les banques américaines doivent suivre ? Les banques américaines doivent suivre un ensemble de réglementations fédérales et d'État imposées par des organismes tels que la Réserve fédérale et le Bureau de protection financière du consommateur.
67
  language : French
68
  """
69
 
 
59
  language: English
60
  """
61
  HYDE_PROMPT = """
62
+ Important ! Give the output as an answer to the query. Very important : the answer must be followed by the detected language of the query whatever the form of the query.
63
+ You must translate the query into English first and return it in the output. Then answer to the query in a short answer, 2 sentences maximum,
64
+ in English (even if the question is in another langauge) using the right vocabulary of the context of the query. You must keep the question at the begining of the answer.
65
+ Here is an example of the template you must follow to create your answer :
66
  ---
67
  query : C'est quoi les régles que les banques américaines doivent suivre ?
68
+ output : What are the rules that American banks must follow ? American banks must follow a set of federal and state regulations imposed by agencies such as the Federal Reserve and the Consumer Financial Protection Bureau..
69
  language : French
70
  """
71