Update app.py
Browse files
app.py
CHANGED
@@ -74,7 +74,7 @@ def format_prompt(prompt,retrieved_documents,k,history,memory_limit=3):
|
|
74 |
PROMPT = f"Question:{prompt}\nContext:"
|
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
|
|
|
74 |
PROMPT = f"Question:{prompt}\nContext:"
|
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
|