diff --git a/UseCases/Complaints_Analysis_GenAI_Gemini/Complaint_Analysis_Customer360.ipynb b/UseCases/Complaints_Analysis_GenAI_Gemini/Complaint_Analysis_Customer360.ipynb index 3a078d54..b86a6ff8 100644 --- a/UseCases/Complaints_Analysis_GenAI_Gemini/Complaint_Analysis_Customer360.ipynb +++ b/UseCases/Complaints_Analysis_GenAI_Gemini/Complaint_Analysis_Customer360.ipynb @@ -19,16 +19,16 @@ "id": "19c23c87-b5a5-4905-913e-d4f7980497fa", "metadata": {}, "source": [ - "
Introduction:
\n", - "Complaints Analysis Integration with Customer360 is a comprehensive approach to managing customer complaints and feedback within the framework of a Customer 360-degree view using Teradata Vantage and Google Gemini. This integration aims to provide a seamless and personalized customer experience by leveraging data from various sources, including CRM systems, marketing platforms, and social media.
The key components of this integration include:
\n", + "Introduction:
\n", + "Complaints Analysis Integration with Customer360 is a comprehensive approach to managing customer complaints and feedback within the framework of a Customer 360-degree view using Teradata Vantage and Google Gemini. This integration aims to provide a seamless and personalized customer experience by leveraging data from various sources, including CRM systems, marketing platforms, and social media.
The key components of this integration include:
\n", "\n", - "The benefits of this integration include:
The benefits of this integration include:
By integrating complaints analysis with Customer 360, businesses can create a more comprehensive and personalized customer experience, driving business growth and customer satisfaction.
\n", + "By integrating complaints analysis with Customer 360, businesses can create a more comprehensive and personalized customer experience, driving business growth and customer satisfaction.
\n", "\n", - "Steps in the analysis:
\n", - "Steps in the analysis:
\n", + "1.1 Install the required libraries
" + "1.1 Install the required libraries
" ] }, { @@ -66,7 +66,7 @@ "metadata": {}, "source": [ "Note: Please restart the kernel after executing these two lines. The simplest way to restart the Kernel is by typing zero zero: 0 0
" + "Note: Please restart the kernel after executing these two lines. The simplest way to restart the Kernel is by typing zero zero: 0 0
" ] }, { @@ -74,11 +74,11 @@ "id": "7e7e5046-3c5f-4f6d-aeaf-60028655ff13", "metadata": {}, "source": [ - "1.2 Import the required libraries
\n", + "1.2 Import the required libraries
\n", "\n", - "Here, we import the required libraries, set environment variables and environment paths (if required).
" + "Here, we import the required libraries, set environment variables and environment paths (if required).
" ] }, { @@ -105,11 +105,11 @@ "id": "768bf2ed-ae11-4969-b20a-88496e4a2b67", "metadata": {}, "source": [ - "2.1 Connect to Vantage
\n", - "We will be prompted to provide the password. We will enter the password, press the Enter key, and then use the down arrow to go to the next cell.
" + "2.1 Connect to Vantage
\n", + "We will be prompted to provide the password. We will enter the password, press the Enter key, and then use the down arrow to go to the next cell.
" ] }, { @@ -130,7 +130,7 @@ "id": "aed444a1-f0de-4bff-b0b9-d2c4e92573f5", "metadata": {}, "source": [ - "Begin running steps with Shift + Enter keys.
" + "Begin running steps with Shift + Enter keys.
" ] }, { @@ -138,10 +138,10 @@ "id": "782ff009-1182-45c0-aa75-2957518ae7c2", "metadata": {}, "source": [ - "2.2 Getting Data for This Demo
\n", - "We have provided data for this demo on cloud storage. We have the option of either running the demo using foreign tables to access the data without using any storage on our environment or downloading the data to local storage, which may yield somewhat faster execution. However, we need to consider available storage. There are two statements in the following cell, and one is commented out. We may switch which mode we choose by changing the comment string.
" + "2.2 Getting Data for This Demo
\n", + "We have provided data for this demo on cloud storage. We have the option of either running the demo using foreign tables to access the data without using any storage on our environment or downloading the data to local storage, which may yield somewhat faster execution. However, we need to consider available storage. There are two statements in the following cell, and one is commented out. We may switch which mode we choose by changing the comment string.
" ] }, { @@ -160,9 +160,9 @@ "id": "53e3b7cf-b45e-483f-8db5-b78527ed873c", "metadata": {}, "source": [ - "Please enter the Google API Key, if you don't have one, please get it from here
" + "Please enter the Google API Key, if you don't have one, please get it from here
" ] }, { @@ -181,9 +181,9 @@ "id": "75d9ca05-b97e-4336-a439-65f52180e8e8", "metadata": {}, "source": [ - "The following section defines the type of Gemini model used. Here we use gemini-1.5-flash
" + "The following section defines the type of Gemini model used. Here we use gemini-1.5-flash
" ] }, { @@ -196,7 +196,7 @@ "from google.generativeai.types import HarmCategory, HarmBlockThreshold\n", "\n", "model = genai.GenerativeModel(\n", - " model_name = \"models/gemini-1.5-flash\"\n", + " model_name = \"models/gemini-2.5-flash\"\n", ")" ] }, @@ -205,16 +205,16 @@ "id": "596cfbe5-e6d7-4b14-9d46-08929397e1a3", "metadata": {}, "source": [ - "Sentiment Analysis, Topic Modelling and Complaint Summarization using Large Language Models (LLMs) revolutionizes the way we understand and categorize vast collections of text data. LLMs excel in understanding the semantics and context of words, enabling sophisticated topic modeling techniques.
\n", + "Sentiment Analysis, Topic Modelling and Complaint Summarization using Large Language Models (LLMs) revolutionizes the way we understand and categorize vast collections of text data. LLMs excel in understanding the semantics and context of words, enabling sophisticated topic modeling techniques.
\n", "\n", - "Sentiment Analysis Using Large Language Models (LLMs) is a cutting-edge approach to understanding customer opinions and emotions expressed through text-based data. This advanced technique leverages the capabilities of LLMs to accurately identify and categorize sentiment as positive, negative, or neutral, providing businesses with valuable insights into customer perceptions and preferences.
\n", + "Sentiment Analysis Using Large Language Models (LLMs) is a cutting-edge approach to understanding customer opinions and emotions expressed through text-based data. This advanced technique leverages the capabilities of LLMs to accurately identify and categorize sentiment as positive, negative, or neutral, providing businesses with valuable insights into customer perceptions and preferences.
\n", "\n", - "LLMs can generate coherent topics without needing predefined categories, making them ideal for exploratory analysis of diverse datasets. Moreover, their ability to capture subtle nuances in language allows for more precise topic identification, even in noisy or ambiguous texts.
\n", + "LLMs can generate coherent topics without needing predefined categories, making them ideal for exploratory analysis of diverse datasets. Moreover, their ability to capture subtle nuances in language allows for more precise topic identification, even in noisy or ambiguous texts.
\n", "\n", - "Reasoning with a Chain of Thought: Imagine you're trying to solve a problem. With a large language model, you start with an initial idea or question. Then, you use the model's capabilities to explore related concepts, gradually connecting them together. Each step builds upon the previous one, leading you closer to understanding or solving the problem. It's like putting together puzzle pieces, one by one, until you see the whole picture.
" + "Reasoning with a Chain of Thought: Imagine you're trying to solve a problem. With a large language model, you start with an initial idea or question. Then, you use the model's capabilities to explore related concepts, gradually connecting them together. Each step builds upon the previous one, leading you closer to understanding or solving the problem. It's like putting together puzzle pieces, one by one, until you see the whole picture.
" ] }, { @@ -406,9 +406,9 @@ "id": "576a3dd9-b74c-4a11-851c-6565d1a347e0", "metadata": {}, "source": [ - "The following is an example of the output from LLM integrated with existing customer360 data. Please scroll to the right to see all the columns.
" + "The following is an example of the output from LLM integrated with existing customer360 data. Please scroll to the right to see all the columns.
" ] }, { @@ -427,7 +427,7 @@ "id": "06cbb0f4-d026-4a0b-8ab8-6982b7f7777a", "metadata": {}, "source": [ - "Now the results can be saved back to Vantage.
" + "Now the results can be saved back to Vantage.
" ] }, { @@ -455,8 +455,8 @@ "id": "561ff317-6468-4941-bf9b-840849bfb09d", "metadata": {}, "source": [ - "Databases and Tables
\n", - "The following code will clean up tables and databases created above.
" + "Databases and Tables
\n", + "The following code will clean up tables and databases created above.
" ] }, { @@ -493,11 +493,11 @@ "id": "6cf670cd-4594-458d-af98-8efff5a72f73", "metadata": {}, "source": [ - "The dataset is sourced from Consumer Financial Protection Bureau
" + "The dataset is sourced from Consumer Financial Protection Bureau
" ] }, { @@ -505,11 +505,11 @@ "id": "eeebf3ab-357c-488e-ba9d-78bf82f4d0dd", "metadata": {}, "source": [ - "