Bug Report: Qdrant Node “similaritySearch is not a function” Error with Rerank Enabled
Problem Description
When I enable the new rerank functionality in the n8n Qdrant node, I get the following error:
this.vectorstore.similaritySearch is not a function
The workflow runs fine with rerank disabled, but fails immediately when I activate the rerank feature.
Environment Details
- n8n Version: 1.102.0
Steps to Reproduce
- Create a workflow with a Qdrant node
- Configure the Qdrant node with valid connection details
- Enable the “Rerank” functionality in the node settings
- Run the workflow
- Error occurs:
this.vectorstore.similaritySearch is not a function
Expected Behavior
The Qdrant node should work with rerank functionality enabled, performing similarity search with reranking applied to the results.
Actual Behavior
The workflow fails with a JavaScript error indicating the similaritySearch method doesn’t exist on the vectorstore object.
Workaround
Disabling the rerank functionality allows the node to work normally, but without the reranking benefits.
Additional Context
- This appears to be a bug in the node’s implementation where the rerank feature changes how the vectorstore object is initialized
- The error suggests the vectorstore object doesn’t have the expected
similaritySearchmethod when rerank is enabled - Other users might be experiencing the same issue but haven’t reported it yet
Request
Could the development team please:
- Investigate why enabling rerank breaks the
similaritySearchmethod - Provide a timeline for when this might be fixed
- Confirm if this is a known issue or if additional debugging information is needed
Thanks for looking into this! The rerank functionality would be very useful for improving search results quality.
If anyone else is experiencing this issue, please comment below to help the team understand the scope of the problem.