AminFaraji commited on
Commit
32b1759
·
verified ·
1 Parent(s): a1eebfa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -158,9 +158,11 @@ def get_llama_response(message: str, history: list) -> str:
158
  #message='how does alice meet the mad hatter?'
159
  ######################
160
  # Search the DB for similar documents to the query.
 
161
  results = db.similarity_search_with_relevance_scores(message, k=3)
162
  if len(results) == 0 or results[0][1] < 0.5:
163
  print(f"Unable to find matching results.")
 
164
 
165
 
166
  context_text = "\n\n---\n\n".join([doc.page_content for doc, _score in results])
 
158
  #message='how does alice meet the mad hatter?'
159
  ######################
160
  # Search the DB for similar documents to the query.
161
+ print('before searching inside the db')
162
  results = db.similarity_search_with_relevance_scores(message, k=3)
163
  if len(results) == 0 or results[0][1] < 0.5:
164
  print(f"Unable to find matching results.")
165
+ print('after searching inside the db')
166
 
167
 
168
  context_text = "\n\n---\n\n".join([doc.page_content for doc, _score in results])