Weaviate-client

Latest version: v4.6.2

Safety actively analyzes 629503 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 16 of 16

0.3.0

- Creation of schemas has changed to support the vectorization masks introduced in weaviate `0.21.11`.
- Adding things or references in batch now returns a list containing the status for every thing/reference.
- The is_ready function now uses weaviates ready endpoint introduced in `0.21.2`
- Authentication can now additionally be done using a user name and password

0.2.0

New Features:
- Contextual classification
- Filter on classifications

Breaking changes:
All logic connected to classification has been moved to `Client.classification`.

Example:
Classify products according to their description into a category.
Only use products from the same country to classify.
Python
Create a configuration for a contextual classification
context_configuration = client.classification.get_contextual_config("Product", ["description"], ["hasCategory"])

Create a filter (assumes that both the source and target class have a property inCountry)
country_filter = {
"operator": "Equal",
"path": ["inCountry"],
"valueString": "Germany"
}

Add the filters
germany_config = client.classification.add_filter_to_config(
weaviate.SOURCE_WHERE_FILTER, country_filter, context_configuration)
germany_config = client.classification.add_filter_to_config(
weaviate.TARGET_WHERE_FILTER, data_filter, germany_config)

Classify
classification_info = client.classification.start(germany_config)
while not client.classification.is_classification_complete(classification_info["id"]):
print("Classifying ...")
time.sleep(3.0)

Change filter
country_filter["valueString"] = "Estonia"

Add the filter
estonia_config = client.classification.add_filter_to_config(
weaviate.SOURCE_WHERE_FILTER, country_filter, context_configuration)
estonia_config = client.classification.add_filter_to_config(
weaviate.TARGET_WHERE_FILTER, data_filter, estonia_config)

Classify
classification_info = client.classification.start(estonia_config)
while not client.classification.is_classification_complete(classification_info["id"]):
print("Classifying ...")
time.sleep(3.0)

0.1.3

New features:

- Schemas specifying index can now be loaded.
- Things can now be deleted

0.1.3rc0

The index keyword is now recognized by the client.

0.1.2

Add function to know weather a schema was already loaded.

0.1.1

Adds the patch merge function to partially change a thing within weaviate.
Improves the execution of `is_reachable` to also include testing for backend components running.

Page 16 of 16

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.