Closed preritdas closed 1 month ago
The changes introduce a new file, real_intent/analyze/insights/many.py
, which implements functionality for generating insights from Personally Identifiable Information (PII) data using OpenAI's language model. It defines two classes, OpenAIInsightsGenerator
and ValidatedInsightsGenerator
, both extending BaseAnalyzer
. These classes include methods for analyzing PII data and generating structured insights, while also incorporating validation information. Additionally, data models for insights are defined using Pydantic for validation and structure.
File(s) | Change Summary |
---|---|
real_intent/analyze/insights/many.py |
Introduced OpenAIInsightsGenerator and ValidatedInsightsGenerator classes for generating insights from PII data. Added LeadInsights and ValidatedLeadInsights models. Methods for analysis and validation extraction implemented. |
Objective | Addressed | Explanation |
---|---|---|
Add insights for each lead in integrations (#93) | ✅ |
🐇 In the meadow where insights bloom,
A rabbit hops to dispel the gloom.
With PII in hand, we craft and weave,
New tales of leads, oh, how they cleave!
CSVs now dance with insights bright,
A joyful leap into the night! 🌙
[!TIP]
Early access features: enabled
We are currently testing new code review model(s) that may lead to higher noise levels in the review comments. Please disable the early access features if the noise level causes any inconvenience. Note: - You can enable or disable early access features from the CodeRabbit UI or by updating the CodeRabbit configuration file.
@coderabbitai resolve
Closes #93.
Implements the generation of an insight for each lead, keeping overall insights in context.
Summary by CodeRabbit
Release Notes
New Features
Refactor
Bug Fixes
Tests