Spaces:
Running
on
T4
Running
on
T4
error fix
Browse files- utils/retriever.py +1 -1
utils/retriever.py
CHANGED
@@ -203,7 +203,7 @@ def get_context(
|
|
203 |
# limit=top_k,
|
204 |
# with_payload=True)
|
205 |
# filter support for QdrantVectorStore
|
206 |
-
|
207 |
filter_obj = create_filter(filter_metadata)
|
208 |
if filter_obj:
|
209 |
search_kwargs["filter"] = filter_obj
|
|
|
203 |
# limit=top_k,
|
204 |
# with_payload=True)
|
205 |
# filter support for QdrantVectorStore
|
206 |
+
if isinstance(vectorstore, QdrantVectorStore):
|
207 |
filter_obj = create_filter(filter_metadata)
|
208 |
if filter_obj:
|
209 |
search_kwargs["filter"] = filter_obj
|