_load_sequential_chain() — langchain Function Reference
Architecture documentation for the _load_sequential_chain() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD ce6eb2d1_3558_fbd2_b7a1_915b6d227e95["_load_sequential_chain()"] 4bd52d1b_a9be_e6bd_75e2_1b015e6954f4["base.py"] ce6eb2d1_3558_fbd2_b7a1_915b6d227e95 -->|defined in| 4bd52d1b_a9be_e6bd_75e2_1b015e6954f4 7ae7d589_e20c_0c98_1b01_12802ff422f8["_raise_deprecation()"] 7ae7d589_e20c_0c98_1b01_12802ff422f8 -->|calls| ce6eb2d1_3558_fbd2_b7a1_915b6d227e95 1e0bb2d4_7826_f84f_e437_901c40aeb242["from_llm()"] 1e0bb2d4_7826_f84f_e437_901c40aeb242 -->|calls| ce6eb2d1_3558_fbd2_b7a1_915b6d227e95 style ce6eb2d1_3558_fbd2_b7a1_915b6d227e95 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/chains/llm_summarization_checker/base.py lines 29–68
def _load_sequential_chain(
llm: BaseLanguageModel,
create_assertions_prompt: PromptTemplate,
check_assertions_prompt: PromptTemplate,
revised_summary_prompt: PromptTemplate,
are_all_true_prompt: PromptTemplate,
*,
verbose: bool = False,
) -> SequentialChain:
return SequentialChain(
chains=[
LLMChain(
llm=llm,
prompt=create_assertions_prompt,
output_key="assertions",
verbose=verbose,
),
LLMChain(
llm=llm,
prompt=check_assertions_prompt,
output_key="checked_assertions",
verbose=verbose,
),
LLMChain(
llm=llm,
prompt=revised_summary_prompt,
output_key="revised_summary",
verbose=verbose,
),
LLMChain(
llm=llm,
output_key="all_true",
prompt=are_all_true_prompt,
verbose=verbose,
),
],
input_variables=["summary"],
output_variables=["all_true", "revised_summary"],
verbose=verbose,
)
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does _load_sequential_chain() do?
_load_sequential_chain() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/chains/llm_summarization_checker/base.py.
Where is _load_sequential_chain() defined?
_load_sequential_chain() is defined in libs/langchain/langchain_classic/chains/llm_summarization_checker/base.py at line 29.
What calls _load_sequential_chain()?
_load_sequential_chain() is called by 2 function(s): _raise_deprecation, from_llm.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free