WanIrfan commited on
Commit
e92b03a
·
verified ·
1 Parent(s): caf1cab

Update src/doc_qa.py

Browse files
Files changed (1) hide show
  1. src/doc_qa.py +1 -1
src/doc_qa.py CHANGED
@@ -634,7 +634,7 @@ class AgenticQA:
634
  logger.info(f"Tool used: {tool_used}, Source determined: {source}")
635
 
636
 
637
- if (source.endswith("(RAG)") or source.startswith("Etiqa Takaful Database")) and self._last_context:
638
  context = self._last_context
639
  elif "Web" in source:
640
  context = "Web search results were used. See 'Observation' in thoughts log."
 
634
  logger.info(f"Tool used: {tool_used}, Source determined: {source}")
635
 
636
 
637
+ if (source.endswith("(RAG)") or source.startswith("Etiqa Takaful Database")) and self._last_context:
638
  context = self._last_context
639
  elif "Web" in source:
640
  context = "Web search results were used. See 'Observation' in thoughts log."