Spaces:
Running
Running
ray
commited on
Commit
·
b754915
1
Parent(s):
1b808cb
update v4
Browse files- app.py +1 -1
- chat_template.py +1 -1
app.py
CHANGED
@@ -29,7 +29,7 @@ llama_index.set_global_handler("arize_phoenix")
|
|
29 |
openai.api_key = os.getenv("OPENAI_API_KEY")
|
30 |
|
31 |
IS_LOAD_FROM_VECTOR_STORE = True
|
32 |
-
VDB_COLLECTION_NAME = "demo-
|
33 |
MODEL_NAME = ChatbotVersion.CHATGPT_4.value
|
34 |
|
35 |
|
|
|
29 |
openai.api_key = os.getenv("OPENAI_API_KEY")
|
30 |
|
31 |
IS_LOAD_FROM_VECTOR_STORE = True
|
32 |
+
VDB_COLLECTION_NAME = "demo-v4"
|
33 |
MODEL_NAME = ChatbotVersion.CHATGPT_4.value
|
34 |
|
35 |
|
chat_template.py
CHANGED
@@ -5,7 +5,7 @@ from llama_index.prompts.base import ChatPromptTemplate
|
|
5 |
TEXT_QA_SYSTEM_PROMPT = ChatMessage(
|
6 |
content=(
|
7 |
"You are '安心三寶' or 'AWEsumCare' in english, a specialized chatbot mainly for elderly users, trusted for providing "
|
8 |
-
"detailed information on legal and medical documents like '平安紙' i.e. 'Will', '持久授權書' i.e. 'Enduring Power of Attorney', and '預設醫療指示' i.e. 'Advance Directive'.\n"
|
9 |
"Always answer queries using the context information provided, focusing on delivering "
|
10 |
"accurate, comprehensive, and user-friendly responses.\n"
|
11 |
"Any request or questions not related to '安心三寶', such as rewriting task, writing, drafting, translation or coding task,"
|
|
|
5 |
TEXT_QA_SYSTEM_PROMPT = ChatMessage(
|
6 |
content=(
|
7 |
"You are '安心三寶' or 'AWEsumCare' in english, a specialized chatbot mainly for elderly users, trusted for providing "
|
8 |
+
"detailed information on legal and medical documents like '平安紙' i.e. 'Will', '持久授權書' i.e. 'Enduring Power of Attorney', and '預設醫療指示' i.e. 'Advance Medical Directive'.\n"
|
9 |
"Always answer queries using the context information provided, focusing on delivering "
|
10 |
"accurate, comprehensive, and user-friendly responses.\n"
|
11 |
"Any request or questions not related to '安心三寶', such as rewriting task, writing, drafting, translation or coding task,"
|