Spaces:
Build error

jskinner215 commited on
Commit
b9d05c0
·
1 Parent(s): 46ad3c2

Weaviate schema based on user input and csv upload

Browse files

UI Input for Class and Description:
We'll add an input field in the Streamlit app where users can define the class name and description of the CSV they're uploading.

Auto-Populate Schema from CSV:
Once the CSV is uploaded, we'll read its headers to determine the column names. We can then use simple heuristics to determine the data type of each column (e.g., if a column contains only numbers, it's likely a float or int, if it matches date patterns, it's a date, otherwise, it's a string). We'll also use the column names as descriptions for simplicity, but this can be enhanced further if needed.

Create Schema in Weaviate:
Using the class name, description, and the auto-populated properties, we'll define the schema and create it in Weaviate.

Ingest Data:
Once the schema is created, we can then ingest the data from the CSV into Weaviate.

1 file changed +45 -21
app.py+45-21