Stuck on Memory and Ignoring the Vector Database

Hi everyone! I’ve run into an issue with the AI Agent node in n8n.

  1. 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?
  1. 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?

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.