He Bo
commited on
Commit
•
63510fe
1
Parent(s):
4c9d391
updata
Browse files
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 |
-
|
126 |
-
|
127 |
-
|
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 |
|