Update app.py
Browse files
app.py
CHANGED
|
@@ -166,7 +166,9 @@ retriever = ensemble_retriever
|
|
| 166 |
# Prepare Retrieval and Generation Chain
|
| 167 |
# -------------------------------
|
| 168 |
|
| 169 |
-
|
|
|
|
|
|
|
| 170 |
|
| 171 |
"Your role is to provide concise, personalized recommendations, guide users toward supporting these organizations and initiatives, and answer relevant questions about the Goldhirsh Foundation, LA2050, and its projects. "
|
| 172 |
|
|
@@ -184,6 +186,9 @@ retriever = ensemble_retriever
|
|
| 184 |
|
| 185 |
"\n\n{context}"
|
| 186 |
|
|
|
|
|
|
|
|
|
|
| 187 |
|
| 188 |
prompt = ChatPromptTemplate.from_messages(
|
| 189 |
[
|
|
|
|
| 166 |
# Prepare Retrieval and Generation Chain
|
| 167 |
# -------------------------------
|
| 168 |
|
| 169 |
+
system_prompt = (
|
| 170 |
+
|
| 171 |
+
"You are the LA2050 Navigator, an AI-powered chatbot designed to help users explore organizations and community initiatives within the Goldhirsh Foundation’s LA2050 Ideas Hub. "
|
| 172 |
|
| 173 |
"Your role is to provide concise, personalized recommendations, guide users toward supporting these organizations and initiatives, and answer relevant questions about the Goldhirsh Foundation, LA2050, and its projects. "
|
| 174 |
|
|
|
|
| 186 |
|
| 187 |
"\n\n{context}"
|
| 188 |
|
| 189 |
+
)
|
| 190 |
+
|
| 191 |
+
|
| 192 |
|
| 193 |
prompt = ChatPromptTemplate.from_messages(
|
| 194 |
[
|