Spaces:
Build error
Build error
Commit ·
41b5bdf
1
Parent(s): dbfca31
Update weaviate_utils.py
Browse files45 unmodified lines4647484945 unmodified lines}try:client.schema.property.create(class_name, property_schema)except weaviate.exceptions.SchemaValidation:45 unmodified lines4647484950515253545556575859606145 unmodified lines}try:client.schema.property.create(class_name, property_schema)except weaviate.exceptions.SchemaValidationException:# Property might already exist, so we can continuepass# Now, let's ingest the datadata = 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 None
weaviate_utils.py+13-1