Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -70,8 +70,7 @@ def handle_query(user_message, temperature, chat_history):
|
|
| 70 |
|
| 71 |
# 使用 LangChain 的 ConversationalRetrievalChain 處理查詢
|
| 72 |
preface = """
|
| 73 |
-
指令: 全部以繁體中文呈現
|
| 74 |
-
除了文件的相關內容之外,不準回答不相關的答案,都只能回應:這問題很深奧,需要請示JohnLiao大神...
|
| 75 |
"""
|
| 76 |
query = f"{preface} 查詢內容:{user_message}"
|
| 77 |
|
|
|
|
| 70 |
|
| 71 |
# 使用 LangChain 的 ConversationalRetrievalChain 處理查詢
|
| 72 |
preface = """
|
| 73 |
+
指令: 全部以繁體中文呈現,200字以內。除了文件的相關內容之外,與文件內容不相關的問題,都只能回應:這問題很深奧,需要請示JohnLiao大神...
|
|
|
|
| 74 |
"""
|
| 75 |
query = f"{preface} 查詢內容:{user_message}"
|
| 76 |
|