MikeMann commited on
Commit
358265f
·
1 Parent(s): fbf9ef6

added Hybrid Search with BM25

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -420,11 +420,11 @@ class BSIChatbot:
420
  # )
421
 
422
  # Alles außer letzte Useranfrage, Normaler Query
423
- query, context = self.retrieval(query, rerankingStep)
424
  if stepBackPrompt == True:
425
  stepBackQuery = self.stepBackPrompt(query)
426
  print("DBG stepBackQuery:" + stepBackQuery)
427
- stepBackQuery, stepBackContext = self.retrieval(stepBackQuery, rerankingStep)
428
  print("DBG stepBackContext:" + stepBackContext)
429
  sysPrompt = """
430
  You are an helpful Chatbot for the BSI IT-Grundschutz. Using the information contained in the context,
 
420
  # )
421
 
422
  # Alles außer letzte Useranfrage, Normaler Query
423
+ query, context = self.retrieval(query, rerankingStep, True)
424
  if stepBackPrompt == True:
425
  stepBackQuery = self.stepBackPrompt(query)
426
  print("DBG stepBackQuery:" + stepBackQuery)
427
+ stepBackQuery, stepBackContext = self.retrieval(stepBackQuery, rerankingStep, True)
428
  print("DBG stepBackContext:" + stepBackContext)
429
  sysPrompt = """
430
  You are an helpful Chatbot for the BSI IT-Grundschutz. Using the information contained in the context,