Home / Function/ test_hyde_from_llm_with_multiple_n() — langchain Function Reference

test_hyde_from_llm_with_multiple_n() — langchain Function Reference

Architecture documentation for the test_hyde_from_llm_with_multiple_n() function in test_hyde.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  f953368d_eb7b_b876_bb57_92ce45b05422["test_hyde_from_llm_with_multiple_n()"]
  14c6e7c4_9f19_c161_786a_25327950593b["test_hyde.py"]
  f953368d_eb7b_b876_bb57_92ce45b05422 -->|defined in| 14c6e7c4_9f19_c161_786a_25327950593b
  ac059ee6_7663_73f2_90de_f1e094aa871c["embed_query()"]
  f953368d_eb7b_b876_bb57_92ce45b05422 -->|calls| ac059ee6_7663_73f2_90de_f1e094aa871c
  style f953368d_eb7b_b876_bb57_92ce45b05422 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/tests/unit_tests/chains/test_hyde.py lines 79–87

def test_hyde_from_llm_with_multiple_n() -> None:
    """Test loading HyDE from all prompts."""
    for key in PROMPT_MAP:
        embedding = HypotheticalDocumentEmbedder.from_llm(
            FakeLLM(n=8),
            FakeEmbeddings(),
            key,
        )
        embedding.embed_query("foo")

Domain

Subdomains

Frequently Asked Questions

What does test_hyde_from_llm_with_multiple_n() do?
test_hyde_from_llm_with_multiple_n() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/chains/test_hyde.py.
Where is test_hyde_from_llm_with_multiple_n() defined?
test_hyde_from_llm_with_multiple_n() is defined in libs/langchain/tests/unit_tests/chains/test_hyde.py at line 79.
What does test_hyde_from_llm_with_multiple_n() call?
test_hyde_from_llm_with_multiple_n() calls 1 function(s): embed_query.

Analyze Your Own Codebase

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

Try Supermodel Free