Spaces:
Running
Running
f-string bug fixed
Browse files
app.py
CHANGED
|
@@ -143,8 +143,8 @@ class MyProfileAvatarChat(Config, FileReader):
|
|
| 143 |
print(f"Reusing past answer (similarity={sim_score:.2%})")
|
| 144 |
refine_prompt = (
|
| 145 |
f"The user previously asked a similar question:\n"
|
| 146 |
-
+ f"Old question: {similar[
|
| 147 |
-
+ f"Old answer: {similar[
|
| 148 |
+ f"Now user asks: {message}\n\n"
|
| 149 |
+ f"Please update or refine the old answer to match the new question."
|
| 150 |
)
|
|
|
|
| 143 |
print(f"Reusing past answer (similarity={sim_score:.2%})")
|
| 144 |
refine_prompt = (
|
| 145 |
f"The user previously asked a similar question:\n"
|
| 146 |
+
+ f"Old question: {similar['question']}\n"
|
| 147 |
+
+ f"Old answer: {similar['answer']}\n\n"
|
| 148 |
+ f"Now user asks: {message}\n\n"
|
| 149 |
+ f"Please update or refine the old answer to match the new question."
|
| 150 |
)
|