Rajat.bans
commited on
Commit
•
35228f7
1
Parent(s):
2ac13d6
Removed reformulation
Browse files
rag.py
CHANGED
@@ -107,8 +107,8 @@ def chatWithRag(reformulationPrompt, QAPrompt, question, chat_history):
|
|
107 |
if QAPrompt != None or len(QAPrompt):
|
108 |
curr_question_prompt = QAPrompt
|
109 |
|
110 |
-
reformulated_query = reformulate_question(chat_history, question, reformulationPrompt)
|
111 |
-
|
112 |
retreived_documents = [
|
113 |
doc
|
114 |
for doc in db.similarity_search_with_score(reformulated_query)
|
|
|
107 |
if QAPrompt != None or len(QAPrompt):
|
108 |
curr_question_prompt = QAPrompt
|
109 |
|
110 |
+
# reformulated_query = reformulate_question(chat_history, question, reformulationPrompt)
|
111 |
+
reformulated_query = question
|
112 |
retreived_documents = [
|
113 |
doc
|
114 |
for doc in db.similarity_search_with_score(reformulated_query)
|