Spaces:
Build error
Build error
Commit ·
41b5bdf
1
Parent(s): dbfca31
Update weaviate_utils.py
Browse files45 unmodified lines464748494950515253545556575859606145 unmodified lines } try: client.schema.property.create(class_name, property_schema) except weaviate.exceptions.SchemaValidation: except weaviate.exceptions.SchemaValidationException: # Property might already exist, so we can continue pass
# Now, let's ingest the data data = dataframe.to_dict(orient="records") client.data_object.create(data, class_name)
def get_class_schema(client, class_name): try: return client.schema.get_class(class_name) except weaviate.exceptions.SchemaValidationException: return Noneweaviate_utils.py+13-1