Skip to content

The agent engineering platform.

Fix integration tests for Faiss vector store (#6281)

hp04046aa7b04f7978
diff --git a/tests/integration_tests/vectorstores/test_faiss.py b/tests/integration_tests/vectorstores/test_faiss.py
index dfeea9d12d..d33e6d7827 100644
--- a/tests/integration_tests/vectorstores/test_faiss.py
+++ b/tests/integration_tests/vectorstores/test_faiss.py
@@ -93,7 +93,7 @@ def test_faiss_with_metadatas_and_filter() -> None:
)
assert docsearch.docstore.__dict__ == expected_docstore.__dict__
output = docsearch.similarity_search("foo", k=1, filter={"page": 1})
- assert output == []
+ assert output == [Document(page_content="bar", metadata={"page": 1})]
def test_faiss_search_not_found() -> None: