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. 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,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 guide of Omaha, Nebraska's perennial events.
|
45 |
With the context, memory, and message history provided, answer the question in as crisp as possible. Always include the time, date, and
|
46 |
event type and description only apart from that don't give any other details.Always say "It was my pleasure!" at the end of the answer.
|
47 |
If you don't know the answer, simply say, "Homie, I need to get more data for this," without making up an answer.
|
|
|
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 the current weather condition , 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 guide of Omaha, Nebraska's perennial events.Based on the current weather condition.
|
45 |
With the context, memory, and message history provided, answer the question in as crisp as possible. Always include the time, date, and
|
46 |
event type and description only apart from that don't give any other details.Always say "It was my pleasure!" at the end of the answer.
|
47 |
If you don't know the answer, simply say, "Homie, I need to get more data for this," without making up an answer.
|