Update app.py
Browse files
app.py
CHANGED
|
@@ -75,7 +75,7 @@ def format_prompt(prompt,retrieved_documents,k,history,memory_limit=3):
|
|
| 75 |
for idx in range(k) :
|
| 76 |
PROMPT+= f"{retrieved_documents['0'][idx]}\n"
|
| 77 |
print("historyinfo")
|
| 78 |
-
print(history)
|
| 79 |
if len(history) == 0:
|
| 80 |
return PROMPT
|
| 81 |
|
|
|
|
| 75 |
for idx in range(k) :
|
| 76 |
PROMPT+= f"{retrieved_documents['0'][idx]}\n"
|
| 77 |
print("historyinfo")
|
| 78 |
+
print(f"{history}")
|
| 79 |
if len(history) == 0:
|
| 80 |
return PROMPT
|
| 81 |
|