Sun Pharma: AI-Driven Data Insights with OpenAI Autogen
Business Problem
About Atria
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 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.
Graph Tool Agent – A lightweight, Power BI-inspired module integrated with Streamlit to generate custom graphs without requiring a full dashboard.
3.
Analysis Agent – Processes and structures the retrieved data into meaningful insights, enhancing decision-making.
6.
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.