MyEmbeddingFunction Class — langchain Architecture
Architecture documentation for the MyEmbeddingFunction class in test_vectorstores.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 2da7a186_f98c_89ef_07b3_299263532c6e["MyEmbeddingFunction"] 289e5a4f_8e2e_ddb6_af2e_804f91dabdb8["test_vectorstores.py"] 2da7a186_f98c_89ef_07b3_299263532c6e -->|defined in| 289e5a4f_8e2e_ddb6_af2e_804f91dabdb8 e5d78ad0_8604_7eb9_c8b9_dc0f70b77182["__init__()"] 2da7a186_f98c_89ef_07b3_299263532c6e -->|method| e5d78ad0_8604_7eb9_c8b9_dc0f70b77182 7051ced6_85a8_a112_27b8_84bec6b098d4["__call__()"] 2da7a186_f98c_89ef_07b3_299263532c6e -->|method| 7051ced6_85a8_a112_27b8_84bec6b098d4
Relationship Graph
Source Code
libs/partners/chroma/tests/integration_tests/test_vectorstores.py lines 26–32
class MyEmbeddingFunction:
def __init__(self, fak: Fak):
self.fak = fak
def __call__(self, input_: Embeddable) -> list[list[float]]:
texts = cast("list[str]", input_)
return self.fak.embed_documents(texts=texts)
Source
Frequently Asked Questions
What is the MyEmbeddingFunction class?
MyEmbeddingFunction is a class in the langchain codebase, defined in libs/partners/chroma/tests/integration_tests/test_vectorstores.py.
Where is MyEmbeddingFunction defined?
MyEmbeddingFunction is defined in libs/partners/chroma/tests/integration_tests/test_vectorstores.py at line 26.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free