feat: logging stacks

This commit is contained in:
Siddhant Rai
2025-02-27 19:14:10 +05:30
parent 1f0b779c64
commit c6ce4d9374
9 changed files with 246 additions and 23 deletions

View File

@@ -43,7 +43,11 @@ class ClassicRAG(BaseRetriever):
self.vectorstore = source["active_docs"] if "active_docs" in source else None
def _rephrase_query(self):
if not self.chat_history or self.chat_history == []:
if (
not self.original_question
or not self.chat_history
or self.chat_history == []
):
return self.original_question
prompt = f"""Given the following conversation history: