Error when retrieving data with "Vector Store Question Answer Tool" node using AI Agent #14089
Labels
in linear
Issue or PR has been created in Linear for internal review
Needs Feedback
Waiting for further input or clarification.
Bug Description
I'm currently using the AI Agent (Conversation Agent) node in a workflow where the agent is utilizing the Qdrant Vector Store Tool to retrieve information from a venue. The Vector Store Tool is attached to the Mistral model (small lastest). The embedding model in use is Mistral, and while it works intermittently, I frequently encounter an error with the message:
"Cannot read properties of undefined (reading 'replace')"
I checked the vector store input response but it seems that the "query" field is missing and the "k" (limit) field is still there.
To Reproduce
1 - Add a Qdrant Vector Store Tool node to the workflow, connected to the Mistral model (small lastest)
2 - Set up the Vector Store Tool to retrieve embeddings from Qdrant, using the Mistral embedding model.
3 - Query the AI Agent node to retrieve information.
4 - Observe that the workflow sometimes returns the error: Cannot read properties of undefined (reading 'replace').
5 - Missing "query" field in vector store input response.
6 - Run the chat again. The issue temporarily resolves but reoccurs after some time.
Expected behavior
The AI Agent should consistently query the vector store tool without any issues, while this happens intermittently, I can't see the reason why.
Operating System
Docker run on Centos 8
n8n Version
1.81.4
Node.js Version
Database
SQLite (default)
Execution mode
main (default)
The text was updated successfully, but these errors were encountered: