Spaces:
Running
on
T4
Running
on
T4
error fix for filter
Browse files
utils/__pycache__/retriever.cpython-311.pyc
CHANGED
Binary files a/utils/__pycache__/retriever.cpython-311.pyc and b/utils/__pycache__/retriever.cpython-311.pyc differ
|
|
utils/retriever.py
CHANGED
@@ -104,7 +104,10 @@ def create_filter(
|
|
104 |
match=rest.MatchAny(any=val)
|
105 |
)
|
106 |
)
|
107 |
-
|
|
|
|
|
|
|
108 |
|
109 |
|
110 |
def rerank_documents(query: str, documents: List[Dict[str, Any]]) -> List[Dict[str, Any]]:
|
|
|
104 |
match=rest.MatchAny(any=val)
|
105 |
)
|
106 |
)
|
107 |
+
filter = rest.Filter(
|
108 |
+
must = conditions
|
109 |
+
)
|
110 |
+
return filter
|
111 |
|
112 |
|
113 |
def rerank_documents(query: str, documents: List[Dict[str, Any]]) -> List[Dict[str, Any]]:
|