ofermend commited on
Commit
dc2274d
1 Parent(s): e5c2179

updated prompt

Browse files
Files changed (1) hide show
  1. query.py +3 -2
query.py CHANGED
@@ -36,7 +36,7 @@ class VectaraQuery():
36
  4. Limit your responses to not more than 2 paragraphs."
37
  }},
38
  {{
39
- "role": "user",
40
  "content": "
41
  #foreach ($qResult in $vectaraQueryResults)
42
  Search result $esc.java(${{foreach.index}}+1): $esc.java(${{qResult.getText()}})
@@ -47,6 +47,7 @@ class VectaraQuery():
47
  "role": "user",
48
  "content": "provide a convincing reply {role} {topic}, in response to the last argument: '{user_response}'.
49
  Consider the search results as relevant information with which to form your response, but do not mention the results in your response.
 
50
  Use the {style} debate style to make your argument.
51
  Do not repeat earlier arguments and make sure your new response is coherent with the previous arguments."
52
  }}
@@ -56,7 +57,7 @@ class VectaraQuery():
56
  return {
57
  'query': [
58
  {
59
- 'query': f"{role} {topic}, how would you respond?",
60
  'start': 0,
61
  'numResults': 50,
62
  'corpusKey': corpora_key_list,
 
36
  4. Limit your responses to not more than 2 paragraphs."
37
  }},
38
  {{
39
+ "role": "assistant",
40
  "content": "
41
  #foreach ($qResult in $vectaraQueryResults)
42
  Search result $esc.java(${{foreach.index}}+1): $esc.java(${{qResult.getText()}})
 
47
  "role": "user",
48
  "content": "provide a convincing reply {role} {topic}, in response to the last argument: '{user_response}'.
49
  Consider the search results as relevant information with which to form your response, but do not mention the results in your response.
50
+ A summary of arguments in the debate so far is: '$esc.java(${{vectaraQuery}})'.
51
  Use the {style} debate style to make your argument.
52
  Do not repeat earlier arguments and make sure your new response is coherent with the previous arguments."
53
  }}
 
57
  return {
58
  'query': [
59
  {
60
+ 'query': f"how would you respond?",
61
  'start': 0,
62
  'numResults': 50,
63
  'corpusKey': corpora_key_list,