04. Prompt yang dipersonalisasi (diunggah ke Hub)

Masukkan ID LangChain

PROMPT_OWNER="test-prompts"
from langchain import hub
from langchain.prompts import PromptTemplate

prompt_title = "summary-stuff-documents"

# Define the prompt template for summarizing documents
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 sentence.
3. Use various emojis to make the summary more interesting.
4. DO NOT include any unnecessary information.

CONTEXT:
{context}

SUMMARY:
"""

# Create a PromptTemplate object
prompt = PromptTemplate.from_template(prompt_template)
prompt

Map Prompt

Reduce Prompt

Metadata Tagger

Chain of Density

Chain of Density (Indonesian) - 2

Permintaan dokumentasi RAG

Last updated