Home / File/ stuff_prompt.py — langchain Source File

stuff_prompt.py — langchain Source File

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

File python 1 imports

Entity Profile

Dependency Diagram

graph LR
  6d678607_bed1_a72e_3972_6bf29edd5bd0["stuff_prompt.py"]
  435e49bf_bb2e_2016_ead7_0afb9d57ad71["langchain_core.prompts"]
  6d678607_bed1_a72e_3972_6bf29edd5bd0 --> 435e49bf_bb2e_2016_ead7_0afb9d57ad71
  style 6d678607_bed1_a72e_3972_6bf29edd5bd0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

from langchain_core.prompts import PromptTemplate

prompt_template = """Write a concise summary of the following:


"{text}"


CONCISE SUMMARY:"""
PROMPT = PromptTemplate(template=prompt_template, input_variables=["text"])

Dependencies

  • langchain_core.prompts

Frequently Asked Questions

What does stuff_prompt.py do?
stuff_prompt.py is a source file in the langchain codebase, written in python.
What does stuff_prompt.py depend on?
stuff_prompt.py imports 1 module(s): langchain_core.prompts.
Where is stuff_prompt.py in the architecture?
stuff_prompt.py is located at libs/langchain/langchain_classic/chains/summarize/stuff_prompt.py (directory: libs/langchain/langchain_classic/chains/summarize).

Analyze Your Own Codebase

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

Try Supermodel Free