Skip to content

[Bug]: QdrantVectorStore crashes with latest qdrant-client – search_batch has been removed #20279

@sudeeshnarayanan

Description

@sudeeshnarayanan

Bug Description

QdrantVectorStore is currently broken with the latest versions of qdrant-client because it still calls search_batch, which no longer exists on QdrantClient. The correct method is now search_batch_points.

This results in a hard runtime error

Version

llama-index-vector-stores-qdrant 0.8.7

Steps to Reproduce

Steps to reproduce

  1. Install the Qdrant integration with a recent qdrant-client:

    pip install llama-index-vector-stores-qdrant qdrant-client
    
     2.	Start Qdrant:
    

docker run -p 6333:6333 qdrant/qdrant

3.	Run this minimal script:

from llama_index.vector_stores.qdrant import QdrantVectorStore
from llama_index.core.schema import TextNode
from llama_index.core.vector_stores.types import VectorStoreQuery
import qdrant_client

client = qdrant_client.QdrantClient("http://localhost:6333")

vs = QdrantVectorStore(
collection_name="test",
client=client,
enable_hybrid=True, # triggers the broken path
)

vs.add([TextNode(text="hi", embedding=[0.1,0.2,0.3])])

query = VectorStoreQuery(query_embedding=[0.1,0.2,0.3], similarity_top_k=1)
vs.query(query) # <-- crashes

4.	You immediately get:

"'QdrantClient' object has no attribute 'search_batch'

Relevant Logs/Tracbacks

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageIssue needs to be triaged/prioritized

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions