Skip to main content

Weaviate Python client

Installation

The latest Weaviate Python client library can be installed using pip. The client library is tested on Python 3.8 and later. Install it using the following command:

pip install -U weaviate-client

The latest major version is v4 (e.g. 4.x.x). You can check the version like so:

pip show weaviate-client

Basic usage

From Python, you can load the Weaviate client library like so:

import weaviate

The client provides sets of helper classes (e.g. under weaviate.classes) and functions to make it easier to interact with Weaviate.

Next, we'll show you how create a Weaviate instance and connect to it.

Questions and feedback

If you have any questions or feedback, let us know in the user forum.