Spaces:
Build error
Build error
Commit ·
8aa52ea
1
Parent(s): dffd9dd
Update weaviate_utils.py
Browse files11 unmodified lines121314151617182 unmodified lines21222324252611 unmodified linesReturn the results as a list of dictionaries."""# Perform the hybrid searchresults = client.data_object.search(className=selected_class,query=query,filters=None, # No additional filters for now2 unmodified linesreturn resultsdef convert_to_tapas_format(data):"""Convert the list of dictionaries (from Weaviate) into the format TAPAS expects.11 unmodified lines121314151617182 unmodified lines2122232425262711 unmodified linesReturn the results as a list of dictionaries."""# Perform the hybrid searchresults = client.data_object.get_by_search( # Updated this lineclassName=selected_class,query=query,filters=None, # No additional filters for now2 unmodified linesreturn resultsdef convert_to_tapas_format(data):"""Convert the list of dictionaries (from Weaviate) into the format TAPAS expects.
weaviate_utils.py+2-1