Releases: weaviate/weaviate-python-client
v3.10.0
What's Changed
- Improve error message for error "413: Payload Too Large" by @dirkkul in #159
- Add client credential OIDC flow method by @dirkkul in #164
client_credentials_config = weaviate.AuthClientCredentials(
client_secret = "client_secret",
scope = "scope1 scope2" # optional, depends on the configuration of your identity provider
)
client = weaviate.Client("https://localhost:8080", auth_client_secret=client_credentials_config)
- Improve size of batches on dynamic batching by @dirkkul in #172
- Add limit parameter to client.data_object.get() REST query by @dirkkul in #181
- Bump minimum version of request by @dirkkul in #186
- Add support for node_name and consistency_level get by id query params by @parkerduckworth in #180
- Adds support for replication factor by @aliszka in #192
- Add Bm25 and hybrid search by @dirkkul in #191
New Contributors
Full Changelog: v3.9.0...v3.10.0
v3.10.0b0
What's Changed
- Improve error message for error "413: Payload Too Large" by @dirkkul in #159
- Add client credential OIDC flow method by @dirkkul in #164
client_credentials_config = weaviate.AuthClientCredentials(
client_secret = "client_secret",
scope = "scope1 scope2" # optional, depends on the configuration of your identity provider
)
client = weaviate.Client("https://localhost:8080", auth_client_secret=client_credentials_config)
- Improve size of batches on dynamic batching by @dirkkul in #172
- Add limit parameter to client.data_object.get() REST query by @dirkkul in #181
Full Changelog: v3.9.0...v3.10.0b0
v3.9.0
What's Changed
This minor version includes:
-
Authentication using Bearer token, by adding
additional_headers
to the classClient
initialization:client = weaviate.Client( url='http://localhost:8080', additional_headers={ {"authorization": "Bearer <MY_TOKEN>"} } )
-
Multi-threading class
Batch
import:- Now it is possible to import data using multi-threading. The number of threads can be set using the new argument
num_workers
in methodBatch.configure
and methodBatch.__call__
, defaults to1
( Use with care to not overload your weaviate instance.). - New argument
connection_error_retries
to retry onConnectionError
that can be set in methodBatch.configure
and methodBatch.__call__
or using the property getter/setter:client.batch.connection_error_retries
to get the value andclient.batch.connection_error_retries = 5
to set the value. - New method method
Batch.start
to create aBatchExecutor
(ThreadExecutor
). This method does NOT need to be called if using the classBatch
in a context manager (with
). Also it is idempotent. - New method method
Batch.shutdown
to shutdown the existingBatchExecutor
(ThreadExecutor
) to release any resources that it is holding once the batch import is done. This method does NOT need to be called if using the classBatch
in a context manager (with
). Also it is idempotent.
- Now it is possible to import data using multi-threading. The number of threads can be set using the new argument
-
New class
Client
attributecluster
(classCluster
) to check the status of the cluster nodes.- The method method
Cluster.get_nodes_status
returns the status of each node as a list of dictionaries.client.cluster.get_nodes_status()
- The method method
-
Fix for method
DataObject.replace
and methodDataObject.update
when using with Weaviate server>=v1.14.0
. -
New default
timeout_config
:(10, 60)
.
Contributions
- Add support for nodes API by @parkerduckworth in #136
- Introduce the cluster handler by @parkerduckworth in #141
- Fix update and replace with version >=1.14 by @dirkkul in #144
- Add authentication with Access Token by @StefanBogdan in #149
- add multi-threading batch import by @StefanBogdan in #138
New Contributors
- @parkerduckworth made their first contribution in #134
- @dirkkul made their first contribution in #135
Full Changelog: v3.8.0...v3.9.0
v3.8.0
This minor version includes:
-
Backup functionalities (
Backup
class):Backup.create
method to create backups (all/subset of classes).Backup.get_create_status
method to get the status of the created backup.Backup.restore
method to restore Weaviate from a backup (all/subset of classes).Backup.get_restore_status
method to get the status of the restored backup.
-
New
Client
attribute:backup
tocreate
,restore
andget status
of the backups. All backup operations MUST be done throughClient.backup
. -
Added return value for
Batch.add_data_object
, it now returns the UUID of the added object, if one was not set then an UUIDv4 will be generated.
v3.7.0
This minor version includes:
- Adds rolling average (last 5 batches) for batch creation time used by Dynamic Batching method.
- Adds ability to use
client.query.get()
without specifying any properties IF Additional Properties (client.query.get(...).with_additional()
) are set before executing the query. - Adds base Weaviate Exception
WeaviateBaseError
. - Adds ability to set proxies. Can be set at
Client
initialization by using the newproxies
ortrust_env
arguments. Batch
creates UUIDs (UUIDv4) for all added objects that do not have one at client side (fixes data duplication on Batch retries).- Adds new methods for
WCS
for instances that have authentication enabled:get_users_of_cluster()
to get users (emails) for all the users that have access to the created Weaviate instance.add_user_to_cluster()
to add users (email) to the created Weaviate instance.remove_user_from_cluster()
to remove user (email) from the created Weaviate instance.
v3.6.0
This minor version includes:
-
New function
weaviate.util.check_batch_result
used to print errors from batch creation. -
New function argument
class_name
for functionweaviate.util.generate_local_beacon
, used ONLY with Weaviate Server version >=1.14.0
(defaults toNone
for backwards compatibility). -
Function
weaviate.util.check_batch_result
is the defaultcallback
function for classweaviate.batch.Batch
(methodsweaviate.batch.Batch.configure
andweaviate.batch.Batch.__call__
) (instead ofNone
). -
New method argument
to_object_class_name
for methodweaviate.batch.Batch.add_reference
, used ONLY with Weaviate Server version >=1.14.0
(defaults toNone
for backwards compatibility). -
Support for
distance
in GraphQL filters (only with Weaviate server >=1.14.0
). -
For class
weaviate.data.DataObject
:- | New method argument
class_name
for methodweaviate.data.DataObject.get_by_id
, methodweaviate.data.DataObject.get
, methodweaviate.data.DataObject.delete
methodweaviate.data.DataObject.exists
, used ONLY with Weaviate Server version >=1.14.0
(defaults toNone
for backwards compatibility). - Deprecation Warning if Weaviate Server version >= 1.14.0 and
class_name
isNone
OR if Weaviate Server version < 1.14.0 andclass_name
is NOTNone
.
- | New method argument
-
For class
weaviate.data.references.Reference
:- | New method arguments
from_class_name
andto_class_name
(to_class_names
for methodweaviate.data.references.Reference.update
) for
methodweaviate.data.references.Reference.add
, methodweaviate.data.references.Reference.delete
,
methodweaviate.data.references.Reference.update
, used ONLY with Weaviate Server version >=1.14.0
(defaults toNone
for backwards compatibility). - Deprecation Warning if Weaviate Server version >= 1.14.0 and
class_name
isNone
OR if Weaviate Server version < 1.14.0 andclass_name
is NOTNone
.
- | New method arguments
v3.5.1
This patch version fixes:
- the
rerank
not being set bug inclient.query.get().with_ask()
. - the bug when using double quotes(
"
) inquestion
field inclient.query.get().with_ask()
. - the bug where
nearText
filter checks for objects inmoveXXX
clause but never sets it.
v3.5.0
This minor version contains functionality for the new features introduced in Weaviate v1.13.0
.
-
New
Batch
method.delete_objects(...)
to delete all objects that match a particular expression (where
filter). -
New
GetBuilder
method.with_sort(...)
that allows sorting data on a particular field/s. -
New
AggregateBuilder
method.with_near_text(...)
that allows to aggregate data that is matchingnearText
filter. -
New
AggregateBuilder
method.with_near_object(...)
that allows to aggregate data that is matchingnearObject
filter. -
New
AggregateBuilder
method.with_near_vector(...)
that allows to aggregate data that is matchingnearVector
filter.
v3.4.2
Another bug fix in DataObject.exists
.
v3.4.1
bug fix in DataObject.exists
.