Home / File/ map_reduce_prompt.py — langchain Source File

map_reduce_prompt.py — langchain Source File

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

File python 1 imports

Entity Profile

Dependency Diagram

graph LR
  cb38021e_b946_2a64_1531_97f0bfb8e30e["map_reduce_prompt.py"]
  435e49bf_bb2e_2016_ead7_0afb9d57ad71["langchain_core.prompts"]
  cb38021e_b946_2a64_1531_97f0bfb8e30e --> 435e49bf_bb2e_2016_ead7_0afb9d57ad71
  style cb38021e_b946_2a64_1531_97f0bfb8e30e 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 map_reduce_prompt.py do?
map_reduce_prompt.py is a source file in the langchain codebase, written in python.
What does map_reduce_prompt.py depend on?
map_reduce_prompt.py imports 1 module(s): langchain_core.prompts.
Where is map_reduce_prompt.py in the architecture?
map_reduce_prompt.py is located at libs/langchain/langchain_classic/chains/summarize/map_reduce_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