MCPcopy Create free account
hub / github.com/Litishkumar/AnalyticaX / load_context

Method load_context

chatbot_engine.py:82–99  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers 1

update_chatbot_contextFunction · 0.80

Calls 1

update_contextMethod · 0.80

Tested by

no test coverage detected