Spaces:
Build error
Build error
Commit ·
3ceb12a
1
Parent(s): 3f6e7fc
Update weaviate_utils.py
Browse files90 unmodified lines919293949594959697989910010110290 unmodified lines return
# Ingest the data into Weaviate data = [record for record in dataframe.to_dict(orient="records")] client.data_object.create(data, selected_class) data = dataframe.to_dict(orient="records") for record in data: try: client.data_object.create(record, selected_class) except Exception as e: st.error(f"Error ingesting record: {e}")
# Display a preview of the ingested data st.write(f"Your CSV was successfully integrated into the vector database under the class '{selected_class}'")weaviate_utils.py+6-2