Spaces:
Build error
Build error
Commit
·
7caec77
1
Parent(s):
955af6a
Update weaviate_utils.py
Browse files- weaviate_utils.py +4 -6
weaviate_utils.py
CHANGED
|
@@ -13,15 +13,13 @@ def hybrid_search_weaviate(client, selected_class, query):
|
|
| 13 |
"""
|
| 14 |
# Construct the search query
|
| 15 |
search_query = {
|
| 16 |
-
"
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
"value": query
|
| 20 |
-
}
|
| 21 |
}
|
| 22 |
|
| 23 |
# Perform the hybrid search
|
| 24 |
-
results = client.query.get(selected_class, search_query) # Updated this line
|
| 25 |
|
| 26 |
return results
|
| 27 |
|
|
|
|
| 13 |
"""
|
| 14 |
# Construct the search query
|
| 15 |
search_query = {
|
| 16 |
+
"path": ["*"],
|
| 17 |
+
"operator": "fuzzy",
|
| 18 |
+
"value": query
|
|
|
|
|
|
|
| 19 |
}
|
| 20 |
|
| 21 |
# Perform the hybrid search
|
| 22 |
+
results = client.query.get(selected_class, ["*"], filters=search_query) # Updated this line
|
| 23 |
|
| 24 |
return results
|
| 25 |
|