He Bo
commited on
Commit
•
95a6df4
1
Parent(s):
1536d24
updata
Browse files
app.py
CHANGED
@@ -244,12 +244,12 @@ with demo:
|
|
244 |
# qa_llm_radio = gr.Radio(["p3-8x", "g4dn-8x"],value="p3-8x",label="Chinese llm instance")
|
245 |
qa_prompt_textbox = gr.Textbox(label="Prompt( must include {context} and {question} )",placeholder=chinese_prompt,lines=2)
|
246 |
qa_search_engine_radio = gr.Radio(["OpenSearch","Kendra"],value="OpenSearch",label="Search engine")
|
247 |
-
qa_index_textbox = gr.Textbox(label="
|
248 |
qa_top_k_slider = gr.Slider(label="Top_k of source text to LLM",value=1, minimum=1, maximum=4, step=1)
|
249 |
|
250 |
temperature_slider = gr.Slider(label="temperature for LLM",value=0.01, minimum=0.0, maximum=1, step=0.01)
|
251 |
|
252 |
-
score_type_checklist = gr.CheckboxGroup(["
|
253 |
|
254 |
#language_radio.change(fn=change_prompt, inputs=language_radio, outputs=prompt_textbox)
|
255 |
|
|
|
244 |
# qa_llm_radio = gr.Radio(["p3-8x", "g4dn-8x"],value="p3-8x",label="Chinese llm instance")
|
245 |
qa_prompt_textbox = gr.Textbox(label="Prompt( must include {context} and {question} )",placeholder=chinese_prompt,lines=2)
|
246 |
qa_search_engine_radio = gr.Radio(["OpenSearch","Kendra"],value="OpenSearch",label="Search engine")
|
247 |
+
qa_index_textbox = gr.Textbox(label="OpenSearch index Or Kendra index id")
|
248 |
qa_top_k_slider = gr.Slider(label="Top_k of source text to LLM",value=1, minimum=1, maximum=4, step=1)
|
249 |
|
250 |
temperature_slider = gr.Slider(label="temperature for LLM",value=0.01, minimum=0.0, maximum=1, step=0.01)
|
251 |
|
252 |
+
score_type_checklist = gr.CheckboxGroup(["query_answer_score", "answer_docs_score","docs_list_overlap_score"],value=["query_answer_score"],label="Confidence score type")
|
253 |
|
254 |
#language_radio.change(fn=change_prompt, inputs=language_radio, outputs=prompt_textbox)
|
255 |
|