Pijush2023 commited on
Commit
9189ba5
·
verified ·
1 Parent(s): d36bf50

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -34,8 +34,7 @@ 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.Answer the question based on
38
- history and climate condition,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.
39
  Use fifteen sentences maximum. Keep the answer as detailed as possible. Always include the address, time, date, and
40
  event type and description. Always say "It was my pleasure!" at the end of the answer.
41
  {context}
@@ -44,8 +43,7 @@ Helpful Answer:"""
44
 
45
  template2 = """You are an expert guide of Omaha, Nebraska's perennial events.
46
  With the context, memory, and message history provided, answer the question in as crisp as possible. Always include the time, date, and
47
- event type and description only apart from that don't give any other details. Answer the question based on
48
- history and climate condition.Always say "It was my pleasure!" at the end of the answer.
49
  If you don't know the answer, simply say, "Homie, I need to get more data for this," without making up an answer.
50
 
51
  {context}
 
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.
40
  {context}
 
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.
48
 
49
  {context}