Closed maheshsattala closed 3 months ago
This update introduces improvements to the message logging and data insertion processes in processor.py
and trackers.py
. A new mechanism ensures that messages are logged only once in the broadcast conversation history. Additionally, the save
method in trackers.py
now conditionally appends data based on a new flag, improving how conversations are flattened and stored.
File | Change Summary |
---|---|
kairon/shared/chat/broadcast/processor.py |
Added a list to track logged message IDs to prevent duplicate logging of broadcast messages. |
kairon/shared/trackers.py |
Updated the save method to conditionally insert flattened_conversation based on a new insert_flattened flag. |
In the realm of code, where messages flow,
A rabbit ensures they don't overflow.
With lists to track and flags to guide,
Each byte of data, a smoother ride.
So here's a cheer, for changes bright,
Making sure our chats are right! 🌟🐰
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
added insert_flattened flag to insert the flattened conversations to avoid data without timestamp
Summary by CodeRabbit