He Bo
commited on
Commit
•
fcb7ecd
1
Parent(s):
fa21f89
update
Browse files
app.py
CHANGED
@@ -86,16 +86,16 @@ def get_answer(question,session_id,language,prompt,search_engine,index,top_k,sco
|
|
86 |
url += ('&llm_embedding_name=pytorch-inference-vicuna-p3-2x')
|
87 |
elif language == "chinese":
|
88 |
url += '&language=chinese'
|
89 |
-
url += ('&embedding_endpoint_name=huggingface-inference-m3e-base')
|
90 |
-
|
91 |
-
url += ('&llm_embedding_name=pytorch-inference-chatglm2-g5-
|
92 |
url += ('&prompt='+chinese_prompt)
|
93 |
|
94 |
elif language == "chinese-tc":
|
95 |
url += '&language=chinese-tc'
|
96 |
-
url += ('&embedding_endpoint_name=huggingface-inference-m3e-base')
|
97 |
-
|
98 |
-
url += ('&llm_embedding_name=pytorch-inference-chatglm2-g5-
|
99 |
|
100 |
if len(session_id) > 0:
|
101 |
url += ('&session_id='+session_id)
|
|
|
86 |
url += ('&llm_embedding_name=pytorch-inference-vicuna-p3-2x')
|
87 |
elif language == "chinese":
|
88 |
url += '&language=chinese'
|
89 |
+
# url += ('&embedding_endpoint_name=huggingface-inference-m3e-base')
|
90 |
+
url += ('&embedding_endpoint_name=huggingface-inference-text2vec-base-chinese-v1')
|
91 |
+
url += ('&llm_embedding_name=pytorch-inference-chatglm2-g5-4x')
|
92 |
url += ('&prompt='+chinese_prompt)
|
93 |
|
94 |
elif language == "chinese-tc":
|
95 |
url += '&language=chinese-tc'
|
96 |
+
# url += ('&embedding_endpoint_name=huggingface-inference-m3e-base')
|
97 |
+
url += ('&embedding_endpoint_name=huggingface-inference-text2vec-base-chinese-v1')
|
98 |
+
url += ('&llm_embedding_name=pytorch-inference-chatglm2-g5-4x')
|
99 |
|
100 |
if len(session_id) > 0:
|
101 |
url += ('&session_id='+session_id)
|