Last active
October 1, 2024 21:45
-
-
Save sarahec/74e1bef7f170ba1ee37cb42f6499124e to your computer and use it in GitHub Desktop.
Build log for python312Packages.langchain-chroma after updating chromadb to 0.5.11 -- aarch64-Darwin 10.5 (Sierra)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sourcing python-remove-tests-dir-hook | |
Sourcing python-catch-conflicts-hook.sh | |
Sourcing python-remove-bin-bytecode-hook.sh | |
Sourcing pypa-build-hook | |
Using pypaBuildPhase | |
Sourcing python-runtime-deps-check-hook | |
Using pythonRuntimeDepsCheckHook | |
Sourcing pypa-install-hook | |
Using pypaInstallPhase | |
Sourcing python-imports-check-hook.sh | |
Using pythonImportsCheckPhase | |
Sourcing python-namespaces-hook | |
Sourcing python-catch-conflicts-hook.sh | |
Sourcing pytest-check-hook | |
Using pytestCheckPhase | |
Running phase: unpackPhase | |
@nix { "action": "setPhase", "phase": "unpackPhase" } | |
unpacking source archive /nix/store/ja1sg78nshlwrwxcngyhi62i36xdxqdy-source | |
source root is source/libs/partners/chroma | |
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/libs/partners/chroma/tests/unit_tests/test_vectorstores.py | |
Running phase: patchPhase | |
@nix { "action": "setPhase", "phase": "patchPhase" } | |
Running phase: updateAutotoolsGnuConfigScriptsPhase | |
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" } | |
Running phase: configurePhase | |
@nix { "action": "setPhase", "phase": "configurePhase" } | |
no configure script, doing nothing | |
Running phase: buildPhase | |
@nix { "action": "setPhase", "phase": "buildPhase" } | |
Executing pypaBuildPhase | |
Creating a wheel... | |
[1m* Getting build dependencies for wheel...[0m | |
[1m* Building wheel...[0m | |
[1m[92mSuccessfully built [4mlangchain_chroma-0.1.4-py3-none-any.whl[0m[1m[92m[0m | |
Finished creating a wheel... | |
/private/tmp/nix-build-python3.11-langchain-chroma-0.1.4.drv-0/source/libs/partners/chroma/dist /private/tmp/nix-build-python3.11-langchain-chroma-0.1.4.drv-0/source/libs/partners/chroma | |
Unpacking to: unpacked/langchain_chroma-0.1.4...OK | |
Repacking wheel as ./langchain_chroma-0.1.4-py3-none-any.whl...OK | |
/private/tmp/nix-build-python3.11-langchain-chroma-0.1.4.drv-0/source/libs/partners/chroma | |
Finished executing pypaBuildPhase | |
Running phase: pythonRuntimeDepsCheckHook | |
@nix { "action": "setPhase", "phase": "pythonRuntimeDepsCheckHook" } | |
Executing pythonRuntimeDepsCheck | |
Checking runtime dependencies for langchain_chroma-0.1.4-py3-none-any.whl | |
Finished executing pythonRuntimeDepsCheck | |
Running phase: installPhase | |
@nix { "action": "setPhase", "phase": "installPhase" } | |
Executing pypaInstallPhase | |
Successfully installed langchain_chroma-0.1.4-py3-none-any.whl | |
Finished executing pypaInstallPhase | |
Running phase: pythonOutputDistPhase | |
@nix { "action": "setPhase", "phase": "pythonOutputDistPhase" } | |
Executing pythonOutputDistPhase | |
Finished executing pythonOutputDistPhase | |
Running phase: fixupPhase | |
@nix { "action": "setPhase", "phase": "fixupPhase" } | |
checking for references to /private/tmp/nix-build-python3.11-langchain-chroma-0.1.4.drv-0/ in /nix/store/52rkn8bc21pxrdgm55p2qz2mqlprhzgi-python3.11-langchain-chroma-0.1.4... | |
patching script interpreter paths in /nix/store/52rkn8bc21pxrdgm55p2qz2mqlprhzgi-python3.11-langchain-chroma-0.1.4 | |
stripping (with command strip and flags -S) in /nix/store/52rkn8bc21pxrdgm55p2qz2mqlprhzgi-python3.11-langchain-chroma-0.1.4/lib | |
checking for references to /private/tmp/nix-build-python3.11-langchain-chroma-0.1.4.drv-0/ in /nix/store/i2mp4p5044l3ypnbmhmz8irp9hymrw14-python3.11-langchain-chroma-0.1.4-dist... | |
patching script interpreter paths in /nix/store/i2mp4p5044l3ypnbmhmz8irp9hymrw14-python3.11-langchain-chroma-0.1.4-dist | |
Executing pythonRemoveTestsDir | |
Finished executing pythonRemoveTestsDir | |
Running phase: installCheckPhase | |
@nix { "action": "setPhase", "phase": "installCheckPhase" } | |
no Makefile or custom installCheckPhase, doing nothing | |
Running phase: pythonCatchConflictsPhase | |
@nix { "action": "setPhase", "phase": "pythonCatchConflictsPhase" } | |
Running phase: pythonRemoveBinBytecodePhase | |
@nix { "action": "setPhase", "phase": "pythonRemoveBinBytecodePhase" } | |
Running phase: pythonImportsCheckPhase | |
@nix { "action": "setPhase", "phase": "pythonImportsCheckPhase" } | |
Executing pythonImportsCheckPhase | |
Check whether the following modules can be imported: langchain_chroma | |
Running phase: pytestCheckPhase | |
@nix { "action": "setPhase", "phase": "pytestCheckPhase" } | |
Executing pytestCheckPhase | |
[1m============================= test session starts ==============================[0m | |
platform darwin -- Python 3.11.9, pytest-8.3.2, pluggy-1.5.0 | |
rootdir: /private/tmp/nix-build-python3.11-langchain-chroma-0.1.4.drv-0/source/libs/partners/chroma | |
configfile: pyproject.toml | |
plugins: anyio-4.4.0 | |
[1mcollecting ... [0m[1m | |
collecting 28 items [0m[1m | |
collected 30 items [0m | |
tests/integration_tests/test_compile.py [32m.[0m[32m [ 3%][0m | |
tests/integration_tests/test_vectorstores.py [32m.[0m[33ms[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[31mF[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[33ms[0m[33ms[0m[33ms[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[31m [ 93%] | |
[0m[31m [ 93%][0m | |
tests/unit_tests/test_imports.py [32m.[0m[31m [ 96%][0m | |
tests/unit_tests/test_vectorstores.py [32m.[0m[31m [100%][0m | |
=================================== FAILURES =================================== | |
[31m[1m_________________________ test_chroma_update_document __________________________[0m | |
[0m[94mdef[39;49;00m [92mtest_chroma_update_document[39;49;00m() -> [94mNone[39;49;00m:[90m[39;49;00m | |
[90m [39;49;00m[33m"""Test the update_document function in the Chroma class."""[39;49;00m[90m[39;49;00m | |
[90m# Make a consistent embedding[39;49;00m[90m[39;49;00m | |
embedding = ConsistentFakeEmbeddings()[90m[39;49;00m | |
[90m[39;49;00m | |
[90m# Initial document content and id[39;49;00m[90m[39;49;00m | |
initial_content = [33m"[39;49;00m[33mfoo[39;49;00m[33m"[39;49;00m[90m[39;49;00m | |
document_id = [33m"[39;49;00m[33mdoc1[39;49;00m[33m"[39;49;00m[90m[39;49;00m | |
[90m[39;49;00m | |
[90m# Create an instance of Document with initial content and metadata[39;49;00m[90m[39;49;00m | |
original_doc = Document(page_content=initial_content, metadata={[33m"[39;49;00m[33mpage[39;49;00m[33m"[39;49;00m: [33m"[39;49;00m[33m0[39;49;00m[33m"[39;49;00m})[90m[39;49;00m | |
[90m[39;49;00m | |
[90m# Initialize a Chroma instance with the original document[39;49;00m[90m[39;49;00m | |
docsearch = Chroma.from_documents([90m[39;49;00m | |
collection_name=[33m"[39;49;00m[33mtest_collection[39;49;00m[33m"[39;49;00m,[90m[39;49;00m | |
documents=[original_doc],[90m[39;49;00m | |
embedding=embedding,[90m[39;49;00m | |
ids=[document_id],[90m[39;49;00m | |
)[90m[39;49;00m | |
old_embedding = docsearch._collection.peek()[[33m"[39;49;00m[33membeddings[39;49;00m[33m"[39;49;00m][ [90m# type: ignore[39;49;00m[90m[39;49;00m | |
docsearch._collection.peek()[[33m"[39;49;00m[33mids[39;49;00m[33m"[39;49;00m].index(document_id)[90m[39;49;00m | |
][90m[39;49;00m | |
[90m[39;49;00m | |
[90m# Define updated content for the document[39;49;00m[90m[39;49;00m | |
updated_content = [33m"[39;49;00m[33mupdated foo[39;49;00m[33m"[39;49;00m[90m[39;49;00m | |
[90m[39;49;00m | |
[90m# Create a new Document instance with the updated content and the same id[39;49;00m[90m[39;49;00m | |
updated_doc = Document(page_content=updated_content, metadata={[33m"[39;49;00m[33mpage[39;49;00m[33m"[39;49;00m: [33m"[39;49;00m[33m0[39;49;00m[33m"[39;49;00m})[90m[39;49;00m | |
[90m[39;49;00m | |
[90m# Update the document in the Chroma instance[39;49;00m[90m[39;49;00m | |
docsearch.update_document(document_id=document_id, document=updated_doc)[90m[39;49;00m | |
[90m[39;49;00m | |
[90m# Perform a similarity search with the updated content[39;49;00m[90m[39;49;00m | |
output = docsearch.similarity_search(updated_content, k=[94m1[39;49;00m)[90m[39;49;00m | |
[90m[39;49;00m | |
[90m# Assert that the new embedding is correct[39;49;00m[90m[39;49;00m | |
new_embedding = docsearch._collection.peek()[[33m"[39;49;00m[33membeddings[39;49;00m[33m"[39;49;00m][ [90m# type: ignore[39;49;00m[90m[39;49;00m | |
docsearch._collection.peek()[[33m"[39;49;00m[33mids[39;49;00m[33m"[39;49;00m].index(document_id)[90m[39;49;00m | |
][90m[39;49;00m | |
[90m[39;49;00m | |
docsearch.delete_collection()[90m[39;49;00m | |
[90m[39;49;00m | |
[90m# Assert that the updated document is returned by the search[39;49;00m[90m[39;49;00m | |
[94massert[39;49;00m output == [Document(page_content=updated_content, metadata={[33m"[39;49;00m[33mpage[39;49;00m[33m"[39;49;00m: [33m"[39;49;00m[33m0[39;49;00m[33m"[39;49;00m})][90m[39;49;00m | |
[90m[39;49;00m | |
> [94massert[39;49;00m new_embedding == embedding.embed_documents([updated_content])[[94m0[39;49;00m][90m[39;49;00m | |
[1m[31mE ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()[0m | |
[1m[31mtests/integration_tests/test_vectorstores.py[0m:257: ValueError | |
[33m=============================== warnings summary ===============================[0m | |
tests/integration_tests/test_vectorstores.py::test_chroma_async | |
/nix/store/n41jwprvlfb06lj9sl2g03c7sc8cjvjc-python3.11-pytest-8.3.2/lib/python3.11/site-packages/_pytest/python.py:148: PytestUnhandledCoroutineWarning: async def functions are not natively supported and have been skipped. | |
You need to install a suitable plugin for your async framework, for example: | |
- anyio | |
- pytest-asyncio | |
- pytest-tornasync | |
- pytest-trio | |
- pytest-twisted | |
warnings.warn(PytestUnhandledCoroutineWarning(msg.format(nodeid))) | |
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html | |
============================= slowest 5 durations ============================== | |
0.09s call tests/integration_tests/test_vectorstores.py::test_chroma | |
0.03s call tests/integration_tests/test_vectorstores.py::test_chroma_with_persistence | |
0.01s call tests/integration_tests/test_vectorstores.py::test_chroma_update_document | |
(2 durations < 0.005s hidden. Use -vv to show these durations.) | |
[36m[1m=========================== short test summary info ============================[0m | |
[31mFAILED[0m tests/integration_tests/test_vectorstores.py::[1mtest_chroma_update_document[0m - ValueError: The truth value of an array with more than one element is ambig... | |
[31m============== [31m[1m1 failed[0m, [32m25 passed[0m, [33m4 skipped[0m, [33m1 warning[0m[31m in 0.98s[0m[31m ==============[0m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment