weaviate-python-client icon indicating copy to clipboard operation
weaviate-python-client copied to clipboard

Check if tenant exists

Open msj121 opened this issue 1 year ago • 2 comments
trafficstars

Add ability to get one tenant ie: check if the tenant exists without getting a whole list? Or is the suggestion to just try and re-add it? I couldn't see a REST-API for this, but I could be wrong. Is this a weaviate or client issue?

msj121 avatar Feb 11 '24 19:02 msj121

Hi @msj121, there is currently no Weaviate endpoint for performing such a check. You could make a workaround with the client whereby you fetch all the tenants and check that your specific tenant is returned in the list but this is certainly not a scalable solution!

There is a recent PR for adding this functionality to Weaviate. If it is merged, we will go about adding it to the Python v4 client!

tsmith023 avatar Feb 12 '24 09:02 tsmith023

The linked PR was merged into weaviate for 1.25 - we will support this feature once it is out

dirkkul avatar Feb 28 '24 12:02 dirkkul