test_selector_empty_example() — langchain Function Reference
Architecture documentation for the test_selector_empty_example() function in test_length_based_example_selector.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 94f94c36_4718_4eba_dbf4_6abf4fd4982a["test_selector_empty_example()"] 7e68d2d6_6314_1254_1bda_33f0fc029c9d["test_length_based_example_selector.py"] 94f94c36_4718_4eba_dbf4_6abf4fd4982a -->|defined in| 7e68d2d6_6314_1254_1bda_33f0fc029c9d style 94f94c36_4718_4eba_dbf4_6abf4fd4982a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/example_selectors/test_length_based_example_selector.py lines 63–74
def test_selector_empty_example(
selector: LengthBasedExampleSelector,
) -> None:
"""Test Empty Example result empty."""
empty_list: list[dict] = []
empty_selector = LengthBasedExampleSelector(
examples=empty_list,
example_prompt=selector.example_prompt,
max_length=30,
)
output = empty_selector.select_examples({"question": "empty question"})
assert output == []
Domain
Subdomains
Source
Frequently Asked Questions
What does test_selector_empty_example() do?
test_selector_empty_example() 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_empty_example() defined?
test_selector_empty_example() is defined in libs/core/tests/unit_tests/example_selectors/test_length_based_example_selector.py at line 63.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free