Reading database

Describe the problem/error/question

how to avoid spending tokens on reading the database every time? I want to read the database once and not access it again until it is updated if possible

Information on your n8n setup

  • n8n version: [email protected]
  • Database (default: Supabase, postgresql):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (n8n cloud,):

Hi there, do you mean database as a tool connected to an AI Agent? Can you share your workflow please

attached workflow

in your workflow you have attached database as memory. So it will access it every time ai agent runs for inserting and accessing these input and outputs of ai agent.
For:

you can decrease Context Window Length. More the context window more input to llm which will cause higher consumption of tokens.

sry, not an answer. The question remains open

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