Comments (8)
It is hard to replicate with a simple script
I tried writing one but It was not getting this warning
basically there could be multiple client objects at the same time
I know it is not the best way, but in the use case I am working on it is hard to pass around single client.
so far in my testing I am only getting warnings, so I am not too concerned
It would be great if there is a close
or __del__
method so, we can just close the client once work is done
instead of waiting for gc to take care of this
thanks 😄
from qdrant-client.
supported as of 1.4.0, feel free to re-open the issue in case of troubles
from qdrant-client.
@michael-newsrx local mode close method will be delivered with #227 as well
from qdrant-client.
I am getting
ResourceWarning: unclosed <socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.176.7', 33516), raddr=('192.168.176.2', 6333)>
is there any method for this
from qdrant-client.
There is no method to terminate connection in user interface, we close grpc connections during object deletion stage
In other cases, we relied on the underlying cleaners.
We probably can expose method to close http connections explicitly or will add it into the __del__
as well
@Fluder-Paradyne could you provide more information about your setup please? Including python version, qdrant-client version, os? Code sample to reproduce the issue is appreciated.
from qdrant-client.
I just ran into this issue in a Jupyter notebook.
Using a local client, if a second copy instantiation is attempted, it fails. Think interactive usage and debugging a specific cell. There does not appear to be a way to cleanly close the client. I recommend adding a .close() as well as auto close via context manager if possible.
from qdrant-client.
from qdrant-client.
@michael-newsrx I will look into the possible options with local mode a bit later
from qdrant-client.
Related Issues (20)
- Raise exception if both remote and local modes options are set HOT 1
- Using Singleton Pattern with Qdrant Client in Python
- urllib3 = "^1.26.14" are there plans to migrate to urllib3 ~2.0 HOT 5
- Inconsistent python versions for grpc and async client generators HOT 2
- Filter by list's element in payload HOT 2
- create_payload_index fails on gRPC when field_schema is set HOT 2
- "The read operation timed out" HOT 5
- Question about QdrantLocal HOT 3
- embedding is None in query reponse HOT 2
- contextual search retrieval with vector metadata? HOT 7
- similarity search with threshold and grouping: no documentation available HOT 2
- add retry mechanism to migrate to avoid crashing due to a single timeout error
- local mode accepts nans in payload, while remote mode does not HOT 1
- Reason behind the python version cap? HOT 2
- Add custom shard key to upload_collection HOT 1
- Requests Timed out HOT 23
- Could you please simplify your filtering syntax? HOT 1
- resolve a misleading comment in method query_embed HOT 3
- upload_records() calls in _migrate_collection() should use wait=True HOT 2
- grpc error when searching using langchain HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qdrant-client.