Spaces:
Build error
Build error
Commit ·
69983c5
1
Parent(s): c2c40bf
Update weaviate_utils.py
Browse files13 unmodified lines1415161718192021222324252627282913 unmodified lines# Construct the search querysearch_query = {"path": ["*"],"operator": "fuzzy","value": query}# Perform the hybrid searchresults = client.query.get(selected_class, ["*"], where=search_query) # Updated this linereturn resultsdef convert_to_tapas_format(data):"""Convert the list of dictionaries (from Weaviate) into the format TAPAS expects.13 unmodified lines141516171819202122232425262728293031323313 unmodified lines# Construct the search querysearch_query = {"path": ["*"],"where": {"path": ["*"],"operator": "Like","valueString": query}}# Perform the searchresults = client.query.get(selected_class, ["*"])return resultsdef convert_to_tapas_format(data):"""Convert the list of dictionaries (from Weaviate) into the format TAPAS expects.
weaviate_utils.py+9-5