Closed mirallm closed 1 hour ago
I'm assuming this is qdrant? Make sure you pass in both the client and aclient
QdrantVectorStore(..., client=QdrantClient(...), aclient=AsyncQdrantClient(...))
I found a similar issue that might be related to your problem. In a closed issue, it was noted that a 'NoneType' object is not callable
error occurred in the Qdrant client, which was considered benign and related to the process shutdown not closing correctly. However, your issue seems to be different as it involves the create_collection
method specifically [1].
The error you're encountering suggests that the self._client
attribute is not properly initialized, resulting in it being None
. Ensure that the QdrantClient
is correctly instantiated before calling create_collection
. The self._client
should be an instance of QdrantClient
, initialized with the necessary parameters like location
, url
, port
, etc. Here's a snippet of how it should be initialized:
self._client = qdrant_client.QdrantClient(
location=location,
url=url,
port=port,
grpc_port=grpc_port,
prefer_grpc=prefer_grpc,
https=https,
api_key=api_key,
prefix=prefix,
timeout=timeout,
host=host,
path=path,
)
Make sure that this initialization is done before any method calls on self._client
[2][3][4].
To continue talking to Dosu, mention @dosu.
Question Validation
Question
self._client.create_collection( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'create_collection'
please help. @dosubot