Home / Function/ test_complex_question() — langchain Function Reference

test_complex_question() — langchain Function Reference

Architecture documentation for the test_complex_question() function in test_llm_math.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  08717ea8_4f5c_9c25_8665_8e098b8cf35a["test_complex_question()"]
  4e98a726_3502_d5b4_fa54_cc66e117b849["test_llm_math.py"]
  08717ea8_4f5c_9c25_8665_8e098b8cf35a -->|defined in| 4e98a726_3502_d5b4_fa54_cc66e117b849
  style 08717ea8_4f5c_9c25_8665_8e098b8cf35a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/tests/unit_tests/chains/test_llm_math.py lines 32–36

def test_complex_question(fake_llm_math_chain: LLMMathChain) -> None:
    """Test complex question that should need python."""
    question = "What is the square root of 2?"
    output = fake_llm_math_chain.run(question)
    assert output == f"Answer: {2**0.5}"

Domain

Subdomains

Frequently Asked Questions

What does test_complex_question() do?
test_complex_question() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/chains/test_llm_math.py.
Where is test_complex_question() defined?
test_complex_question() is defined in libs/langchain/tests/unit_tests/chains/test_llm_math.py at line 32.

Analyze Your Own Codebase

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

Try Supermodel Free