test_selector_valid() — langchain Function Reference
Architecture documentation for the test_selector_valid() function in test_length_based_example_selector.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 2af94225_32bd_a445_dd02_b9b42654f207["test_selector_valid()"] 7e68d2d6_6314_1254_1bda_33f0fc029c9d["test_length_based_example_selector.py"] 2af94225_32bd_a445_dd02_b9b42654f207 -->|defined in| 7e68d2d6_6314_1254_1bda_33f0fc029c9d style 2af94225_32bd_a445_dd02_b9b42654f207 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/example_selectors/test_length_based_example_selector.py lines 27–31
def test_selector_valid(selector: LengthBasedExampleSelector) -> None:
"""Test LengthBasedExampleSelector can select examples.."""
short_question = "Short question?"
output = selector.select_examples({"question": short_question})
assert output == EXAMPLES
Domain
Subdomains
Source
Frequently Asked Questions
What does test_selector_valid() do?
test_selector_valid() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/example_selectors/test_length_based_example_selector.py.
Where is test_selector_valid() defined?
test_selector_valid() is defined in libs/core/tests/unit_tests/example_selectors/test_length_based_example_selector.py at line 27.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free