04. Personalized prompts (upload to Hub)

Enter your LangChain ID.

# Owner designation
PROMPT_OWNER = "teddynote"

Summary: Stuff Documents

from langchain import hub
from langchain.prompts import PromptTemplate

prompt_title = "summary-stuff-documents"

# Define a prompt to write a summary (if you write your own prompt)

prompt_template = """Please summarize the sentence according to the following REQUEST.
REQUEST:
1. Summarize the main points in bullet points.
2. Each summarized sentence must start with an emoji that fits the meaning of the each sentence.
3. Use various emojis to make the summary more interesting.
4. DO NOT include any unnecessary information.

CONTEXT:
{context}

SUMMARY:"
"""
prompt = PromptTemplate.from_template(prompt_template)
prompt

Map Prompt

Reduce Prompt

Metadata Tagger

Chain of Density Summation

Chain of Density (Korean) - 2

RAG Document Prompt

Last updated