-
Notifications
You must be signed in to change notification settings - Fork 29k
AI Agent use of Tools #15883
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey @kplatter, We have created an internal ticket to look into this which we will be tracking as "GHC-2276" |
I switched from using snowflake-arctic-embed:22m to using qwen3:4b and am getting section detailing what tools were used and what went into the reasoning to use them. The LLM believes that it queried the vector store and no longer needs to do it for subsequent questions. My Supabase has data in it about Tiller Tines as well as AKC data on Bulldogs, however if you ask it questions it says it checked the vector store and it does not have any information on that. Step 1: Searched "tiller tines" in the vector store. Returned zero relevant documents.Step 2: Cross-checked synonyms like "tilling blades," "rotary tines," or "soil cultivation components"—still no matches. Step 3: Confirmed all "tiller" entries in the dataset refer strictly to machinery control handles (e.g., marine outboard motor tillers, engine throttle-linkage systems). Step 4: Concluded the vector store lacks data on agricultural implements (e.g., garden tiller tines). Even though the LLM thinks it is using the tool/tools (as evidenced by the data that went into its thinking), the n8n UI was showing none or one tool being called .i.e. the link to the tool being lit up green along with the tool itself. This is very misleading. I am not sure how or if this could be fixed, but I would definitely call it a BUG. I would be happy to help in any way I can, just let me know. |
I stopped and restarted n8n and it went back to actually calling the vector store and returning the correct results :( |
I would use a Magic Number from the vector store, first check if it can provide the exact Magic Number, if not, force resetting the LLM and query the vector store. |
Hey @kplatter, If the LLM thinks it has called the vector store and n8n is not showing it then there could be 2 possible issues...
At the moment I am not convinced there is a bug here but I will keep it open for a bit so you can go through any local logs you may have. |
Ok, what is "Any Logs" is there a specific file location or a link in the n8n interface to see the "Any Logs"? |
I didn't know what logs you were referring to, but I am running n8n with PM2 so I set up this file
and ran pm2 start ecosystem.config.js Here is the output which has these two lines
That seems to indicate to me that the tool was being executed, however as you can see in this picture it does not appear that it did. If there is some other log or logging option that you would like, please let me know what and where it is.
|
Sometimes when I run a query, I get back a response in this format with no answer <vector_store>{"input": "What are rodents?"}</vector_store> even thought the log appears that it ran the tools agent, it does not appear to process the response thru the LLM and I just get back what was sent to the tool :(
|
I just found that Simple Memory is part of the problem I have been having. If at some point the AI decided that it did not need to check the vector store, or didn't check the vector store for some reason, it updates the Simple Memory that it does not know. Then after that any further requests for the same information no longer check the vector store. It seems that it is at least questionable whether Simple Memory should be updated if no answer is found. What happens if the tools are updated between calls? I think this is a problem. |
Uh oh!
There was an error while loading. Please reload this page.
Bug Description
When using tools with the AI Agent, the use of tools is spotty at best. Using the same chat input... sometimes when you post a chat message, it will not call any tool. Sometimes it will call one of the tools and not the other. Sometimes it will call both tools. For whatever reason when it calls a tool and only calls one of them, how does it decide which tool to call if both have same or similar descriptions.
** PLEASE READ COMMENTS BELOW FOR UPDATED INFO ON THIS ISSUE **
I have included a sample of this here:
To Reproduce
Post "Can Turtles win races?"
Note which tool or tools is run
Post "Can Turtles win races?"
Compare which tool or tools were run
Return to step one and repeat
Try removing the link between the AI Agent and one of the tools and start at one again...
Expected behavior
I would expect there to be some repeatable and reasonable behavior concerning which tool was run and the order that they were run in.
Operating System
Ubuntu 22.04
n8n Version
1.95.0, 1.94.1
Node.js Version
v22.15.1
Database
SQLite (default)
Execution mode
main (default)
The text was updated successfully, but these errors were encountered: