Load analysis context for the chatbot Args: eda_results: EDA analysis results insights: Generated insights powerbi_metadata: Power BI dashboard metadata
(self,
eda_results: Optional[Dict[str, Any]] = None,
insights: Optional[List[Dict[str, Any]]] = None,
powerbi_metadata: Optional[Dict[str, Any]] = None)
| 80 | logger.info("DataAnalystChatbot initialized") |
| 81 | |
| 82 | def load_context(self, |
| 83 | eda_results: Optional[Dict[str, Any]] = None, |
| 84 | insights: Optional[List[Dict[str, Any]]] = None, |
| 85 | powerbi_metadata: Optional[Dict[str, Any]] = None): |
| 86 | """ |
| 87 | Load analysis context for the chatbot |
| 88 | |
| 89 | Args: |
| 90 | eda_results: EDA analysis results |
| 91 | insights: Generated insights |
| 92 | powerbi_metadata: Power BI dashboard metadata |
| 93 | """ |
| 94 | self.context_retriever.update_context( |
| 95 | eda_results=eda_results, |
| 96 | insights=insights, |
| 97 | powerbi_metadata=powerbi_metadata |
| 98 | ) |
| 99 | logger.info("Context loaded successfully") |
| 100 | |
| 101 | def chat(self, question: str) -> str: |
| 102 | """ |
no test coverage detected