Skip to content

Weaviate: make client an external param to WeaviateDocumentStore #471

@hsm207

Description

@hsm207

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions