Is your feature request related to a problem? Please describe.
It is the responsibility of the user to make sure the client connections are closed. However, the client is created inside WeaviateDocumentStore so user may forget this step.
Describe the solution you'd like
Remove all the client related config e.g. url and replace it with a param called client: weaviate.WeaviateClient.
The user will initialize the client outside WeaviateDocumentStore according to their preference and then pass it to WeaviateDocumentStore.
Describe alternatives you've considered
Expect user will remember to run WeaviateDocumentStore(...)._client.close()
Additional context
See official docs about closing connections
Is your feature request related to a problem? Please describe.
It is the responsibility of the user to make sure the client connections are closed. However, the client is created inside WeaviateDocumentStore so user may forget this step.
Describe the solution you'd like
Remove all the client related config e.g.
urland replace it with a param calledclient: weaviate.WeaviateClient.The user will initialize the client outside WeaviateDocumentStore according to their preference and then pass it to WeaviateDocumentStore.
Describe alternatives you've considered
Expect user will remember to run
WeaviateDocumentStore(...)._client.close()Additional context
See official docs about closing connections