jskinner215 commited on
Commit
8aa52ea
·
1 Parent(s): dffd9dd

Update weaviate_utils.py

Browse files
Files changed (1) hide show
  1. weaviate_utils.py +2 -1
weaviate_utils.py CHANGED
@@ -12,7 +12,7 @@ def hybrid_search_weaviate(client, selected_class, query):
12
  Return the results as a list of dictionaries.
13
  """
14
  # Perform the hybrid search
15
- results = client.data_object.search(
16
  className=selected_class,
17
  query=query,
18
  filters=None, # No additional filters for now
@@ -21,6 +21,7 @@ def hybrid_search_weaviate(client, selected_class, query):
21
 
22
  return results
23
 
 
24
  def convert_to_tapas_format(data):
25
  """
26
  Convert the list of dictionaries (from Weaviate) into the format TAPAS expects.
 
12
  Return the results as a list of dictionaries.
13
  """
14
  # Perform the hybrid search
15
+ results = client.data_object.get_by_search( # Updated this line
16
  className=selected_class,
17
  query=query,
18
  filters=None, # No additional filters for now
 
21
 
22
  return results
23
 
24
+
25
  def convert_to_tapas_format(data):
26
  """
27
  Convert the list of dictionaries (from Weaviate) into the format TAPAS expects.