Data Analysis with LLM Agents
Kashif Manzoor
Enabling Customers for a Successful AI Adoption | AI Tech Evangelist | AI Solutions Architect
AI Tech Circle
Stay Ahead in AI with Weekly AI Roundup; read and listen on AITechCircle :
Welcome to the weekly AI Newsletter, where I provide actionable ideas and tips to assist you in your job and business.
Before we start, share this week's updates with a friend or a colleague:
Today at a Glance:
Your Data Analyst AI Agent
AI Agents are among the top ways to utilize the LLM in business. They equip you with practical tools to navigate the AI landscape. An AI agent designed for data analysis can perform tasks such as querying databases, running data processing scripts, generating visualizations, and providing insights based on the analyzed data.
This article, 'AI Agents: The Future of Enterprise AI… or Automation Repackaged?' , written by Umang Varma , already covered the basic concepts.
Based on the cookbook provided by Cohere , here's what I did to practice an AI agent for data analysis.
It connects Cohere’s Command models to external tools such as search engines, APIs, databases, and other software tools. Similar to how Retrieval-Augmented Generation (RAG) enables a model to utilize an external data source for improving factual generation, tool use allows retrieving data from multiple sources.
The AI Agent was built in this notebook to create a simple data analyst capable of searching the web and running code in a Python interpreter. This agent leverages Cohere’s Command R+ mode and Langchain to perform its tasks efficiently.
I have set up my environment by installing:
! pip install --quiet langchain langchain_cohere langchain_experimental
After this, the connection to the Cohere API is made, and the Cohere chat model is created.
Then, the agent needs to be able to search the web; to achieve this, Tavily AI is used. I created the account and got the API key.
Now, we need to have a Python interpreter. The complete notebook is available here .
Now, let's ask our Data analyst to complete the task.
Parameter passed:
"Create a plot of the top Generative AI use cases the organizations are considering for implementation."
The output:
Another Parameter:
"Create a plot of the number of full-time employees at the three tech companies with the highest market cap in the United States in 2024."
Then, it summarizes the information so that the plot can be created.
The output:
If you want fully managed AI agents, Oracle has released the OCI Generative AI Agents . This fully managed service combines the power of large language models (LLMs) with an intelligent retrieval system to create contextually relevant answers by searching your knowledge base, making your AI applications intelligent and efficient. It is in beta, and you can sign up to test your subsequent use case.
Weekly News & Updates...
Last week's AI breakthroughs marked another leap forward in the tech revolution.
The Cloud: the backbone of the AI revolution
Gen AI Use Case of the Week:
Generative AI use cases for Tech folks:
领英推荐
Marketing Content AI Assistant for Content Generation with Large Language Models
Favorite Tip Of The Week:
Here's my favorite resource of the week.
Potential of AI
Things to Know...
The Department of Homeland Security has published a report on reducing risks at the intersection of AI and CBRN (Chemical, Biological, Radiological, and Nuclear) threats.
The 9 findings were documented, and against each finding, there is a very detailed recommendation, which can be followed as a starting point.
The Opportunity...
Podcast:
Courses to attend:
Events:
Tech and Tools...
Data Sets...
Other Technology News
Want to stay on the cutting edge?
Here's what else is happening in Information Technology you should know about:
That's it!
As always, thanks for reading.
Hit reply and let me know what you found most helpful this week - I'd love to hear from you!
Until next week,
Kashif Manzoor
The opinions expressed here are solely my conjecture based on experience, practice, and observation. They do not represent the thoughts, intentions, plans, or strategies of my current or previous employers or their clients/customers. The objective of this newsletter is to share and learn with the community.