Spaces:
Build error
Build error
Commit ·
1233a10
1
Parent(s): cc87f36
Update weaviate_utils.py
Browse files84 unmodified lines858687888990919284 unmodified lines# After converting the CSV to a dataframeembedded_table = tapas_utils.embed_table(dataframe)# Store the embedded table in Weaviateclient.data_object.create({"embeddedTable": embedded_table.tolist()}, selected_class)# Fetch the schema for the selected classclass_schema = get_class_schema(client, selected_class)84 unmodified lines85868788899091929394959697989910084 unmodified lines# After converting the CSV to a dataframeembedded_table = tapas_utils.embed_table(dataframe)# Create a unique ID for the table (for example, based on its content)table_id = hashlib.md5(dataframe.to_csv(index=False).encode()).hexdigest()# Store the embedded table in Weaviateclient.data_object.create({"id": table_id,"embeddedTable": embedded_table.tolist(),"content": dataframe.to_csv(index=False)}, selected_class)# Fetch the schema for the selected classclass_schema = get_class_schema(client, selected_class)
weaviate_utils.py+9-1