Hi everyone — I’m building an AI agent with Supabase as my knowledge base (documents + embeddings) and MongoDB for chat memory.
Problem: when the website content (Supabase) updates, the KB and embeddings get updated, but older chat memory still contains references/summaries from the previous content. The agent continues answering using stale info from chat memory. I don’t want to delete chat memory every time the KB changes. What’s the recommended pattern to keep chat memory and knowledge base consistent?Also i need to update the supabase when the website updated automatically?Any ideas
Thank you
Then you need to “update” as well the other “memory” …
Or if the “KB” is more important , then shorten the length(pruning) for the basic memory in Mongo, or update it somehow so it up to date with other.