Sun Pharma: Microsoft Autogen powered with OpenAI models
Business Problem
About Sun Pharma
Sun Pharma, a global leader in pharmaceuticals, faced challenges in analyzing and extracting insights from its vast sales data. To overcome this, they sought an AI-driven solution that could provide real-time insights, automate data visualization, and enhance decision-making.
Solution
To address these challenges, we developed a Proof of Concept (PoC) leveraging OpenAI and Autogen’s multi-agent framework, PostgreSQL as the database, and Streamlit for UI and Pygwalker for visualization. This system enabled intelligent collaboration between specialized AI agents to process and respond to user queries efficiently.
1.
Conversational Agent
Built using OpenAI and Autogen, this chatbot interprets natural language queries and interacts with other agents.
4.
Visualization Agent
Uses Streamlit to generate automated charts, making data insights more accessible.
2.
Query Agent
Dynamically converts user queries into SQL statements to retrieve data from PostgreSQL.
5.
LLM Used
The solution leveraged OpenAI’s GPT-4 within the Autogen framework to power natural language understanding, query generation, and data analysis. This enabled seamless multi-agent collaboration for accurate and efficient insights extraction.
3.
Analysis Agent
Processes and structures the retrieved data into meaningful insights, enhancing decision-making.
Architecture
