----------------------
The error message you're seeing,
AttributeError: 'NoneType' object has no attribute 'search'
, suggests that the
search
method is being called on a
NoneType
object. In your case, it seems like
self._aclient
is
None
.
This could be due to a problem with the initialization of your
QdrantClient
. You're initializing it with the following line:
client = qdrant_client.QdrantClient(
url=os.getenv("QDRANT_URI"), api_key=os.getenv("QDRANT_API_KEY")
)
Make sure that the environment variables
QDRANT_URI
and
QDRANT_API_KEY
are correctly set and accessible in your environment. You can check this by printing their values before initializing the
QdrantClient
:
print(os.getenv("QDRANT_URI"))
print(os.getenv("QDRANT_API_KEY"))
If these print
None
, it means these environment variables are not set correctly.
Also, ensure that the Qdrant server is running and accessible from your application. The
QDRANT_URI
should be the URL where your Qdrant server is running.
If you're still facing issues, it might be helpful to refer to the
LlamaIndex documentation () or the
source code () for more examples and information.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------