VasaChiranjeevi / ai-customer-feedback-analysis

The objective of this project is to build an AI-powered system to collect and analyze customer reviews for multiple companies, generating summaries and extracting common keywords using existing free AI models. The reviews and their respective analysis will be stored in a database, and summaries will be updated
0 stars 0 forks source link

Models #11

Closed 01darshants closed 1 month ago

01darshants commented 1 month ago

Summary by Sourcery

Add a new 'analysis' app to the project, including models for managing sentiment analysis data such as companies, reviews, and summaries. Update the Django settings to include the new app.

New Features:

Enhancements:

sourcery-ai[bot] commented 1 month ago

Reviewer's Guide by Sourcery

This pull request introduces a new 'analysis' app to the Django project, defining database models for sentiment analysis and adding necessary configurations. The changes include creating model classes for Company, KeywordSummary, Review, and Summary, as well as updating the project settings to include the new app.

Sequence Diagram

sequenceDiagram
    participant C as Company
    participant KS as KeywordSummary
    participant R as Review
    participant S as Summary
    C->>KS: has many
    C->>R: has many
    C->>S: has many
    Note over C,S: All models have a ForeignKey to Company

File-Level Changes

Change Details Files
Add new 'analysis' app to the Django project
  • Create new 'analysis' app directory
  • Add 'analysis' to INSTALLED_APPS in settings.py
  • Create AppConfig for the 'analysis' app
SentimentAnalysis/SentimentAnalysis/settings.py
SentimentAnalysis/analysis/apps.py
SentimentAnalysis/analysis/__init__.py
Define database models for sentiment analysis
  • Create Company model
  • Create KeywordSummary model
  • Create Review model
  • Create Summary model
  • Define relationships between models using ForeignKey
SentimentAnalysis/analysis/models.py
Define constants for review sentiments
  • Create REVIEW_SENTIMENTS tuple with sentiment values and labels
SentimentAnalysis/SentimentAnalysis/constants.py

Tips and commands #### Interacting with Sourcery - **Trigger a new review:** Comment `@sourcery-ai review` on the pull request. - **Continue discussions:** Reply directly to Sourcery's review comments. - **Generate a GitHub issue from a review comment:** Ask Sourcery to create an issue from a review comment by replying to it. #### Customizing Your Experience Access your [dashboard](https://app.sourcery.ai) to: - Enable or disable review features such as the Sourcery-generated pull request summary, the reviewer's guide, and others. - Change the review language. - Add, remove or edit custom review instructions. - Adjust other review settings. #### Getting Help - [Contact our support team](mailto:support@sourcery.ai) for questions or feedback. - Visit our [documentation](https://docs.sourcery.ai) for detailed guides and information. - Keep in touch with the Sourcery team by following us on [X/Twitter](https://x.com/SourceryAI), [LinkedIn](https://www.linkedin.com/company/sourcery-ai/) or [GitHub](https://github.com/sourcery-ai).