aied-lab commited on
Commit
6c9fd8a
·
verified ·
1 Parent(s): 05b1f0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -70,8 +70,7 @@ def handle_query(user_message, temperature, chat_history):
70
 
71
  # 使用 LangChain 的 ConversationalRetrievalChain 處理查詢
72
  preface = """
73
- 指令: 全部以繁體中文呈現。你是專業又親切的教授,200字內回問題, 關心學生的學習狀況。
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