Skip to content

Commit

Permalink
Update qdrant test_run_filters (#969)
Browse files Browse the repository at this point in the history
  • Loading branch information
vblagoje authored Aug 15, 2024
1 parent 1caa410 commit 47d034a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion integrations/qdrant/tests/test_retriever.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,10 @@ def test_run_filters(self, filterable_docs: List[Document]):
filters={"field": "meta.chapter", "operator": "==", "value": "abstract"},
return_embedding=False,
)["documents"]
assert len(results) == 3
# we need to combine init filter and run filter as the policy is MERGE
# when we combine these filters we use AND logical operator by default
# so the result should be 1 as we have only one document that matches both filters
assert len(results) == 1

for document in results:
assert document.embedding is None
Expand Down

0 comments on commit 47d034a

Please sign in to comment.