He Bo commited on
Commit
63510fe
1 Parent(s): 4c9d391
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -63,7 +63,7 @@ Please automatically generate as many questions as possible based on this manual
63
  """
64
 
65
 
66
- def get_answer(question,session_id,language,prompt,search_engine,index,top_k,temperature):
67
 
68
  if len(question) > 0:
69
  url = api + question
@@ -122,9 +122,9 @@ def get_answer(question,session_id,language,prompt,search_engine,index,top_k,tem
122
  url += ('&top_k='+str(top_k))
123
 
124
  url += ('&temperature='+str(temperature))
125
- url += ('&cal_query_answer_score=true')
126
- url += ('&cal_answer_docs_score=true')
127
- url += ('&cal_docs_list_overlap_score=true')
128
 
129
  print("url:",url)
130
 
 
63
  """
64
 
65
 
66
+ def get_answer(question,session_id,language,prompt,search_engine,index,top_k,temperature,score_type_checklist):
67
 
68
  if len(question) > 0:
69
  url = api + question
 
122
  url += ('&top_k='+str(top_k))
123
 
124
  url += ('&temperature='+str(temperature))
125
+
126
+ for score_type in score_type_checklist:
127
+ url += ('&' + score_type +'=true')
128
 
129
  print("url:",url)
130