weaviate python client compatible with weaviate v1.x.x
Changelog: weaviate-python-client v2.0.x
weaviate.batch
-
Batch.create_things() -> Batch.create_objects() (or Batch.create() )
Due to removal of semantic kind (“things/actions”). -
Batch.create_actions() -> Batch.create_objects() (or Batch.create() )
Due to removal of semantic kind (“things/actions”). -
Batch.add_reference() is DEPRECATED -> Batch.create_references() (or Batch.create())
Deprecated to make the name consistent with object creation method. -
Batch.create() ADDED
This method creates eitherobjects
orreferences
. -
ReferenceBatchRequest.get_batch_size() REMOVED
Uselen(<ReferenceBatchRequest>)
. -
ReferenceBatchRequest.get_reference() DEPRECATED -> ReferenceBatchRequest.add()
Due to redundancy on name level. -
ActionsBatchReference -> ObjectsBatchRequest
Due to removal of semantic kind (“things/actions”). -
ThingsBatchReference -> ObjectsBatchRequest
Due to removal of semantic kind (“things/actions”). -
ObjectsBatchRequest.get_objects() DEPRECATED -> ObjectsBatchRequest.add()
Due to redundancy on name level.
weaviate.classification
-
Classification.schedule.with_settings() ADDED
Set additional settings for your classification. -
SOURCE_WHERE_FILTER, TRAINING_SET_WHERE_FILTER, TARGET_WHERE_FILTER global variables were REMOVED.
These global variables were not used anywhere.
weaviate.data.references
-
Reference.delete(..., from_semantic_type, to_semantic_type) arguments were REMOVED.
Due to removal of semantic kind (“things/actions”). -
Reference.update(..., from_semantic_type, to_semantic_type) arguments were REMOVED.
Due to removal of semantic kind (“things/actions”). -
Reference.add(..., from_semantic_type, to_semantic_type) arguments were REMOVED.
Due to removal of semantic kind (“things/actions”).
weaviate.data
-
DataObject.create(..., semantic_type) argument was REMOVED.
Due to removal of semantic kind (“things/actions”). -
DataObject.merge(..., semantic_type) argument was REMOVED.
Due to removal of semantic kind (“things/actions”). -
DataObject.update(..., semantic_type) argument was REMOVED.
Due to removal of semantic kind (“things/actions”). -
DataObject.get_by_id(..., semantic_type) argument was REMOVED.
Due to removal of semantic kind (“things/actions”). -
DataObject.get_by_id(..., underscore_properties) -> DataObject.get_by_id(..., additional_properties).
All underscore properties are now clustered into a single fieldadditional
. -
DataObject.get(..., semantic_type) argument was REMOVED.
Due to removal of semantic kind (“things/actions”). -
DataObject.get(..., underscore_properties) -> DataObject.get(..., additional_properties).
All underscore properties are now clustered into a single fieldadditional
. -
DataObject.delete(..., semantic_type) argument was REMOVED.
Due to removal of semantic kind (“things/actions”). -
DataObject.exists(..., semantic_type) argument was REMOVED.
Due to removal of semantic kind (“things/actions”). -
DataObject.validate(..., semantic_type) argument was REMOVED.
Due to removal of semantic kind (“things/actions”).
weaviate.gql
-
Query.METHOD .thing(...).with_XXX() -> Query.METHOD(...).with_XXX()
Due to removal of semantic kind (“things/actions”). -
Query.METHOD .action(...).with_XXX() -> Query.METHOD(...).with_XXX()
Due to removal of semantic kind (“things/actions”). -
build.Builder -> get.GetBuilder
The module and the class was renamed to reflect the GraphQL functionality. -
get.GetBuilder.with_explore() -> get.GetBuilder.with_near_text() [this means that it can be accessed as Query.get(...).with_near_text()]
Due to the renaming of explore to nearText. -
get.GetBuilder.with_near_vector() is ADDED [this means that it can be accessed as Query.get(...).with_near_vector()]
Due to the addition of a new method nearVector. -
filter.Explore -> filter.NearText
Due to the renaming of explore to nearText. -
filter.NearVector is ADDED
Due to the addition of a new method nearVector.
weaviate.schema.properties
- Property.create(..., semantic_type) argument was REMOVED.
Due to removal of semantic kind (“things/actions”).
weaviate.schema
-
Schema.create_class(..., semantic_type) argument was REMOVED.
Due to removal of semantic kind (“things/actions”). -
Schema.delete_class(..., semantic_type) argument was REMOVED.
Due to removal of semantic kind (“things/actions”).
weaviate.tools
-
Batcher.add_data_object(..., semantic_type) argument was REMOVED.
Due to removal of semantic kind (“things/actions”). -
Batcher.add_reference(..., from_semantic_type, to_semantic_type) arguments were REMOVED.
Due to removal of semantic kind (“things/actions”). -
Batcher.add_reference(from_thing_class_name, from_thing_uuid, to_thing_uuid, ...) -> Batcher.add_reference(from_object_class_name, from_object_uuid, to_object_uuid, ...).
Due to removal of semantic kind (“things/actions”).
weaviate.exceptions
- ThingAlreadyExistsException -> ObjectAlreadyExistsException.
Due to removal of semantic kind (“things/actions”).
weaviate.util
-
generate_local_beacon(..., semantic_type) argument was REMOVED.
Due to removal of semantic kind (“things/actions”). -
is_weaviate_entity_url -> is_weaviate_object_url.
Due to removal of semantic kind (“things/actions”). -
ParsedUUID was REMOVED.
Was used only to check if UUID is valid and return it, now theget_valid_uuid
can be used instead -
is_semantic_type was REMOVED.
Due to removal of semantic kind (“things/actions”). -
get_valid_uuid was ADDED.
Replacement for the ParsedUUID class.