Spaces:
Build error
Build error
Commit
·
c2c40bf
1
Parent(s):
7caec77
Update weaviate_utils.py
Browse files- weaviate_utils.py +2 -1
weaviate_utils.py
CHANGED
|
@@ -19,10 +19,11 @@ def hybrid_search_weaviate(client, selected_class, query):
|
|
| 19 |
}
|
| 20 |
|
| 21 |
# Perform the hybrid search
|
| 22 |
-
results = client.query.get(selected_class, ["*"],
|
| 23 |
|
| 24 |
return results
|
| 25 |
|
|
|
|
| 26 |
def convert_to_tapas_format(data):
|
| 27 |
"""
|
| 28 |
Convert the list of dictionaries (from Weaviate) into the format TAPAS expects.
|
|
|
|
| 19 |
}
|
| 20 |
|
| 21 |
# Perform the hybrid search
|
| 22 |
+
results = client.query.get(selected_class, ["*"], where=search_query) # Updated this line
|
| 23 |
|
| 24 |
return results
|
| 25 |
|
| 26 |
+
|
| 27 |
def convert_to_tapas_format(data):
|
| 28 |
"""
|
| 29 |
Convert the list of dictionaries (from Weaviate) into the format TAPAS expects.
|