From 0b82bbfc09ed7cdf165a38f5bb47e853a22476e8 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 16 Dec 2024 08:09:20 -0600 Subject: [PATCH 1/2] INTPYTHON-450 Patch llama index test --- .../patches/pin-test-output.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 llama-index-python-vectorstore/patches/pin-test-output.patch diff --git a/llama-index-python-vectorstore/patches/pin-test-output.patch b/llama-index-python-vectorstore/patches/pin-test-output.patch new file mode 100644 index 0000000..a20f8e3 --- /dev/null +++ b/llama-index-python-vectorstore/patches/pin-test-output.patch @@ -0,0 +1,13 @@ +diff --git a/llama-index-integrations/vector_stores/llama-index-vector-stores-mongodb/tests/test_vectorstore.py b/llama-index-integrations/vector_stores/llama-index-vector-stores-mongodb/tests/test_vectorstore.py +index b48869690..a803fb668 100644 +--- a/llama-index-integrations/vector_stores/llama-index-vector-stores-mongodb/tests/test_vectorstore.py ++++ b/llama-index-integrations/vector_stores/llama-index-vector-stores-mongodb/tests/test_vectorstore.py +@@ -20,7 +20,7 @@ from .conftest import lock + + def test_documents(documents: List[Document]) -> None: + """Sanity check essay was found and documents loaded.""" +- assert len(documents) == 23 ++ assert len(documents) == 25 + assert isinstance(documents[0], Document) + + From 5d607a814f7071df22846110efcde6ecd7665c92 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 16 Dec 2024 08:15:13 -0600 Subject: [PATCH 2/2] fix langchain test --- langchain-python/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langchain-python/run.sh b/langchain-python/run.sh index b379f2d..3e8bb31 100644 --- a/langchain-python/run.sh +++ b/langchain-python/run.sh @@ -13,7 +13,7 @@ ROOT_DIR=$(dirname $SCRIPT_DIR) PYTHON_BINARY=$(find_python3) # shellcheck disable=SC2164 -cd libs/mongodb +cd libs/langchain-mongodb $PYTHON_BINARY -m venv venv_pipeline source venv_pipeline/bin/activate