Spaces:
Build error
Build error
Commit ·
955af6a
1
Parent(s): 6a501ae
Update weaviate_utils.py
Browse files10 unmodified lines11121314151617181920212223242526272810 unmodified linesPerform a hybrid search on Weaviate using the provided class and query.Return the results as a list of dictionaries."""# Construct the hybrid search queryst.write(f"Search query type: {type(search_query)}, Value: {search_query}")search_query = {"class": selected_class,"properties": [], # Retrieve all properties for now"searchString": query,"limit": 100 # Limit to 100 results for now}# Perform the hybrid searchresults = client.query.get(search_query)return results10 unmodified lines111213141516171819202122232425262710 unmodified linesPerform a hybrid search on Weaviate using the provided class and query.Return the results as a list of dictionaries."""# Construct the search querysearch_query = {"query": {"path": ["*"],"operator": "fuzzy","value": query}}# Perform the hybrid searchresults = client.query.get(selected_class, search_query) # Updated this linereturn results
weaviate_utils.py+8-9