weaviate-python-client
weaviate-python-client copied to clipboard
Check if tenant exists
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?
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!
The linked PR was merged into weaviate for 1.25 - we will support this feature once it is out