Spaces:
Runtime error
Runtime error
Update utils.py
Browse files
utils.py
CHANGED
@@ -146,9 +146,7 @@ def summarize_messages(demo_ephemeral_chat_history, llm):
|
|
146 |
History:
|
147 |
Human: {human}
|
148 |
AI: {AI}
|
149 |
-
Output:
|
150 |
-
|
151 |
-
'''
|
152 |
)
|
153 |
,
|
154 |
]
|
@@ -170,9 +168,7 @@ def get_question_from_summarize(summary, question, llm):
|
|
170 |
'''
|
171 |
Summary: {summary}
|
172 |
Question: {question}
|
173 |
-
Output:
|
174 |
-
|
175 |
-
'''
|
176 |
)
|
177 |
]
|
178 |
)
|
@@ -187,9 +183,7 @@ def get_final_answer(question, context, prompt, llm):
|
|
187 |
("human", '''
|
188 |
Context: {context}
|
189 |
Question: {question}
|
190 |
-
Output:
|
191 |
-
|
192 |
-
'''),
|
193 |
]
|
194 |
)
|
195 |
|
|
|
146 |
History:
|
147 |
Human: {human}
|
148 |
AI: {AI}
|
149 |
+
Output:'''
|
|
|
|
|
150 |
)
|
151 |
,
|
152 |
]
|
|
|
168 |
'''
|
169 |
Summary: {summary}
|
170 |
Question: {question}
|
171 |
+
Output:'''
|
|
|
|
|
172 |
)
|
173 |
]
|
174 |
)
|
|
|
183 |
("human", '''
|
184 |
Context: {context}
|
185 |
Question: {question}
|
186 |
+
Output:'''),
|
|
|
|
|
187 |
]
|
188 |
)
|
189 |
|