Fix simple n8n-qdrant documentation example

Describe the problem/error/question

Encountering errors while trying to replicate and example from N8N-Qdrant documentation: the Workflow 1: GitHub Repository Ingestion into Qdrant, should run smoothly.

What is the error message (if any)?

Problem in node ‘Qdrant Vector Store‘
400 Bad Request: Wrong input: Not existing vector name error:

Please share your workflow

Share the output returned by the last node

400 Bad Request: Wrong input: Not existing vector name error:
Error details

 Other info
n8n version

1.34.2 (Self Hosted)

Stack trace

Error: 400 Bad Request: Wrong input: Not existing vector name error: at QdrantVectorStore.addVectors (/usr/local/lib/node_modules/n8n/node_modules/@langchain/community/dist/vectorstores/qdrant.cjs:102:27) at processTicksAndRejections (node:internal/process/task_queues:95:5) at QdrantVectorStore.addDocuments (/usr/local/lib/node_modules/n8n/node_modules/@langchain/community/dist/vectorstores/qdrant.cjs:69:9) at Function.fromDocuments (/usr/local/lib/node_modules/n8n/node_modules/@langchain/community/dist/vectorstores/qdrant.cjs:191:13) at Object.populateVectorStore (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/dist/nodes/vector_store/VectorStoreQdrant/VectorStoreQdrant.node.js:68:9) at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/dist/nodes/vector_store/shared/createVectorStoreNode.js:174:21) at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:724:19) at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:660:53 at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1062:20

Information on your n8n setup

  • n8n version: Version 1.34.2
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker-compose
  • Operating system: Ubuntu

More details, screenshots, context, detailed explanations, …

It seems the collection is misconfigured. You don’t need to explicitly create a collection.

The node automatically does so based on the embeddings.

You can try specifying a different collection name, which will be created by the node and data will be added into it.

2 Likes

Awesome, thanks a lot !!!

So for the record, for future readers : a name of collection is required in the form of the node.
Solution : choosing a name of collection which doesn’t exist yet

grafik

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.