test_chroma_legacy_batching() — langchain Function Reference
Architecture documentation for the test_chroma_legacy_batching() function in test_vectorstores.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 007cf4f7_6c95_ed83_9bea_d3d07be6739f["test_chroma_legacy_batching()"] 289e5a4f_8e2e_ddb6_af2e_804f91dabdb8["test_vectorstores.py"] 007cf4f7_6c95_ed83_9bea_d3d07be6739f -->|defined in| 289e5a4f_8e2e_ddb6_af2e_804f91dabdb8 style 007cf4f7_6c95_ed83_9bea_d3d07be6739f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/chroma/tests/integration_tests/test_vectorstores.py lines 684–700
def test_chroma_legacy_batching() -> None:
client = chromadb.HttpClient()
embedding_function = Fak(size=255)
col = client.get_or_create_collection(
"my_collection",
embedding_function=MyEmbeddingFunction, # type: ignore[arg-type]
)
docs = ["This is a test document"] * 100
db = Chroma.from_texts(
client=client,
collection_name=col.name,
texts=docs,
embedding=embedding_function,
ids=[str(uuid.uuid4()) for _ in range(len(docs))],
)
db.delete_collection()
Domain
Subdomains
Source
Frequently Asked Questions
What does test_chroma_legacy_batching() do?
test_chroma_legacy_batching() is a function in the langchain codebase, defined in libs/partners/chroma/tests/integration_tests/test_vectorstores.py.
Where is test_chroma_legacy_batching() defined?
test_chroma_legacy_batching() is defined in libs/partners/chroma/tests/integration_tests/test_vectorstores.py at line 684.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free