added Hybrid Search with BM25
Browse files
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,
|