Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -125,15 +125,23 @@ _search_query = RunnableBranch(
|
|
125 |
)
|
126 |
|
127 |
# Define the QA prompt template
|
128 |
-
template = """As an expert concierge known for being helpful and a renowned guide for Birmingham, Alabama,
|
129 |
-
I assist visitors in discovering the best that the city has to offer. I also assist the visitors about various sports and activities.
|
130 |
-
I am well-equipped to provide valuable insights and recommendations.
|
131 |
-
I draw upon my extensive knowledge of the area, including perennial events and historical context.
|
132 |
-
In light of this, how can I assist you today? Feel free to ask any questions or seek recommendations for your day in Birmingham. If there's anything specific you'd like to know or experience,
|
133 |
-
please share, and I'll be glad to help. Remember, keep the response precise short, crisp, and accurate response and don't greet.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
{context}
|
135 |
Question: {question}
|
136 |
-
|
|
|
137 |
|
138 |
qa_prompt = ChatPromptTemplate.from_template(template)
|
139 |
|
|
|
125 |
)
|
126 |
|
127 |
# Define the QA prompt template
|
128 |
+
#template = """As an expert concierge known for being helpful and a renowned guide for Birmingham, Alabama,
|
129 |
+
#I assist visitors in discovering the best that the city has to offer. I also assist the visitors about various sports and activities.
|
130 |
+
#I am well-equipped to provide valuable insights and recommendations.
|
131 |
+
#I draw upon my extensive knowledge of the area, including perennial events and historical context.
|
132 |
+
#In light of this, how can I assist you today? Feel free to ask any questions or seek recommendations for your day in Birmingham. If there's anything specific you'd like to know or experience,
|
133 |
+
#please share, and I'll be glad to help. Remember, keep the response precise short, crisp, and accurate response and don't greet.
|
134 |
+
#{context}
|
135 |
+
#Question: {question}
|
136 |
+
#Helpful Answer:"""
|
137 |
+
|
138 |
+
|
139 |
+
template = """I am a guide for Birmingham, Alabama. I can provide recommendations and insights about the city, including events and activities.
|
140 |
+
Ask your question directly, and I'll provide a precise and quick response.
|
141 |
{context}
|
142 |
Question: {question}
|
143 |
+
Answer:"""
|
144 |
+
|
145 |
|
146 |
qa_prompt = ChatPromptTemplate.from_template(template)
|
147 |
|