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