Firstly, I’m completely new to n8n so still coming to terms with the logic. I’m trying to get the workflow to call the vector store first before it goes to the LLM. At the moment its ignoring the vector store entirely. Is it possible to force the Agent to work with the Vector Store first before engaging the LLM. If so how?
I have accomplished this in other solutions but I really like n8n’s setup and would like to keep it if possible. I’m using the latest version of n8n on the cloud.
Yes, so you should instruct it by a system message, i’ve managed to get it to always use, but you have to lieterally say like ‘always use tools and vector store etc’ generally not needed in user message, but prompting there can help too.
Also defining what the ai agent does, help to further itterate to use the tools, like you are an ai agent which does this, before doing this you must use the tool answer questions with a vector store etc
It’s quite fun actually ahaa Hope this helps bit more too
I wish you luck on the workflow. And just as a sidenote from personal experience putting less on the LLMs is usallly for the best. Sometimes they are unpredictable. But with a bigger model and lower temperature setting should work in your case.