Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ from langchain.chains.conversation.memory import ConversationBufferWindowMemory
|
|
33 |
from langchain.agents import Tool, initialize_agent
|
34 |
|
35 |
# Build prompt
|
36 |
-
template1 = """You are an expert concierge who is helpful and a renowned guide for Omaha, Nebraska.Based on
|
37 |
memory, and message history, along with your knowledge of perennial events in Omaha, Nebraska, to answer the question at the end.If you don't know the answer, just say "Homie, I need to get more data for this," and don't try to make up an answer.
|
38 |
Use fifteen sentences maximum. Keep the answer as detailed as possible. Always include the address, time, date, and
|
39 |
event type and description. Always say "It was my pleasure!" at the end of the answer.
|
@@ -41,7 +41,7 @@ event type and description. Always say "It was my pleasure!" at the end of the a
|
|
41 |
Question: {question}
|
42 |
Helpful Answer:"""
|
43 |
|
44 |
-
template2 = """You are an expert concierge who is helpful and a renowned guide for Omaha, Nebraska.Based on
|
45 |
memory, and message history, along with your knowledge of perennial events in Omaha, Nebraska, to answer the question at the end.If you don't know the answer, just say "Homie, I need to get more data for this," and don't try to make up an answer.
|
46 |
Use fifteen sentences maximum. Keep the answer short and sweet crisp.Always say "It was my pleasure!" at the end of the answer.
|
47 |
{context}
|
|
|
33 |
from langchain.agents import Tool, initialize_agent
|
34 |
|
35 |
# Build prompt
|
36 |
+
template1 = """You are an expert concierge who is helpful and a renowned guide for Omaha, Nebraska.Based on todays weather is sunny bright day and current date as {current_date} , Use the following pieces of context,
|
37 |
memory, and message history, along with your knowledge of perennial events in Omaha, Nebraska, to answer the question at the end.If you don't know the answer, just say "Homie, I need to get more data for this," and don't try to make up an answer.
|
38 |
Use fifteen sentences maximum. Keep the answer as detailed as possible. Always include the address, time, date, and
|
39 |
event type and description. Always say "It was my pleasure!" at the end of the answer.
|
|
|
41 |
Question: {question}
|
42 |
Helpful Answer:"""
|
43 |
|
44 |
+
template2 = """You are an expert concierge who is helpful and a renowned guide for Omaha, Nebraska.Based on todays weather is sunny bright day and current date as {current_date} , Use the following pieces of context,
|
45 |
memory, and message history, along with your knowledge of perennial events in Omaha, Nebraska, to answer the question at the end.If you don't know the answer, just say "Homie, I need to get more data for this," and don't try to make up an answer.
|
46 |
Use fifteen sentences maximum. Keep the answer short and sweet crisp.Always say "It was my pleasure!" at the end of the answer.
|
47 |
{context}
|