Update app.py
Browse files
app.py
CHANGED
@@ -121,18 +121,13 @@ llm = ChatOpenAI(
|
|
121 |
# Create prompt template with chat history
|
122 |
template = """
|
123 |
You are an expert assistant specializing in the Mawared HR System. Your task is to provide accurate and contextually relevant answers based on the provided context and chat history. If you need more information, ask targeted clarifying questions.
|
124 |
-
|
125 |
Previous Conversation:
|
126 |
{chat_history}
|
127 |
-
|
128 |
Current Context:
|
129 |
{context}
|
130 |
-
|
131 |
Current Question:
|
132 |
{question}
|
133 |
-
|
134 |
-
Please provide a response that takes into account both the current context and the previous conversation history. If you refer to information from the chat history, make it clear where that information came from.
|
135 |
-
Don't refer to the original Document where you got your Data.
|
136 |
Answer:
|
137 |
"""
|
138 |
|
|
|
121 |
# Create prompt template with chat history
|
122 |
template = """
|
123 |
You are an expert assistant specializing in the Mawared HR System. Your task is to provide accurate and contextually relevant answers based on the provided context and chat history. If you need more information, ask targeted clarifying questions.
|
|
|
124 |
Previous Conversation:
|
125 |
{chat_history}
|
|
|
126 |
Current Context:
|
127 |
{context}
|
|
|
128 |
Current Question:
|
129 |
{question}
|
130 |
+
Please provide a response that takes into account both the current context and the previous conversation history.
|
|
|
|
|
131 |
Answer:
|
132 |
"""
|
133 |
|