Afritz commited on
Commit
1c689e8
·
1 Parent(s): 823114a

Update config.py

Browse files
Files changed (1) hide show
  1. config.py +6 -5
config.py CHANGED
@@ -21,7 +21,8 @@ class CFG_APP:
21
  )
22
  SOURCES_PROMPT = (
23
  "When relevant, use facts and numbers from the following documents in your answer. "
24
- "Whenever you use information from a document, reference it at the end of the sentence (ex: [doc 2]). "
 
25
  "You don't have to use all documents, only if it makes sense in the conversation. "
26
  "If no relevant information to answer the question is present in the documents, "
27
  "just say you don't have enough information to answer."
@@ -58,10 +59,10 @@ class CFG_APP:
58
  standalone question: What does UL (Unexpected Loss) stand for?
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 ?
 
21
  )
22
  SOURCES_PROMPT = (
23
  "When relevant, use facts and numbers from the following documents in your answer. "
24
+ "Whenever you use information from a document, reference it at the end of the sentence by naming it Exc (ex: [exc 2])."
25
+ "Very important ! Never use the word Document or Doc for referencing an Excerpt, always exc. "
26
  "You don't have to use all documents, only if it makes sense in the conversation. "
27
  "If no relevant information to answer the question is present in the documents, "
28
  "just say you don't have enough information to answer."
 
59
  standalone question: What does UL (Unexpected Loss) stand for?
60
  language: English
61
  """
62
+
63
+ HYDE_PROMPT ="""
64
+ Important ! Give the output as an answer to the query. First you will translate the query in English and then answer it, in English, in 2 sentences maximum using the right vocabulary of the context of the query.
65
+ Very important : the answer must be followed by the detected language of the query whatever the form of the query. You must keep the question at the begining of the answer.
66
  Here is an example of the template you must follow to create your answer :
67
  ---
68
  query : C'est quoi les régles que les banques américaines doivent suivre ?