AI agent Not using Vector store

Hey,

I’m building an AI bot but after the initial message it does not use the supabase store to retrieve data. (or at least that иs what the “Latest logs” on the right side shows)

Here is the workflow

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:

Hey @Vasislav

You may want to try changing the tool name and description as these are essential to help the agent figure out if it should use it in the current context.

Think of the interaction between agents and tools to be more like a “trigger”. If I’m asking about “places to meet people”, nothing in your tool description would trigger any reason to use it.

Name:  Ali
Description: This is the database that you have access to answer questions

But changing it to something like the following, will trigger.

Name: suggest_best_meeting_locations
Description: Call this tool to retrieve a list of preferred meeting locations

Tools are best used for single action tasks rather than a catch all but also conditionally ie. the agent should be able to choose when to use it.

In your scenario since it seems you want to use the vector store always, you might want to consider just having the vector store inbetween the user and agent like so.

3 Likes

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