04. Personalized prompts (upload to Hub)
Enter your LangChain ID.
Copy
# Owner designation
PROMPT_OWNER = "teddynote"Summary: Stuff Documents
Copy
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)
promptCopy
Map Prompt
Copy
Copy
Reduce Prompt
Copy
Copy
Copy
Copy
Metadata Tagger
Copy
Copy
Copy
Chain of Density Summation
Copy
Copy
Chain of Density (Korean) - 2
Copy
Copy
RAG Document Prompt
Copy
Copy
Copy
Copy
Last updated