Spaces:
Build error
Build error
Commit ·
3ceb12a
1
Parent(s): 3f6e7fc
Update weaviate_utils.py
Browse files90 unmodified lines919293949596979890 unmodified linesreturn# Ingest the data into Weaviatedata = [record for record in dataframe.to_dict(orient="records")]client.data_object.create(data, selected_class)# Display a preview of the ingested datast.write(f"Your CSV was successfully integrated into the vector database under the class '{selected_class}'")90 unmodified lines91929394959697989910010110290 unmodified linesreturn# Ingest the data into Weaviatedata = 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 datast.write(f"Your CSV was successfully integrated into the vector database under the class '{selected_class}'")
weaviate_utils.py+6-2