Ai Agent does not use data from Qdrant Vector Store

My Ai Agent is not communicating with my Qdrant Vector Store.

When I execute the Qdrant Vector Store step manually I can see that the embeddings Ollama node is read. Unfortunately the Ai agent is not able to access this information.

What could be the issue?

The system prompt in the Ai agent is:

You are a helpful assistant.

Always use the Qdrant vector store tool for refining your answers.

**
This is my workflow:**
{
“nodes”: [
{
“parameters”: {
“options”: {}
},
“id”: “74003dcd-2ac7-4caa-a1cd-adecc5143c07”,
“name”: “Chat Trigger”,
“type”: “@n8n/n8n-nodes-langchain.chatTrigger”,
“typeVersion”: 1,
“position”: [
928,
368
],
“webhookId”: “cdb5c076-d458-4b9d-8398-f43bd25059b1”
},
{
“parameters”: {},
“type”: “@n8n/n8n-nodes-langchain.memoryPostgresChat”,
“typeVersion”: 1.3,
“position”: [
1072,
576
],
“id”: “eb8385cd-cbb9-4178-92f3-4e799699e161”,
“name”: “Postgres Chat Memory”,
“credentials”: {
“postgres”: {
“id”: “x2aHI4UbWJhgiT6h”,
“name”: “Postgres account”
}
}
},
{
“parameters”: {
“mode”: “retrieve-as-tool”,
“toolDescription”: “Search through uploaded documents to find relevant information. Use this tool whenever the user asks a question about the uploaded data or documents.”,
“qdrantCollection”: {
“__rl”: true,
“value”: “rag_uploads”,
“mode”: “id”
},
“topK”: 10,
“options”: {}
},
“type”: “@n8n/n8n-nodes-langchain.vectorStoreQdrant”,
“typeVersion”: 1.3,
“position”: [
1264,
736
],
“id”: “fd89a461-4e84-467d-af76-ae5d1e489709”,
“name”: “Qdrant Vector Store”,
“credentials”: {
“qdrantApi”: {
“id”: “sFfERYppMeBnFNeA”,
“name”: “Local QdrantApi database”
}
}
},
{
“parameters”: {
“model”: “nomic-embed-text:latest”
},
“type”: “@n8n/n8n-nodes-langchain.embeddingsOllama”,
“typeVersion”: 1,
“position”: [
592,
768
],
“id”: “44cde0fb-f01a-4ee1-9e12-3138cd071c88”,
“name”: “Embeddings Ollama”,
“credentials”: {
“ollamaApi”: {
“id”: “3Eho7ElSyaXY0txV”,
“name”: “Ollama account”
}
}
},
{
“parameters”: {
“formTitle”: “Upload your data to test RAG”,
“formFields”: {
“values”: [
{
“fieldLabel”: “Upload your file(s)”,
“fieldType”: “file”,
“acceptFileTypes”: “.pdf, .csv”,
“requiredField”: true
}
]
},
“options”: {}
},
“id”: “e6ca1770-bd19-40a1-b5f9-4683b50c892e”,
“name”: “Upload your file here”,
“type”: “n8n-nodes-base.formTrigger”,
“position”: [
-176,
448
],
“webhookId”: “82848bc4-5ea2-4e5a-8bb6-3c09b94a8c5d”,
“typeVersion”: 2.2
},
{
“parameters”: {
“content”: “### :books: Load Data Flow”,
“height”: 572,
“width”: 700,
“color”: 7
},
“id”: “928440b0-7a70-45a0-aed0-f96f91180665”,
“name”: “Sticky Note1”,
“type”: “n8n-nodes-base.stickyNote”,
“position”: [
-240,
384
],
“typeVersion”: 1
},
{
“parameters”: {
“content”: “## Agent”,
“height”: 608,
“width”: 848
},
“type”: “n8n-nodes-base.stickyNote”,
“position”: [
800,
352
],
“typeVersion”: 1,
“id”: “619ce10a-7b0c-4a28-9a33-0c079d6b2ea3”,
“name”: “Sticky Note2”
},
{
“parameters”: {
“options”: {}
},
“id”: “6a4aedaa-62d8-4af3-a3f7-7a3711834a48”,
“name”: “Recursive Character Text Splitter1”,
“type”: “@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter”,
“position”: [
-48,
816
],
“typeVersion”: 1
},
{
“parameters”: {
“dataType”: “binary”,
“textSplittingMode”: “custom”,
“options”: {}
},
“id”: “2814d1b7-47f5-4b02-95b7-23cbd6fea1d0”,
“name”: “Default Data Loader2”,
“type”: “@n8n/n8n-nodes-langchain.documentDefaultDataLoader”,
“position”: [
-48,
672
],
“typeVersion”: 1.1
},
{
“parameters”: {
“content”: “## Embedding Model”,
“height”: 332,
“color”: 4
},
“id”: “c2a38456-d72b-462d-afce-94728c42db41”,
“name”: “Sticky Note5”,
“type”: “n8n-nodes-base.stickyNote”,
“position”: [
512,
624
],
“typeVersion”: 1
},
{
“parameters”: {
“mode”: “insert”,
“qdrantCollection”: {
“__rl”: true,
“value”: “rag_uploads”,
“mode”: “id”
},
“options”: {}
},
“type”: “@n8n/n8n-nodes-langchain.vectorStoreQdrant”,
“typeVersion”: 1.3,
“position”: [
32,
448
],
“id”: “01a0df19-f5b9-4b94-9bd9-0212bf8e0688”,
“name”: “Qdrant ingest”,
“credentials”: {
“qdrantApi”: {
“id”: “sFfERYppMeBnFNeA”,
“name”: “Local QdrantApi database”
}
}
},
{
“parameters”: {
“model”: “open-mistral-7b”,
“options”: {}
},
“type”: “@n8n/n8n-nodes-langchain.lmChatMistralCloud”,
“typeVersion”: 1,
“position”: [
880,
576
],
“id”: “eed3f7ee-f651-4964-a83d-fb80949d0aff”,
“name”: “Mistral Cloud Chat Model”,
“credentials”: {
“mistralCloudApi”: {
“id”: “2LhvqJMOqUcvHKnl”,
“name”: “Mistral Cloud account”
}
}
},
{
“parameters”: {
“options”: {
“systemMessage”: “You are a helpful assistant.\n\nAlways use the Qdrant vector store tool for refining your answers.”,
“maxIterations”: 3
}
},
“type”: “@n8n/n8n-nodes-langchain.agent”,
“typeVersion”: 3,
“position”: [
1136,
368
],
“id”: “ff773d57-3809-438a-85ad-706aba8e7a52”,
“name”: “AI Agent”,
“retryOnFail”: false
}
],
“connections”: {
“Chat Trigger”: {
“main”: [
[
{
“node”: “AI Agent”,
“type”: “main”,
“index”: 0
}
]
]
},
“Postgres Chat Memory”: {
“ai_memory”: [
[
{
“node”: “AI Agent”,
“type”: “ai_memory”,
“index”: 0
}
]
]
},
“Qdrant Vector Store”: {
“ai_tool”: [
[
{
“node”: “AI Agent”,
“type”: “ai_tool”,
“index”: 0
}
]
]
},
“Embeddings Ollama”: {
“ai_embedding”: [
[
{
“node”: “Qdrant Vector Store”,
“type”: “ai_embedding”,
“index”: 0
},
{
“node”: “Qdrant ingest”,
“type”: “ai_embedding”,
“index”: 0
}
]
]
},
“Upload your file here”: {
“main”: [
[
{
“node”: “Qdrant ingest”,
“type”: “main”,
“index”: 0
}
]
]
},
“Recursive Character Text Splitter1”: {
“ai_textSplitter”: [
[
{
“node”: “Default Data Loader2”,
“type”: “ai_textSplitter”,
“index”: 0
}
]
]
},
“Default Data Loader2”: {
“ai_document”: [
[
{
“node”: “Qdrant ingest”,
“type”: “ai_document”,
“index”: 0
}
]
]
},
“Mistral Cloud Chat Model”: {
“ai_languageModel”: [
[
{
“node”: “AI Agent”,
“type”: “ai_languageModel”,
“index”: 0
}
]
]
}
},
“pinData”: {},
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “558d88703fb65b2d0e44613bc35916258b0f0bf983c5d4730c00c424b77ca36a”
}
}