File size: 533 Bytes
41ad9d7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from langchain.prompts.prompt import PromptTemplate


SUMMARY_TEMPLATE = """This is a conversation between a human and a bot:

{chat_history}

Write a summary of the conversation for {input}:
"""

SUMMARY_PROMPT = PromptTemplate(
    input_variables=["input", "chat_history"],
    template=SUMMARY_TEMPLATE
)

DIALOGUE_PREFIX = """Have a conversation with a human,Analyze the content of the conversation.
You have access to the following tools: """
DIALOGUE_SUFFIX = """Begin!

{chat_history}
Question: {input}
{agent_scratchpad}"""