|
| 1 | +# Batch Message Analysis and Categorization Demo |
| 2 | +This demo showcases an AI-powered solution for analyzing batches of customer messages, categorizing them into hierarchical levels, extracting sentiment scores, and generating structured reports. |
| 3 | + |
| 4 | +## Key Features |
| 5 | +* **Hierarchical Categorization**: Automatically categorizes messages into three levels of hierarchy: |
| 6 | + + Primary Category: High-level categorization |
| 7 | + + Secondary Category: Mid-level categorization, building upon primary categories |
| 8 | + + Tertiary Category: Low-level categorization, providing increased specificity and detail |
| 9 | +* **Sentiment Analysis**: Extracts sentiment scores for each message, ranging from very negative (1) to very positive (10) |
| 10 | +* **Structured Reporting**: Generates a comprehensive report analyzing the batch of messages, including: |
| 11 | + + Category distribution across all three levels |
| 12 | + + Sentiment score distribution |
| 13 | + + Summaries of key findings and insights |
| 14 | + |
| 15 | +## Data Requirements |
| 16 | +* Customer messages should be stored in a CSV file(s) within a folder named `data`. |
| 17 | +* Each CSV file should contain a column with the message text. |
| 18 | + |
| 19 | +## Getting Started |
| 20 | +To run the demo, follow these steps: |
| 21 | +1. Clone the repository using `git clone`. |
| 22 | +2. Place your CSV files containing customer messages in the `data` folder. |
| 23 | +3. Install dependencies using `pip install -r requirements.txt`. |
| 24 | +4. Run the application using `streamlit run app.py`. |
| 25 | + |
| 26 | +## Example Use Cases |
| 27 | +* Analyze customer feedback from surveys, reviews, or social media platforms to identify trends and patterns. |
| 28 | +* Inform product development and customer support strategies by understanding customer sentiment and preferences. |
| 29 | +* Optimize marketing campaigns by targeting specific customer segments based on their interests and concerns. |
| 30 | + |
| 31 | +## Technical Details |
| 32 | +* The solution leverages Oracle Cloud Infrastructure (OCI) GenAI, a suite of AI services designed to simplify AI adoption. |
| 33 | +* Specifically, this demo utilizes the Cohere R+ model, a state-of-the-art language model optimized for natural language processing tasks. |
| 34 | +* All aspects of the demo, including: |
| 35 | + + Hierarchical categorization |
| 36 | + + Sentiment analysis |
| 37 | + + Structured report generation |
| 38 | +are powered by GenAI, ensuring accurate and efficient analysis of customer messages. |
| 39 | + |
| 40 | +## Output |
| 41 | +The demo will display an interactive dashboard with the generated report, providing valuable insights into customer messages, including: |
| 42 | +* Category distribution across all three levels |
| 43 | +* Sentiment score distribution |
| 44 | +* Summaries of key findings and insights |
| 45 | + |
| 46 | +## Contributing |
| 47 | +We welcome contributions to improve and expand the capabilities of this demo. Please fork the repository and submit a pull request with your changes. |
| 48 | + |
| 49 | +## License |
| 50 | +Copyright (c) [Year] Oracle Corporation. All rights reserved. |
| 51 | + |
| 52 | +This demo is proprietary software owned by Oracle Corporation. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: |
| 53 | +* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. |
| 54 | +* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. |
| 55 | +* Neither the name of Oracle Corporation nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. |
| 56 | + |
| 57 | +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
0 commit comments