test_imports.py — langchain Source File
Architecture documentation for test_imports.py, a python file in the langchain codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 77923fc8_4305_e1b9_00d1_8a6106cc6919["test_imports.py"] 119305ac_1914_632e_73da_7975750314ee["langchain_classic.evaluation"] 77923fc8_4305_e1b9_00d1_8a6106cc6919 --> 119305ac_1914_632e_73da_7975750314ee style 77923fc8_4305_e1b9_00d1_8a6106cc6919 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
from langchain_classic.evaluation import __all__
EXPECTED_ALL = [
"EvaluatorType",
"ExactMatchStringEvaluator",
"RegexMatchStringEvaluator",
"PairwiseStringEvalChain",
"LabeledPairwiseStringEvalChain",
"QAEvalChain",
"CotQAEvalChain",
"ContextQAEvalChain",
"StringEvaluator",
"PairwiseStringEvaluator",
"TrajectoryEvalChain",
"CriteriaEvalChain",
"Criteria",
"EmbeddingDistance",
"EmbeddingDistanceEvalChain",
"PairwiseEmbeddingDistanceEvalChain",
"StringDistance",
"StringDistanceEvalChain",
"PairwiseStringDistanceEvalChain",
"LabeledCriteriaEvalChain",
"load_evaluators",
"load_evaluator",
"load_dataset",
"AgentTrajectoryEvaluator",
"ScoreStringEvalChain",
"LabeledScoreStringEvalChain",
"JsonValidityEvaluator",
"JsonEqualityEvaluator",
"JsonEditDistanceEvaluator",
"JsonSchemaEvaluator",
]
def test_all_imports() -> None:
assert set(__all__) == set(EXPECTED_ALL)
Domain
Subdomains
Functions
Dependencies
- langchain_classic.evaluation
Source
Frequently Asked Questions
What does test_imports.py do?
test_imports.py is a source file in the langchain codebase, written in python. It belongs to the CoreAbstractions domain, Serialization subdomain.
What functions are defined in test_imports.py?
test_imports.py defines 1 function(s): test_all_imports.
What does test_imports.py depend on?
test_imports.py imports 1 module(s): langchain_classic.evaluation.
Where is test_imports.py in the architecture?
test_imports.py is located at libs/langchain/tests/unit_tests/evaluation/test_imports.py (domain: CoreAbstractions, subdomain: Serialization, directory: libs/langchain/tests/unit_tests/evaluation).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free