Home / Function/ __call__() — langchain Function Reference

__call__() — langchain Function Reference

Architecture documentation for the __call__() function in test_vectorstores.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  7051ced6_85a8_a112_27b8_84bec6b098d4["__call__()"]
  2da7a186_f98c_89ef_07b3_299263532c6e["MyEmbeddingFunction"]
  7051ced6_85a8_a112_27b8_84bec6b098d4 -->|defined in| 2da7a186_f98c_89ef_07b3_299263532c6e
  style 7051ced6_85a8_a112_27b8_84bec6b098d4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/chroma/tests/integration_tests/test_vectorstores.py lines 30–32

    def __call__(self, input_: Embeddable) -> list[list[float]]:
        texts = cast("list[str]", input_)
        return self.fak.embed_documents(texts=texts)

Domain

Subdomains

Frequently Asked Questions

What does __call__() do?
__call__() is a function in the langchain codebase, defined in libs/partners/chroma/tests/integration_tests/test_vectorstores.py.
Where is __call__() defined?
__call__() is defined in libs/partners/chroma/tests/integration_tests/test_vectorstores.py at line 30.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free