Spaces:
Build error
Build error
Commit ·
2fbdaee
1
Parent(s): faa37d1
Update weaviate_utils.py
Browse files12 unmodified lines131415161617182 unmodified lines21222325242526272 unmodified lines3031323334353612 unmodified lines """ # Construct the search query search_query = { "path": ["*"], "where": { "path": ["*"], "operator": "Like",2 unmodified lines } # Execute the query and retrieve the results results = client.query.get(selected_class, search_query).do() results = client.query.get(selected_class, "*").with_where(search_query).do() # Extract the data objects from the results data_objects = results.get('data', {}).get('Get', {}).get('Things', [])2 unmodified lines
def convert_to_tapas_format(data): """ Convert the list of dictionaries (from Weaviate) into the format TAPAS expects.weaviate_utils.py+2-2