the agent does not check the vector database and just uses its own knowledge to respond.
hi ! I’m trying to build a RAG A.I Agent, but the agent doesn’t check the vector database and just uses its own knowledge to respond. I asked the same question, sometimes it checks from the database, sometimes it doesn’t. What should I do so that the system always checks the database first?
Thanks for posting here and welcome to the community!
This is the fun part about prompt engineering
In your instructions you are telling it to “use the provided embeddings”, which is somewhat ambiguous to the AI.
n8n uses Langchain’s tool calling feature for vector store retrieval, therefore the AI needs to understand that the “embeddings” it needs to access is the tool it has to call.
So in short: you have to make your Agent instructions and the tool description more descriptive.
Thank you very much for your answer. I’m still new. I’ll take it and try it. If there are any problems, I’ll ask again. Thank you. Sorry for the late reply.