You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have stored a qdrant collection locally on my computer to access it for testing purposes. I am building a chatbot app in gradio and it requires to load the app.py many times to develop it in iterations.
However, every time I load the collection a .lock file is automatically created which I have to manually delete each time when loading app again for my application. Otherwise I run into following error:
RuntimeError: Storage folder qdrant/ is already accessed by another instance of Qdrant client. If you require concurrent access, use Qdrant server instead.
I would like to either automatically delete the .lock file or to not create it at all in the first place. Is this possible within Qdrant or do I have to build a manual work around?
I know I could simply add something like a os.remove("qdrant/.lock") but it seems not very intuitive.
The text was updated successfully, but these errors were encountered:
I am not an expert of gradio, but if it works in a similar way to streamlit, then you would either have a shared object, which is created only once or you can use .close()
If the former approach is possible, I think it would be preferable
I have stored a
qdrant
collection locally on my computer to access it for testing purposes. I am building a chatbot app in gradio and it requires to load theapp.py
many times to develop it in iterations.However, every time I load the collection a
.lock
file is automatically created which I have to manually delete each time when loading app again for my application. Otherwise I run into following error:RuntimeError: Storage folder qdrant/ is already accessed by another instance of Qdrant client. If you require concurrent access, use Qdrant server instead.
The code to load the collection is as follows:
I would like to either automatically delete the
.lock
file or to not create it at all in the first place. Is this possible within Qdrant or do I have to build a manual work around?I know I could simply add something like a
os.remove("qdrant/.lock")
but it seems not very intuitive.The text was updated successfully, but these errors were encountered: