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