Namitg02 commited on
Commit
0a1accf
·
verified ·
1 Parent(s): eb94f10

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -74,6 +74,8 @@ 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
  if len(history) == 0:
78
  return PROMPT
79
 
 
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
81