- This patch version includes:
- Fixes return type for aggregate with group_by and zero results
- Fix multi-vector with hybrid search
not released
- This patch version includes:
- Fixes a missing
typing.overloadspecification for thequery.bm25method
- Fixes a missing
- This minor version includes a major update to the docstrings and documentation of the client.
- All docstrings have been aligned with Google's style format
- The read-the-docs page has been streamlined and improved for ease of use: https://weaviate-python-client.readthedocs.io/en/stable/
- Fixes a bug when adding a property to a collection configured with both named vectors and a generative module
- Potential fixes for race conditions when instantiating async clients
- A number of minor fixes to the public .pyi stub files found by developing a stub auto-generating tool for the codebase
- This patch version includes:
- Fixes a parsing bug when providing URLs with
GenerativeConfigfor runtime generate queries
- Fixes a parsing bug when providing URLs with
- This patch version includes:
- Fixes
generative.near_text()to not requiregenerative_provider
- Fixes
- This minor version provides a complete top-down refactor of the underlying transport for the sync and async clients.
- Introduction of a dependency injection system whereby the sync/async connections are injected into each client independently thereby removing their cross-dependency.
- Removal of the
event_loop.pyfile and all logic surrounding its usage by the sync client. - Refactoring of the batching algorithm to use blocking threads with a sync connection, rather than the event loop sidecar thread.
- This patch version includes:
- Renames
GenerativeConfig.openai_azuretoGenerativeConfig.azure_openaito align with the convention ofConfigure.Generative.azure_openai
- Renames
- This minor version includes:
- Support for new 1.30 features:
- Dynamic user management of OIDC and native DB users
- Improved multi-dimensional/colBERT vectors
- Query-time configuration of generative modules
- Tenant-based filtering of data permissions in RBAC
- The new
generative-xaimodule
- This patch version includes:
- Fixes a rare bug when the batching algorithm waits for async indexing to complete far beyond the maximum number of allowed retries
- Removes the sync-in-async warning emitted by the sync client when used in an async context due to the warning being erroneously emitted in notebooks
- This patch version includes:
- Adds exponential backoff on the UNAVAILABLE gRPC error code for the BatchObjects method
- This is used in the batching algorithm and in
data.insert_many - Max number of retries is configurable using the
WEAVIATE_BATCH_MAX_RETRIESenv var
- This is used in the batching algorithm and in
- Adds support for OIDC when using the
text2vec-weaviatemodule - Adds support for updating descriptions of properties in collections (needs compatible server version)
- Adds warning recommending to refactor to use AsyncClient if the SyncClient is used in an async context
- Fixes bugs when importing/exporting collection configurations with respect to property module configs
- Fixes bug when exporting config with multivector enabled between versions
- This patch version incldues:
- Fixes exporting of named vector collections
- Support for upcoming weaviate agents. User
pip install weaviate-client[agents]to try it out - Raise error if a header with value None` has been added
- Introduce
collections.useas an alias forcollections.get collections.useis the preferred method to create an in-memory collection objectcollections.getwill be deprecated in the future and should not be used in new code
- Introduce
- This minor version includes:
- Support for new 1.29 features:
- RBAC is ready for production
- Multi-dimensional/COLBert vectors experimental, breaking changes are expected
- Aggregations are using GRPC now
- Improved exception handling for errors returned by Weaviate
- Add support for NVIDIA modules:
- multi2vec-nvidia
- text2vec-nvidia
- generative-nvidia
- This patch version incldues:
- Fix missing dimensions parameter in text2vec-azure-openai
- This patch version includes:
- Add experimental debug namespace
- Add support for dynamic backup location
- Fix potential deadlock in batching
- Fix backup and restore for embedded mode
- Add extra method for text2vec_google_aistudio
- This patch version includes:
- Fixes issue with query parameters in
cluster.nodesmethod due to dependence on bugged behaviour ofhttpxthat was fixed in0.28.0
- Fixes issue with query parameters in
- This patch version includes:
- Fixes compatibility with
httpxto 0.28.X which requires updating the minimum required version to 0.26.0 - Remove outdated docs
- Fixes compatibility with
- This minor version includes:
- Support for new 1.28 features:
- RBAC (experimental, breaking changes are expected)
- Add VoyageAI's new multimodal embedding model
- Remove copy of v3-client. If you are still using v4 code please either:
- Update your code to v4: https://weaviate.io/developers/weaviate/client-libraries/python/v3_v4_migration
- Use the v3-client directly: weaviate-client>=3.26.7;<4.0.0
- Upgrade protobuf to v5
- Add support for python 3.13
- Weaviate v1.23 and v1.24 are NOT supported anymore
This release is the last release that supports weaviate v1.23 and v1.24
- This patch version includes:
- Add support for the new
Kagame_JAtokenizer
- Add support for the new
- This patch version includes:
- Add support for the new
text2vec-weaviatemodule - Wrap
tenant.getAioRpcErrorin a specific exception
- Add support for the new
- This patch version includes:
- Add support for
multi2vec-jinaai - Add support for
multi2vec-cohere - Add support for time-based deletion strategy
- Fix type restriction on include_vector in QueryReference
- Add support for
- This patch version includes:
- Fixes interface for updating generative and reranker collection settings
- This patch version includes:
- Suppress gRPC library warnings for each event loop used in each process
- This patch version includes:
- Fix event loop being used from multiple processes
- Add updating generative and reranker collection settings
- Add experimental backoff for GRPC UNAVAILABLE error codes
- Automatically pick up GRPC message size from Weaviate
- Remove octoai vectorizer and generative methods. They are shutting down
- This minor version includes:
- Support for new 1.27 features:
- Multi vector search for near_vector and hybrid
- Backup cancellation
- Vector search filter strategy (acorn)
- Renaming
*-palmto*-googlefor generative and vectorization modules. - Typing fixes
- Bump of default embedded version to 1.26.6
- Allow
return_properties={True, False}as equivalents to{None, []} - Dependency updates
- This patch version includes:
- Suppresses warning emitted by
protobuflibrary in relation to obsolate generated stubs - Fixes the
authlibto<1.32.2while a potential bug is investigated - Updates the
validatorsdependency
- Suppresses warning emitted by
- This minor version includes:
- Support for new modules:
- Mistral text2vec module
- Friendli generative module
- Databricks text2vec and generative modules
- New
fetch_objects_by_idsmethod - Support for hybrid search with vector distance
- Fixes issue with adding a property on a vectorized collection
- Bumps
requests,importlib-metadata,pytest`,pytest-asyncio,types-requests,litestarandtyping-extensionslibs to newest versions
This patch version includes:
- Fixes log noise due to value of deprecated
GRPC_VERBOSITYflag in underlyinggrpclibrary - Bumps
requestsandauthlibversions to avoid security issues - Adds support for configuring the new
reranker-jinaaimodule when creating collections - Fixes parsing of the timeout configuration on client instantiation
- The
querytimeout now modifies theread=timeout in thehttpxclient for allGET,HEAD, andgqlquery requests - The
inserttimeout now modifies theread=timeout in thehttpxclient for allDELETE,POST,PATCH, andPUTrequests - The
inittimeout now only modifies the timeouts in thehttpxclient for requests involved in theclient.connect()method
- The
This minor version includes:
- The introduction of the
WeaviateAsyncClientclass to support I/O requests to Weaviate using theasync/awaitsyntax with asyncio <https://docs.python.org/3/library/asyncio.html> All methods that perform CRUD and search actions are now
async deffunctions- To instantiate a client quickly, use the
weaviate.use_async_with_xmethods in an async context manager pattern, e.g.: async with weaviate.use_async_with_local() as client: # Your code
- To instantiate a client quickly, use the
- Note, you cannot do
await weaviate.use_async_with_xif not using the context manager pattern. You have to create the client first and then connect manually: client = weaviate.use_async_with_local() await client.connect() # Your code await client.close()
- Note, you cannot do
- The introduction of the
A refactoring of the underlying implementation of the
WeaviateClientto use theWeaviateAsyncClientunder-the-hood scheduling the necessary coroutines to run in a side-car event-loop thread- Support for new core Weaviate features in both the sync and async clients:
- Multi-vector search in the
.near_xand.hybridmethods within the.generateand.querycollection namespaces - Scalar Quantization (SQ) vector index configuration
- Async replication configuration for multi-node Weaviate deployments
- Tenant offloading to S3 cloud storage using the newly intrduced
OFFLOADEDtenant activity status - Renaming of
HOTtoACTIVEandCOLDtoINACTIVEfor tenant activity statuses - NOTE: To use these features, you must have Weaviate version 1.26.0 or higher
- Multi-vector search in the
This patch version includes:
- Fix batching with references. Under some circumstances a reference could be added before its
to-object and the reference would be lost. - Fix node status for timed out nodes
- Fix parsing the year 0. While weaviate allows to add dates with year zero ("0000-01-30T00:00:00Z"), the datetime library is based on the gregorian calendar which does not have a year zero. The client will years with 0 as the minimum date that is possible in datetime (
datetime.datetime(1, 1, 1, 0, 0)) and emit a warning - Support for custom rerankers and generative modules using
Configure.Generative.custom()andConfigure.Reranker.custom() - Add support for kagome_kr tokenizer. Requires Weaviate 1.25.8
- Increase default embedded version to 1.25.8
This patch version includes:
- Log batch errors
- Only the last 100k successfully added UUIDs are kept in memory to prevent OOM situations.
- Fix tenant creation with string input
In the v3 copy that is part of v4:
- Fixes GraphQL query injection vulnerability caused by incorrect escaping of backslashes in plain text input builder methods. Many thanks to @adamleko, @bismuthsalamander, and @tardigrade-9 for their help in fixing this issue
- Fixes batch retry with tenants
- This patch version includes:
- Addition of new voyageai embedding and rerank models as string literal types
- Added missing exports of submodules in
weaviate.outputsto aid usage - Updated ollama modules docstrings
- Added missing
py.typedfile for use by static type checkers
- This patch version includes:
- Add support for auto-tenant-activation (available in Weaviate 1.25.2)
- This patch version includes:
- Removal of top-level validation of
vectorindata.insert,data.replace, anddata.update. This validation occurs within the_get_vector_v4method now instead.
- Removal of top-level validation of
- This patch version includes:
- Respect default vectorizer
- Wait for Weaviate 1.25 to be ready before starting the embedded client
- Add missing models for voyageai
- Rename WCS to Weaviate Cloud and add new helper function weaviate.connect_to_weaviate_cloud
- This patch version includes:
- Fixes for
client.integrations.configure
- Fixes for
This minor version includes:
- Support for Weaviate 1.25.0:
- BM25/Hybrid support groupBy parameter
- Hybrid supports MoveTo/MoveAwayFrom in near_vector and near_text through HybridVector class
- Ollama text2vec and generative module
- Octoai text2vec and generative module
- multi2vev-palm module
- dynamic vector index type
- auto tenant creation
- improved batching with vectorization
- tenant exists endpoint
- get tenant by name
- Added
client.integrations.configureto configure api-keys and model provider parameters for integration/module-providers without setting headers. - Improved error messages and deprecation warnings.
This patch version includes:
- Deprecation of the
bit_compressionfield in thePQConfigclass - Improvements to closing possibly open objects and connections
- Enhances the
WeaviateGRPCUnavailableErrormessage with added context relevant to the user's environment - Relaxes the
httpxrequirements to aid compatability with other packages
This patch version includes:
- Support for configuring collections with the new
reranker-voyageaimodule - Providing an
alphaparameter tocollection.iterator()to control the beginning of the iteration - Update the default
Timeout.initvalue from1sto2s
This patch version includes:
- Bugfix when parsing the result from
v1/nodesAPI withshards: null - Bugfix when parsing the result from
v1/schemaAPI withclass.properties.moduleConfig: nullandclass.vectoriser: !'none' - Dependency bumps
This patch version includes:
- Fix parsing of creation/update time from old weaviate versions that write them in ns instead of ms
- Support
video_fieldsinmulti2vec-palmwhich was added in Weaviate 1.24.4:
This patch version includes:
- Fix bug with hybrid searches without vector.
- Support for new modules in Weaviate 1.24.2:
-
text2vec-voyageai-generative-mistral- Support new parameters for inference URLs intext2vec-transformersandmulti2vec-clip - Support for new modules in Weaviate 1.24.3:
-
multi2vec-palm
This patch version includes:
- Fixes endpoint parameter for
text2vec-palm - Adds support for GSE and TRIGRAM tokenizers
This patch version includes:
- Implements an extension to the filtering syntax allowing to pass lists of filters
Filter.all_of([f1, f2]])is a shortcut forf1 & f2Filter.any_of([f1, f2]])is a shortcut forf1 | f2- Can all be chained and mixed together to create dynamic and complex filters
- Introduces
weaviate.classes.init.Timeoutclass allowing to define the timeout used when performing client init checks, in addition to connect and query - Fixes a bug when performing
contains_any/contains_allfiltering using an empty list - Adds the ability to limit the
top_occurencesreturn when performing aggregation queries - Allows for defining gRPC proxying of the client and fixes the parsing of
httpandhttpsproxies - Allow
Noneas a query value in BM25 and hybrid queries - Fix missing named vectors support in
data.updateanddata.replace - Reimplement support for updating named vector configurations alongside the patched
1.24.1server version
This minor version includes:
- Full support for the new named vectors feature available in the Weaviate
1.24release. - Bugfixes to passing of Weaviate schema objects as collection configurations in certain edge cases.
- Support use of Sagemaker when vectorizing with the
text2vec-awsmodule. - Allow creation of collections that use the
hnswindex with thebqquantizing strategy. - Allow specifying
dimensionswhen vectorizing with thetext2vec-openaimodule. - Python in-memory performance improvements when making queries .
This patch version includes:
- A fix to the validation logic of the
apiEndpointfield ofGenerativePaLMConfigobject.
This patch version includes
- Fixes batching with references. Under some circumstances a reference could be added before its
from-object and the reference would be lost. - Fixes readthedocs page
- Small performance improvements for queries
This patch version includes
- Fixes client.is_ready().
- Adds option to skip input parameter validation if you need to squeeze out some extra performance.
- All functions that accept vectors now also accept numpy arrays, tensorflow arrays and pandas/polars dataframes as input.
- Hybrid search accepts None as query for a pure vector search.
- Adds
FilterValuetoweaviate.outputs. - Allows
group_by: strin aggregation queries.
This patch version includes
- Allows strings as input for
groupByarguments for aggregation. - Fixes for rate limit batching.
This version is the first full release for the Python v4 client and _requires_ weaviate versions >= 1.23.7.
Since the previous RC, there have been a number of improvements and final bug fixes.
- The type of object.vector has changed from Optional[Dict[str, List[float]]] to Dict[str, List[float]] so that object.vector is never None.
- Exporting and importing of collections has been tidied up and improved.
- A number of methods have had input validation added to them.
- Most exceptions are now unified under a few common classes.
For more information around the new client, see here: https://weaviate.io/developers/weaviate/client-libraries/python
This version is a release candidate for the python v4 client.
There is a significant breaking change in this version in anticipation of the named vectors functionality of future Weaviate versions.
- The vector property of Object has had its type changed from Optional[List[float]] to Optional[Dict[str, List[float]]].
- Accessing of the vector property has changed from object.vector to object.vector["default"].
- When using the client with future releases, other named vectors will be accessible as object.vector["name"].
Newly created (as of 15:00UTC 01/30/24) WCS sandbox instances are now capable of handling gRPC connections and so the client has been updated accordingly in its connect_to_wcs method.
If you are using an old sandbox, make a new one and use the new one instead.
Minor bugfixes are also included.
This version is a release candidate for the python v4 client.
All backward compatibility code is being removed and _requires_ weaviate versions >= 1.23.5.
All deprecated code has been removed. Check the migration guide (https://www.weaviate.io/developers/weaviate/client-libraries/python#migration-guides) how to update your code.
Improvements include: - Input validation - Embedded weaviate shows an error when the chosen port(s) are already occupied
Fixes include: - Filter chained references by reference count - Various bug with filtered aggregation - Aggregation with move to/away_from objects - Timeouts also apply to GRPC calls
This beta version has breaking changes, a migration guide is available at https://www.weaviate.io/developers/weaviate/client-libraries/python#migration-guides:
- The batching algorithm has been streamlined and improved in its implementation and API surface.
- There are now three types of batching that can be performed:
client.batch.dynamic()where the algorithm will automatically determine the optimal batch size and number of concurrent requests.client.batch.fixed_size()where the user can specify the batch size and number of concurrent requests.client.batch.rate_limit()where the user specifies the number of requests per minute that their third-party vectorization API can support.
- If an exception is thrown in the background batching thread then this is surfaced to the main thread and re-raised in order to stop the batch.
- Previously, this would silently error.
- Enforces that all optional arguments to queries must be supplied as keyword arguments.
- Adds runtime validation to all queries.
- Renaming of
proptonameinFilter.by_property. - Moving of the
timeoutargument inweaviate.connect_to_xmethods into new argumentadditional_config: Optional[AdditionalConfig].
Improvements include:
- Introduction of the .by_ref_count() method on Filter to filter on the number of references present in a reference property of an object.
- This was previously achievable with
Filter([refProp]).greater_than(0)but is now more explicit using the chaining syntax.
- The syntax for sorting now feels similar to the new filtering syntax.
- Supports method chaining like
Sort.by_property(prop).by_creation_time()which will apply the sorting in the order they are chained, i.e., this chain is equivalent to the previous syntax of[Sort(prop), Sort("_creationTimeUnix")].
Fixes include:
- The potential for deadlocks and data races when batching has been reduced.
- Fixes a number of missing properties and poor docstrings in weaviate.connect_to_x methods.
- Adds the missing offset parameter to all queries.
This beta version has breaking changes, a migration guide is available at https://www.weaviate.io/developers/weaviate/client-libraries/python#migration-guides:
- Filters have been reworked and have a new syntax.
- Coming from <=4.4.b6 you can replace:
Filter(path=property)withFilter.by_property(property)Filter(path=["ref","target_class", "target_property"])withFilter.by_ref("ref").by_property("target_property")FilterMetadata.ByXX``with ``Filter.by_id/creation_time/update_time()
- Coming from =4.4b7 you can replace:
Filter.by_ref().link_on("ref").by_property("target_property")withFilter.by_ref("ref").by_property("target_property")
Bugfixes include:
- Error message when creating the client directly without calling connect_to_XXX.
- Fix deadlock in new batching algorithm.
- Fix skip_init_checks=True resulting in compatibility with Weaviate 1.22 only.
This beta version has breaking changes, a migration guide is available at https://www.weaviate.io/developers/weaviate/client-libraries/python#migration-guides:
- For
client.batchtheadd_referencemethod was revised. Theto_object_collectionparameter was removed and the other parameters were harmonized withcollection.batch. Available parameters are now:from_uuid,from_collection,from_property,toandtenant. - It is no longer possible to use
client.batchdirectly, you must use it as a context manager (with client.batch as batch) - Manual batch mode has been removed.
- Dynamic batching (for batch_size and number of concurrent requests) is now default. Fixed-size batching can be configured with
batch.configure_fixed_size(..). - Filters have been reworked and have a new syntax. You can replace:
Filter(path=property)withFilter.by_property(property)Filter(path=["ref","target_class", "target_property"])withFilter.by_ref().link_on("ref").by_property("target_property")FilterMetadata.ByXX``with ``Filter.by_id/creation_time/update_time()
- Importing directly from
weaviatehas been deprecated. Useimport weaviate.classes as wvcinstead and import from there. - Multi-target references functions have been moved to:
ReferenceProperty.MultiTargetDataReference.MultiTargetQueryReference.MultiTarget
- Exception names are now compatible with PEP8, old names are still available but deprecated.
- References can now be provided directly as
UUIDs,strandReference.XXX()has been deprecated. For multi-target references useReferenceToMulti.
New functionality includes:
- New batching algorithm that supports dynamic scaling of batch-size and number of concurrent requests.
- New filter syntax that also supports structured filtering on references for normal properties and metadata.
- All reference functions have unified input formats and now accept UUID, str and (where applicable) List[str], List[UUID].
- Returned types are now available in weaviate.output.
- Add missing classes to weaviate.classes.
- Add missing parameters to connect_to_XXX, all functions should support skipping of init checks and auth.
- The client can now be used in a context manager with connect_to_XX(..) as client and all connections will be closed when exiting the manager.
- New close function client.close() that needs to be called when not using a context manager to avoid stale connections and potential memory leaks.
- Support for Phonenumber datatype.
- Referenced objects now contain the name of their collection.
- Adds collection.config.update_shards().
Bugfixes include:
- object.reference is empty instead of None, if an object does not have a reference.
- Fixes creating backups on weaviate master.
- Add missing classes to wvc.
New client usage: - Client as a context manager:
with weaviate.connect_to_local() as client: # Your code
Client without a context manager:
try: client = weaviate.connect_to_local() # Your code finally: client.close()
This beta version includes:
- A fix to the
_Propertydataclass returned withincollection.config.get()to include anynested_propertiesofobjectandobject[]type properties - Fix batch inserts with empty lists
This beta version includes:
- fetch_object_by_id with Weaviate 1.22 returned
Nonefor non-existing references - empty strings in returned objects caused a panic with weaviate 1.22
- Support for nodes/cluster API
- Speed up client creation when connecting to WCS using
connect_to_wcs - Checks GRPC availability of Weaviate instance and return an error if it is not supported yet
- Adds
skip_init_checkstoconnect_to_wcs
With the next Weaviate version (1.23.1) this beta version supports: - Blob properties - Reranker
This beta version fixes an issue with being unable to disable PQ once enabled
This beta version fixes a naming issue:
- All instances of quantitizer have been renamed to quantizer
This version works best with Weaviate 1.23 which was released on 2023-12-18.
This beta version has breaking changes, a migration guide is available at https://www.weaviate.io/developers/weaviate/client-libraries/python#migration-guides:
- Refactor
weaviate.classesstructure - Rename various classes and methods:
- In all vectorizer configuration methods:
vectorize_class_name=>vectorize_collection_name object.metadata.creation_time_unix=>object.metadata.creation_timewhich is now a datetimeobject.metadata.last_update_time_unix=>object.metadata.last_update_timewhich is now a datetimeMetadataQuery(creation_time_unix=.., last_update_time_unix= ..)=>MetadataQuery(creation_time=.., last_update_time=..)FromReference=>QueryReferencewhen querying references
- In all vectorizer configuration methods:
- Splits out references from properties when creating, changing and querying collections
- UUID and UUID_ARRAY properties are now returned as typed UUID objects
- DATE and DATE_ARRAY properties are now returned as typed datetime objects
vector_index_type``has been remove from ``collection.create()and is now determined automaticallyConfigure.vector_index()has been moved toConfigure.VectorIndex.hnsw()- PQ can now be configured using Configure.VectorIndex.hnsw(quantitizer=Configure.VectorIndex.Quantitizer.pq(..options..))
object.metadata.vectorwas moved toobject.vectorand can be requested by usinginclude_vector=True/Falsewhen queryingobject.metadata.uuidwas moved toobject.uuidand is always available- Order of arguments in .data.update() and .replace() changed to accommodate not providing properties when updating.
- In .data.reference_add, .reference_delete and .reference_replace the
refkeyword was renamed toto - In collections.create() and .get() the keyword to provide generics was renamed from
data_modeltodata_model_properties
New functionality includes:
- Adds backup functionality to v4 client (
client.backup) and directly to the collection (collection.backup) - Adds support for FLAT vector index
- Adds binary quantization for FLAT vector index
- Adds
text2vec_jinaaistatic method toConfigure.Vectorizer - Adds
anyscalestatic method toConfigure.Generative - Adds collection.batch for uploading to a single collection in batches
- Adds methods for creating a collection from dict and exporting a collection config as dict
- Adds support for geo-coordinates
- Adds metadata filtering with
FilterMetadata - Adds
client.graphql_raw_queryto use Weaviate features that are not directly supported. - Adds
DataReferenceOneToManywhich allows to add multiple references at once. - Adds validation of input parameters for non-mypy users.
- Various performance improvements and bugfixes
This patch beta version includes:
- Performance improvements when making queries
This minor beta version includes:
- Adds support for connecting to WCS using the
connect_to_wcshelper function - Changes default
num_workersinclient.batchfrom1to Python'sThreadPoolExecutordefault - Adds
text2vec-awsandgenerative-awsstatic methods toConfigure.VectorizerandConfigure.Generative - Tidy up stale docstrings
- Add missing class exports
This patch beta version includes:
- Fixes to the
dataclasstypes returned by aggregate queries
This patch beta version includes:
- Bump default Weaviate embedded version
This minor beta version includes:
- Refactoring of the
_Objectclass _Object.metadata.uuidmoved to_Object.uuidand is notOptional_Object.metadata.vectormoved to_Object.vector
- Refactoring of the
- Addition of
include_vectorargument to all queries include_vectorisFalseby default
- Addition of
return_metadatain queries is nowOptionaland defaults toNone_Object.metadatais nowOptionalas a result
- Addition of
include_vectortoFromReference - Addition of
ReferenceAnnotationfor use when defining generic annotated cross references
This patch beta version includes:
- Allow
Nonewhen batch inserting usingDataObjectandBatchObject
This patch beta version includes:
- Bug fix of the default
alphaargument toquery.hybrid - Extend the
Configure.Vectorizer.multi2vec_methods to accept lists of strings - Correctly export
StopwordsPresetfromweaviate.classes - Add
generative_configandvectorizer_configto_CollectionConfig - Add
skip_vectorizationandvectorize_class_nameto_PropertyConfig
This minor beta version includes:
- A refactoring of the
collection.aggregatenamespace methods - Change
Metricsto no longer accept thetype_argument - Instead,
Metricshas multiple methods, e.g..text(), for each type of metric - Allow
return_metricsto be a single metric object or a list of metric objects in each aggregate query
This patch beta version includes:
- Correctly exporting
weaviate.collections.classes.aggregate.Metricsfromweaviate.classes
This patch beta version includes:
- Bumping the default embedded version to Weaviate latest
- Adding the
versionargument toweaviate.connect_to_embeddedto allow users to specify the embedded version
This minor beta version includes:
- Makes
total_count=Truethe default in aggregation queries to avoid unintentional GraphQL errors - Catches empty GraphQL errors in aggregation queries in case of user error
- Renames
class_nametocollectionswithin thecollections.batchnamespace - Adds
get_vectorto thecollections.datanamespace so that users can supply numpy and pytorch vectors - Adds
__str__magic method toCollectionsclass so thatprint(collection)outputs the collection's schema as pretty JSON
This patch beta version includes:
- Update changelog
This patch beta version includes:
- A small bug fix to remove a redundant print
- Raising an exception from
connect_to_wcsas gRPC support is not ready - Making
_Collectiona public class asCollectionto be used in type hinting
This patch beta version includes:
- Addition of
batch_sizetoclient.batch.configurefor users who want automatic non-dynamic batching - Renaming of
ConfigureUpdatetoReconfigure - Fixing of missing arguments to
Configure.Vectorizer.text2vec_methods
This patch beta version includes:
- Fixes to the readthedocs documentation appearance
This beta version includes:
- Introduction of the new beta Python collections client API
- Streamlined and simplified client API for mutating and querying your data
- Full support for gRPC batching and searching
- End-to-end generics support for type safety
- Python-native dataclasses for easy data manipulation
- No more builder methods or raw dictionaries
- Join the discussion and contribute your feedback here
This patch version includes
- Fixes GraphQL query injection vulnerability caused by incorrect escaping of backslashes in plain text input builder methods
- Many thanks to @adamleko, @bismuthsalamander, and @tardigrade-9 for their help in fixing this issue
This patch version includes
- Fixes batch retry with tenants
This patch version includes
- Adds a timeout to wait_for_weaviate startup check
This patch version includes
- Fix backup creation with current weaviate master
This minor version includes:
- Support for Weaviate 1.23
- Bump of the default version for Weaviate Embedded DB to v1.23.0
- Adds support for nodes api verbosity option
This patch version includes
- Bump of the default version for Weaviate Embedded DB to v1.22.3
This patch version includes
- Fixes to the codebase naming convention and directory structure to prevent collision with Google's proto-plus library
- Fixes to the build method so that readthedocs.io builds the documentation correctly again
This patch version includes:
- Bump default embedded version to 1.22.0
This minor version includes:
- Support for new Weaviate nested objects on insert and query
client.data_object.create()now supports nested objectsclient.query.get()now supports nested objects
- Updates to use Weaviate's v1 gRPC API
- Support for batching with Weaviate>1.22.0 version and async vector indexing
- Addition of the client.batch.wait_for_async_indexing() method to force block until async indexing is complete
- Add tests for Python 3.12 to ensure compatibility
This patch version includes:
- Small fix to the batching process to ensure that failed multi-tenant objects are re-added to the batch with their tenant attached
This patch version updates the changelog.rst that became stale over the last few releases
This minor version includes:
- Small fixes and improvements throughout the codebase:
- Catching and reraising of
JsonDecodeExceptionfor users to catch - Client-wide mypy error fixing and type hinting improvements
- Fix for where filter operands in
batch.delete_objects - Removal of buggy client-side schema validation
- Package dependency updates
- Catching and reraising of
This patch version includes:
- Enforcing class name capitalization throughout the client
- Further fixes to where filtering with
ContainsAny/All
This patch version includes:
- Enabling of
rerank-coheremodule inEmbeddedWeaviate - Fixes for where filtering between
query.getover GraphQL andbatch.delete_objectsover REST
This minor version updates the client to work with Weaviate's 1.21 version and includes:
- Adds support for
near<Media>filters when using the newmulti2vec-bindmodule for neural searching on different media types client.query.get().with_near_audio()client.query.get().with_near_depth()client.query.get().with_near_image()(unchanged from previous versions but usable by the module)client.query.get().with_near_imu()client.query.get().with_near_thermal()client.query.get().with_near_video()
- Adds support for
- Deprecates configuring
client.batchusingclient.batch()in favour of usingclient.batch.configure() client.batch()will be removed in a future versionclient.batch.configure()will returnNonein a future versionwith client.batch as batchshould be the standard way to initiate a batch
- Deprecates configuring
- Adds support for new
ContainsAnyandContainsAllfilters when using.with_where - Adds support for updating individual tenants within a multi-tenancy class configuration:
client.schema.update_class_tenants - Improves
client.batchalgorithm to choose batch size dynamically maximizing throughput - Provides sensible defaults to
client.batchthat do not cause unexpected damaging consequences like infinite batch sizes - Fixes bugs when using
.with_wherewithvalueText,valueString, andvalueGeoRangetypes
This patch version includes:
- Fix "is client outdated"-check in air-gaped environments
- Add
tenantto batch delete
This minor version includes:
- Multi-tenancy
- Aggregate with limit
- Autocut
- Fusion type for hybrid search
- Client emits a warning when it is outdated (three minor version behind last release on pypi)
- Increase default embedded version to 1.19.12
This minor version includes: - Weaviate Embedded supports MacOs
This patch version includes:
- Fix imports without GRPC package
- Improve shutdown handling with Weaviate Embedded
This minor version includes:
- Increase maximum version of request library to
2.31.0. This also updates to urllib 2.0. This may contain minor breaking changes if you use urllib in other projects in the same virtual environment. - Add licensing information to pypi package
- Increase default embedded version to 1.19.7
This patch version includes:
- Add custom headers to all requests
- Support properties field in generative groupedResult field
This patch version includes:
- Fixes imports of of
weaviate_pb2.
This minor version includes:
Increases default embedded version to 1.19.3
Clients emits warning if used weaviate version is too old (3 versions behind latest minor version)
Adds native support for querying reference properties
result = client.query.get( "Article", ["title", "url", "wordCount", LinkTo(link_on="caller", linked_class="Person", properties=["name"])] )
Adds dataclasses to easier access to additional properties:
query = client.query.get("Test").with_additional( weaviate.AdditionalProperties( uuid=True, vector=True, creationTimeUnix=True, lastUpdateTimeUnix=True, distance=True, ) )
Typing fixes
- Expand support for experimental GRPC API and add support for
- BM25 and hybrid search
- Additional properties (via dataclass shown above)
- Querying reference properties (via dataclass shown above)
This minor version includes:
- Add support for properties with hybrid search
- Fixes documentation publishing on readthedocs
This patch version includes:
- Fix schemas with new property keys indexFilterable and indexSearchable.
This minor version includes:
Add support for groupBy to group objects:
.with_group_by(properties=["caller"], groups=2, objects_per_group=3)
Add support for uuid and uuid[] datatypes.
Add schema.exists(class).
Add support for Support GQL Get{} tunable consistency:
resp = ( client.query.get("Article", ["name"]) .with_additional("isConsistent") .with_consistency_level(ConsistencyLevel.ALL) .do() )
This patch version includes:
- Fix url containing username and password.
This patch version includes:
- Fixes timeout error in detection of grpc.
This minor version includes:
- Experimental support for GRPC.
- Can by enabled by installing the client with pip install weaviate-client[GRPC] or install the grpcio package manually.
- To disable uninstall the grpcio package.
- This will speed up certain GraphQL queries: Get with NearObject or NearVector if only non-reference queries are retrieved and no other options are set.
- Removal of python 3.7 support. Minimum supported version is python 3.8
- Removal of the WCS module. Note that the module was used to administrate old WCS instances and does not work anymore.
This patch version includes:
- Fix multi-line queries for BM25 and hybrid search.
This patch version includes:
- EmbeddedDB now supports
latestand versions (eg1.18.3) asversionargument. - Removed
cluster_hostnamefromEmbeddedOptions. It can still be set by usingadditional_env_vars. - Fix multi-line queries for generative search.
This patch version includes:
- Fix imports of EmbeddedDB on Mac. It now properly raises an exception that MacOS is currently unsupported.
This patch version includes:
- Improve embedded weaviate: Better folder structures, add support for env variables and support multiple versions.
- Fix edge case for timeout retries: When all objects have been added, no empty batch will be send.
- Fix authentication via additional_headers
This patch version includes:
- Fixes API keys with Weaviate setups that do not have OIDC enabled.
This patch version includes:
- Fixes refreshing of OIDC tokens on unstable connections
This minor version includes:
GraphQL Multiple queries and aliases support:
client.query.multi_get( [ client.query.get("Ship", ["name"]).with_alias("one"), client.query.get("Ship", ["size"]).with_alias("two"), client.query.get("Person", ["name"]) ]
Adds support for embedded weaviate version:
from weaviate import Client from weaviate.embedded import EmbeddedOptions # Create the embedded client which automatically launches a Weaviate database in the background client = Client(embedded_options=EmbeddedOptions())
This minor version includes:
Support for API-Keys:
client = weaviate.Client(url, auth_client_secret=AuthApiKey(api_key="my-secret-key"))
This minor version includes:
- Extend CRUD operations for single data objects and reference with consistency level.
- Extend batch operations with consistency level.
- Add Cursor api.
- Add support for azure backup module.
This minor version includes:
- Adds :meth:`~weaviate.gql.get.GetBuilder.with_generate` in :class:`~weaviate.gql.get.GetBuilder` which allows to use the generative openai module. Needs Weaviate with version >=v1.17.3.
- Fix for empty OIDC scopes
- New startup_period parameter in :class:`~weaviate.client.Client`. The client will wait for the given timeout for Weaviate to start. By default 5 seconds.
- Improved error messages for where filters and authentication.
This minor version includes:
New status code attribute for :class:`~weaviate.exceptions.UnexpectedStatusCodeException` that can be accessed like this:
try: # your code except weaviate.UnexpectedStatusCodeException as err: print(err.status_code)
Caches server version at :class:`~weaviate.client.Client` initialization. This improves batch reference creation performance.
Changes accepted data types for arguments
from_object_uuidandto_object_uuidof the method :meth:`~weaviate.batch.Batch.add_reference` tostranduuid.UUID.- Adds automatic retry for failed objects. It can be configured using the
weaviate_error_retriesargument for the :meth:`~weaviate.batch.Batch.configure` or :meth:`~weaviate.batch.Batch.__call__`, and should be an instance of :class:`~weaviate.WeaviateErrorRetryConf`. It can be used like this:All errors:
from weaviate import WeaviateErrorRetryConf with client.batch( weaviate_error_retries=WeaviateErrorRetryConf(number_retries=3), ) as batch: # Your code
Exclude errors, all the other errors will be retried:
from weaviate import WeaviateErrorRetryConf with client.batch( weaviate_error_retries=WeaviateErrorRetryConf(number_retries=3, errors_to_exclude=["Ignore me", "other error to ignore"]), ) as batch: # Your code
Include errors, all the other errors will be ignored:
from weaviate import WeaviateErrorRetryConf with client.batch( weaviate_error_retries=WeaviateErrorRetryConf(number_retries=3, errors_to_include=["error to retry", "other error to test again"]), ) as batch: # Your code
Adds new arguments
sortandoffsetfor :meth:`~weaviate.data.DataObject.get`.
This minor version includes:
Improves error message for error
"413: Payload Too Large"- Adds new :class:`~weaviate.client.Client` credential OIDC flow method:
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)
Improves size of batches on dynamic batching.
New
limitargument to :meth:`~weaviate.data.DataObject.get` method of the :class:`~weaviate.data.DataObject` client attribute.Bump minimum version of request to
2.28.0- Adds support for
node_nameandconsistency_levelfor both :meth:`~weaviate.data.DataObject.get` and :meth:`~weaviate.data.DataObject.get_by_id` of the :class:`~weaviate.data.DataObject` client attribute. This can be used ONLY with Weaviate Serverv1.17.0or later. - Adds support for replication factor in schema. This can be used ONLY with Weaviate Server
v1.17.0or later. This can be configured in class schema like this:my_class = { "class": "MyClass", ..., "replicationConfig": { "factor": 1 } }
Adds support for
Bm25forGetqueries, :meth:`~weaviate.gql.get.GetBuilder.with_bm25`. This can be used ONLY with Weaviate Serverv1.17.0or later.Adds support for
with_hybridforGetqueries, :meth:`~weaviate.gql.get.GetBuilder.with_hybrid`. This can be used ONLY with Weaviate Serverv1.17.0or later.
This minor version includes:
- Authentication using Bearer token, by adding
additional_headersto the :class:`~weaviate.client.Client` initialization: client = weaviate.Client( url='http://localhost:8080', additional_headers={ {"authorization": "Bearer <MY_TOKEN>"} } )
- Authentication using Bearer token, by adding
- Multi-threading :class:`~weaviate.batch.Batch` import:
- Now it is possible to import data using multi-threading. The number of threads can be set using the new argument
num_workersin :meth:`~weaviate.batch.Batch.configure` and :meth:`~weaviate.batch.Batch.__call__`, defaults to 1 ( Use with care to not overload your weaviate instance.). - New argument
connection_error_retriesto retry onConnectionErrorthat can be set in :meth:`~weaviate.batch.Batch.configure` and :meth:`~weaviate.batch.Batch.__call__` or using the property getter/setter:client.batch.connection_error_retriesto get the value andclient.batch.connection_error_retries = 5to set the value. - New method :meth:`~weaviate.batch.Batch.start` to create a
BatchExecutor(ThreadExecutor). This method does NOT need to be called if using the :class:`~weaviate.batch.Batch` in a context manager (with). Also it is idempotent. - New method :meth:`~weaviate.batch.Batch.shutdown` to shutdown the existing
BatchExecutor(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 :class:`~weaviate.batch.Batch` in a context manager (with). Also it is idempotent.
- New :class:`~weaviate.client.Client` attribute :class:`~weaviate.cluster.Cluster` to check the status of the cluster nodes.
- The method :meth:`~weaviate.cluster.Cluster.get_nodes_status` returns the status of each node as a list of dictionaries.
client.cluster.get_nodes_status()
Fix for :meth:`~weaviate.data.DataObject.replace` and :meth:`~weaviate.data.DataObject.update` when using with Weaviate server
>=v1.14.0.New default
timeout_config:(10, 60).
This minor version includes:
- Backup functionalities (:class:`~weaviate.backup.Backup`):
- :meth:`~weaviate.backup.Backup.create` method to create backups (all/subset of classes).
- :meth:`~weaviate.backup.Backup.get_create_status` method to get the status of the created backup.
- :meth:`~weaviate.backup.Backup.restore` method to restore Weaviate from a backup (all/subset of classes).
- :meth:`~weaviate.backup.Backup.get_restore_status` method to get the status of the restored backup.
- New :class:`~weaviate.Client` attribute:
backuptocreate,restoreandget statusof the backups. All backup operations MUST be done throughClient.backup. - Added return value for :meth:`~weaviate.batch.Batch.add_data_object`, it now returns the UUID of the added object, if one was not set then an UUIDv4 will be generated.
This minor version includes:
- Adds rolling average (last 5 batches) for batch creation time used by Dynamic Batching method.
- Adds ability to use :meth:`~weaviate.gql.Query.get` without specifying any properties IF Additional Properties (:meth:`~weaviate.gql.get.GetBuilder.with_additional`) are set before executing the query.
- Adds base Weaviate Exception :class:`~weaviate.exceptions.WeaviateBaseError`.
- Adds ability to set proxies. Can be set at :class:`~weaviate.client.Client` initialization by using the new
proxiesortrust_envarguments. - :class:`~weaviate.batch.crud_batch.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 :class:`~weaviate.wcs.WCS` for instances that have authentication enabled:
- :meth:`~weaviate.wcs.WCS.get_users_of_cluster` to get users (emails) for all the users that have access to the created Weaviate instance.
- :meth:`~weaviate.wcs.WCS.add_user_to_cluster` to add users (email) to the created Weaviate instance.
- :meth:`~weaviate.wcs.WCS.remove_user_from_cluster` to remove user (email) from the created Weaviate instance.
This minor version includes:
New function in :func:`~weaviate.util.check_batch_result` used to print errors from batch creation.
- New function argument
class_namefor :func:`~weaviate.util.generate_local_beacon`, used ONLY with Weaviate Server version >=1.14.0 (defaults to
Nonefor backwards compatibility).
- New function argument
- :func:`~weaviate.util.check_batch_result` is the default
callbackfunction for :class:`~weaviate.batch.Batch` (:meth:`~weaviate.batch.Batch.configure` and :meth:`~weaviate.batch.Batch.__call__`) (instead ofNone). - New method argument
to_object_class_namefor :meth:`~weaviate.batch.Batch.add_reference`, used ONLY with Weaviate Server version >=1.14.0(defaults toNonefor backwards compatibility). Support for
distancein GraphQL filters (only with Weaviate server >=1.14.0).- For :class:`~weaviate.data.DataObject`:
- New method argument
class_namefor :meth:`~weaviate.data.DataObject.get_by_id`, :meth:`~weaviate.data.DataObject.get`, :meth:`~weaviate.data.DataObject.delete` :meth:`~weaviate.data.DataObject.exists`, used ONLY with Weaviate Server version >=1.14.0(defaults toNonefor backwards compatibility). Deprecation Warning if Weaviate Server version >= 1.14.0 and
class_nameisNoneOR if Weaviate Server version < 1.14.0 andclass_nameis NOTNone.
- For :class:`~weaviate.data.references.Reference`:
- New method arguments
from_class_nameandto_class_name(to_class_namesfor :meth:`~weaviate.data.references.Reference.update`) for :meth:`~weaviate.data.references.Reference.add`, :meth:`~weaviate.data.references.Reference.delete`, :meth:`~weaviate.data.references.Reference.update`, used ONLY with Weaviate Server version >=1.14.0(defaults toNonefor backwards compatibility). Deprecation Warning if Weaviate Server version >= 1.14.0 and
class_nameisNoneOR if Weaviate Server version < 1.14.0 andclass_nameis NOTNone.
This patch version fixes:
- the rerank not being set bug in :meth:`~weaviate.gql.get.GetBuilder.with_ask`.
- the bug when using double quotes(") in question field in :meth:`~weaviate.gql.get.GetBuilder.with_ask`.
- the bug where nearText filter checks for objects in moveXXX clause but never sets it.
This minor version contains functionality for the new features introduced in Weaviate v1.13.0.
- New :class:`~weaviate.batch.Batch` method :meth:`~weaviate.batch.Batch.delete_objects` to delete all objects that match a particular expression (
wherefilter). - New :class:`~weaviate.gql.get.GetBuilder` method :meth:`~weaviate.gql.get.GetBuilder.with_sort` that allows sorting data on a particular field/s.
- New :class:`~weaviate.gql.aggregate.AggregateBuilder` method :meth:`~weaviate.gql.aggregate.AggregateBuilder.with_near_text` that allows to aggregate data that is matching
nearTextfilter. - New :class:`~weaviate.gql.aggregate.AggregateBuilder` method :meth:`~weaviate.gql.aggregate.AggregateBuilder.with_near_object` that allows to aggregate data that is matching
nearObjectfilter. - New :class:`~weaviate.gql.aggregate.AggregateBuilder` method :meth:`~weaviate.gql.aggregate.AggregateBuilder.with_near_vector` that allows to aggregate data that is matching
nearVectorfilter.
invertedIndexConfig field.tokenization.Get queries. This method should be used
with the :meth:`~weaviate.gql.get.GetBuilder.with_limit`. This new feature (introduced in weaviate version 1.8.0) allows to
use pagination functionality with the Get queries. The offset represents the start index of the objects to be returned,
and the number of objects is specified by the :meth:`~weaviate.gql.get.GetBuilder.with_limit` method.limit: 10. Then, to "display the second page of 10", set offset: 10, limit: 10 and so on. E.g.
to show the 9th page of 10 results, set offset: 80, limit: 10 to effectively display results 81-90.This patch fixes the 'Batch' object is not callable error.
class_name and cross-refs dataType are implicitly capitalized. (This functionality is added because if class_name is not capitalized
then Weaviate server does it for you, and this was leading to errors where the client and server have different configurations.)Fixes/updates in :class:`~weaviate.schema.Schema` class:
- This patch fixes the :meth:`~weaviate.schema.Schema.contains` to accept separate class schemas as argument i.e. it does not expect to have only this format:
{"classes": [CLASS_1, CLASS_2, ...]}; now it is possible to pass justCLASS_Xas well.
This patch fixes the :meth:`~weaviate.gql.get.GetBuilder.with_near_object`. It uses now explicit string literals for id/beacon in nearoOject clauses.
This patch adds support for array data types: boolean[], date[].
This patch adds support for array data types: int[], number[], text[], string[].
Fixes/updates in :class:`~weaviate.wcs.WCS` class:
- Fixed progress bar for :meth:`~weaviate.wcs.WCS.create`, it is being updated in Notebooks too, instead of printing each iteration on new line.
- Method :meth:`~weaviate.wcs.WCS.create` now prints the creation status above the bar.
Updates in :mod:`~weaviate.gql` sub-package:
- New key-value
autocorrect: <bool>introduced for the :class:`~weaviate.gql.filter.NearText` and :class:`~weaviate.gql.filter.Ask` filters. Theautocorrectis enabled only if Weaviate server has thetext-spellcheckmodule enabled. IfautocorrectisTruethe query is corrected before the query is made. Usage example:
# with 'nearText' filter
client.query\
.get('Article', ['title', 'author'])\
.near_text(
{
'concepts': ['Ecconomy'],
'autocorrect': True
}
)
# the concept should be corrected to 'Economy'
# with 'ask' filter
client.query\
.get('Article', ['title', 'author'])\
.with_ask(
{
'question': 'When was the last financial crysis?',
'autocorrect': True
}
)
# the question should be corrected to 'When was the last financial crisis?'- New method :meth:`~weaviate.gql.get.GetBuilder.with_additional` is added to GET the _additional properties. Usage example:
# single additional property with this GraphQL query
'''
{
Get {
Article {
title
author
_additional {
id
}
}
}
}
'''
client.query\
.get('Article', ['title', 'author'])\
.with_additional('id') # argument as `str`
# multiple additional property with this GraphQL query
'''
{
Get {
Article {
title
author
_additional {
id
certainty
}
}
}
}
'''
client.query\
.get('Article', ['title', 'author'])\
.with_additional(['id', 'certainty']) # argument as `List[str]`
# additional properties as clause with this GraphQL query
'''
{
Get {
Article {
title
author
_additional {
classification {
basedOn
classifiedFields
completed
id
scope
}
}
}
}
}
'''
client.query\
.get('Article', ['title', 'author'])\
.with_additional(
{
'classification' : [
'basedOn',
'classifiedFields',
'completed',
'id',
'scope'
]
}
) # argument as `Dict[str, List[str]]`
# or with this GraphQL query
'''
{
Get {
Article {
title
author
_additional {
classification {
completed
}
}
}
}
}
'''
client.query\
.get('Article', ['title', 'author'])\
.with_additional(
{
'classification' : 'completed'
}
) # argument as `Dict[str, str]`
# additional properties as clause and clause settings with this GraphQL query
'''
{
Get {
Article {
title
author
_additional {
token (
properties: ["content"]
limit: 10
certainty: 0.8
) {
certainty
endPosition
entity
property
startPosition
word
}
}
}
}
}
'''
clause = {
'token': [
'certainty',
'endPosition',
'entity',
'property',
'startPosition',
'word',
]
}
settings = {
'properties': ["content"], # is required
'limit': 10, # optional, int
'certainty': 0.8 # optional, float
}
client.query\
.get('Article', ['title', 'author'])\
.with_additional(
(clause, settings)
) # argument as `Tuple[Dict[str, List[str]], Dict[str, Any]]`
# if the desired clause does not match any example above, then the clause can always
# be converted to string before passing it to the `.with_additional` method- Fixes in :class:`~weaviate.wcs.WCS` class:
- Make :class:`~weaviate.wcs.WCS`'s methods' argument
cluster_namecase insensitive (lowercased inside the method) to match Weaviate Cloud Service' naming convention, this fixes the error when Weaviate Cloud Service lowercases thecluster_namebut the users are not aware of this and get the exception KeyError.
- New :class:`~weaviate.batch.Batch` methods:
- :meth:`~weaviate.batch.Batch.pop_object` / :meth:`~weaviate.batch.Batch.pop_reference` to remove and return an added object/reference from the :class:`~weaviate.batch.Batch` at position
index(by default-1). - :meth:`~weaviate.batch.Batch.empty_objects` / :meth:`~weaviate.batch.Batch.empty_references` to remove all the existing objects/references from the :class:`~weaviate.batch.Batch` instance.
- :meth:`~weaviate.batch.Batch.is_empty_objects` / :meth:`~weaviate.batch.Batch.is_empty_references` to check there are any objects/references in the :class:`~weaviate.batch.Batch` instance.
- Fixes in :class:`~weaviate.wcs.WCS` class:
Authentication only with :class:`~weaviate.auth.AuthClientPassword`.
- The :meth:`~weaviate.wcs.WCS.create` argument
moduleis renamed tomodulesand can also be a list of modules to enable for the WCS cluster. The argument can be used on the PROD WCS too. The :meth:`~weaviate.wcs.WCS.get_cluster_config` does not raise an exception if the cluster does not exist but returns a empty configuration.
The :meth:`~weaviate.wcs.WCS.delete_cluster` does not raise an exception if the cluster does not exist.
Add
phoneNumberto the Weaviate's primitive types. Thanks to GitHub user @cdpierse.Bug fix in :class:`~weaviate.connect.Connection`.
Fix
ConnectionErrorhandling.Optimization in
weaviate.batch.requestsandweaviate.connect.connection.
weaviate.toolsmodule is REMOVED.Batcherclass is REMOVED.WCSclass is moved from theweaviate.toolsto the new moduleweaviate.wcsweaviate.tools.generate_uuidis REMOVED.
:func:`weaviate.util.generate_uuid5` is ADDED.
- New :class:`~weaviate.batch.Batch` class implementation to replace the old one. This implementation uses the
BatchRequestobjects under the hood, which means that there is no need to createBatchRequest's anymore. This new class implementation allows 3 different batch creations methods: manual, auto-create and auto-create with dynamic batching. See the :class:`~weaviate.batch.Batch` documentation for more information. BatchRequestclasses (ObjectsBatchRequestandReferenceBatchRequest) are hidden from the user and should not be used anymore. This is due to the new :class:`~weaviate.batch.Batch` class implementation.- New :class:`~weaviate.schema.Schema` field is ADDED, "shardingConfig". It can bu used with Weaviate version >= 1.6.0.
- New method :meth:`~weaviate.schema.Schema.update_config` used to update mutable schema configuration (like efConstruction, ...).