autogen-agi
autogen-agi copied to clipboard
Resume chat when last call was to archive bot function duplicates embeddings
If the last call before a rate limit error or other error terminates execution was a call to the archive bot, the embeddings remain in the prompt when chat is resumed, but the agents are still waiting for the agent bot to return as completed. If the agent councel is instructed to run the bot again, the embeddings are duplicated.
Ideal behaviour: embeddings are evaluated for retention in context outside of chat history to ensure no duplication, or embedding de-duplication is performed on the chat history as part of the archive bots normal function