Home / File/ test_few_shot.py — langchain Source File

test_few_shot.py — langchain Source File

Architecture documentation for test_few_shot.py, a python file in the langchain codebase. 1 imports, 0 dependents.

File python CoreAbstractions Serialization 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  4b233d7d_d293_5ed2_7aaf_c8fdc0955d29["test_few_shot.py"]
  35cbe03c_eb06_ae55_186f_64653579cd10["langchain_classic.prompts.few_shot"]
  4b233d7d_d293_5ed2_7aaf_c8fdc0955d29 --> 35cbe03c_eb06_ae55_186f_64653579cd10
  style 4b233d7d_d293_5ed2_7aaf_c8fdc0955d29 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

from langchain_classic.prompts.few_shot import __all__

EXPECTED_ALL = [
    "FewShotChatMessagePromptTemplate",
    "FewShotPromptTemplate",
    "_FewShotPromptTemplateMixin",
]


def test_all_imports() -> None:
    assert set(__all__) == set(EXPECTED_ALL)

Subdomains

Functions

Dependencies

  • langchain_classic.prompts.few_shot

Frequently Asked Questions

What does test_few_shot.py do?
test_few_shot.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_few_shot.py?
test_few_shot.py defines 1 function(s): test_all_imports.
What does test_few_shot.py depend on?
test_few_shot.py imports 1 module(s): langchain_classic.prompts.few_shot.
Where is test_few_shot.py in the architecture?
test_few_shot.py is located at libs/langchain/tests/unit_tests/prompts/test_few_shot.py (domain: CoreAbstractions, subdomain: Serialization, directory: libs/langchain/tests/unit_tests/prompts).

Analyze Your Own Codebase

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

Try Supermodel Free