Skip to content
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

Error when retrieving data with "Vector Store Question Answer Tool" node using AI Agent #14089

Open
kienpro-dev opened this issue Mar 21, 2025 · 2 comments
Labels
in linear Issue or PR has been created in Linear for internal review Needs Feedback Waiting for further input or clarification.

Comments

@kienpro-dev
Copy link

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

= 20.15

Database

SQLite (default)

Execution mode

main (default)

@Joffcom
Copy link
Member

Joffcom commented Mar 21, 2025

Hey @kienpro-dev,

We have created an internal ticket to look into this which we will be tracking as "GHC-1295"

@Joffcom Joffcom added the in linear Issue or PR has been created in Linear for internal review label Mar 21, 2025
@Joffcom
Copy link
Member

Joffcom commented Mar 21, 2025

Hey @kienpro-dev,

Can you try updating n8n to 1.84 and using the new agent node as the conversational agent is now deprecated in favour of just a tools agent which can do the same thing and often a lot better.

@Joffcom Joffcom added the Needs Feedback Waiting for further input or clarification. label Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in linear Issue or PR has been created in Linear for internal review Needs Feedback Waiting for further input or clarification.
Projects
None yet
Development

No branches or pull requests

2 participants