test_create_collection_if_not_exist_default() — langchain Function Reference
Architecture documentation for the test_create_collection_if_not_exist_default() function in test_vectorstores.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 330d819f_a2eb_b3ec_6d7e_87280c3d4e25["test_create_collection_if_not_exist_default()"] 289e5a4f_8e2e_ddb6_af2e_804f91dabdb8["test_vectorstores.py"] 330d819f_a2eb_b3ec_6d7e_87280c3d4e25 -->|defined in| 289e5a4f_8e2e_ddb6_af2e_804f91dabdb8 style 330d819f_a2eb_b3ec_6d7e_87280c3d4e25 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/chroma/tests/integration_tests/test_vectorstores.py lines 703–712
def test_create_collection_if_not_exist_default() -> None:
"""Tests existing behaviour without the new create_collection_if_not_exists flag."""
texts = ["foo", "bar", "baz"]
docsearch = Chroma.from_texts(
collection_name="test_collection",
texts=texts,
embedding=FakeEmbeddings(),
)
assert docsearch._client.get_collection("test_collection") is not None
docsearch.delete_collection()
Domain
Subdomains
Source
Frequently Asked Questions
What does test_create_collection_if_not_exist_default() do?
test_create_collection_if_not_exist_default() is a function in the langchain codebase, defined in libs/partners/chroma/tests/integration_tests/test_vectorstores.py.
Where is test_create_collection_if_not_exist_default() defined?
test_create_collection_if_not_exist_default() is defined in libs/partners/chroma/tests/integration_tests/test_vectorstores.py at line 703.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free