Skip to content

Instantly share code, notes, and snippets.

@brudnak
Created April 29, 2024 14:05
Show Gist options
  • Save brudnak/3f30865be17661cd417b8ef1a35a895a to your computer and use it in GitHub Desktop.
Save brudnak/3f30865be17661cd417b8ef1a35a895a to your computer and use it in GitHub Desktop.
THE DONNIS!
import weaviate
client = weaviate.Client(
url=(""), # Replace with your WCS URL
auth_client_secret=weaviate.AuthApiKey(api_key=""), # Replace with your WCS key
additional_headers={'X-OpenAI-Api-Key':""} # Replace os.getenv("OPENAI_APIKEY") with your actual OpenAI API key
)
print(client.is_ready())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment