Created
March 26, 2023 17:28
-
-
Save bobvanluijt/3e4df9b581f78d4842c1ac588ad0b883 to your computer and use it in GitHub Desktop.
Connect to Weaviate using an API-key using Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import weaviate | |
# Set the Weaviate URL | |
url = "https://your-cluster.weaviate.network" | |
# Create a secret based on the API key | |
my_secret_key = weaviate.AuthApiKey(api_key="4jne...9me1") | |
# Create client objects | |
client = weaviate.Client(url, auth_client_secret=my_secret_key) | |
# Run a command | |
meta_info = client.get_meta() | |
print(meta_info) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment