Hi everyone! I’ve run into an issue with the AI Agent node in n8n.
- Repeatedly ignoring the vector database
If the AI Agent fails to find information in the vector database multiple times, it records in Tool Memory (Postgres Chat Memory1) that it “doesn’t know”. After that, it gets stuck and only responds based on Memory, without checking the vector database again.
- If I manually clear the Memory, it starts retrieving information from the vector database properly again.
- Has anyone experienced this issue? How can I force the AI Agent not to get stuck on Memory and always check the vector database?
- Clearing old messages in Postgres Memory
In Tool Memory, I have Postgres connected, and it’s set to remember the last 5 messages.
- Should old records be automatically deleted from the table, or do they stay there permanently?
- If they stay, how can I set up automatic cleanup?