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