You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f"\n\nYour neighbor has specifically selected an area within Dorchester to examine. "
907
-
f"The overall neighborhood 311 data on {selected_date} are: {event_date_data}. "
908
-
f"The specific area 311 data are: {event_id_data}. Compare the local area data, the neighborhood-wide data, "
909
-
f"and the overall trends in the original 311 data."
910
-
)
905
+
prompt+=f"\n\nYour neighbor has specifically selected an area within Dorchester to examine. "f"The overall neighborhood 311 data on {selected_date} are: {event_date_data}. "f"The specific area 311 data are: {event_id_data}. Compare the local area data, the neighborhood-wide data, "f"and the overall trends in the original 311 data."
prompt=f"response-type = community. Your neighbor wants to hear community voices for {selected_date}. Based on the available data, provide insight in a direct and to-the-point manner to your neighbor's question: {stored_input}"
985
981
else:
986
982
prompt=f"response-type = community. Share community voices and concerns from {selected_date}. Write from neighbors' perspectives using first-person quotes. Avoid using category headers like 'Living Conditions:', 'Trash:', etc. Focus on personal testimonials and community sentiment. Provide detailed multi-paragraph responses with several specific examples from community members."
f"\n\nNeighbors in a specific area reported these issues: {evt_csv}\n\n"
1000
-
f"Across the neighborhood on {selected_date}, reports show: {date_csv}"
1001
-
)
1002
-
994
+
area_context=f"\n\nNeighbors in a specific area reported these issues: {evt_csv}\n\n"f"Across the neighborhood on {selected_date}, reports show: {date_csv}"
995
+
1003
996
iflen(ids) >LIMIT:
1004
997
area_context+=f"\n\nNote: This area had {len(ids)} reported concerns, but only {LIMIT} are being considered due to system limits."
area_context+=f"\n\nNote: This area had {len(ids)} events, but only {LIMIT} are analyzed due to system limits."
1162
1147
1163
-
stats_prompt= (
1164
-
f"response-type = analytic. A by-the-numbers overview for Dorchester on {selected_date}:{area_context} "
1165
-
"Your neighbor has selected this specific area to focus on. You don't have to compare the statistics but just analyze the data and give the statistics along with insights. Focus on counts of 311, shots fired, etc."
1166
-
)
1148
+
stats_prompt=f"response-type = analytic. A by-the-numbers overview for Dorchester on {selected_date}:{area_context} ""Your neighbor has selected this specific area to focus on. You don't have to compare the statistics but just analyze the data and give the statistics along with insights. Focus on counts of 311, shots fired, etc."
[html.Strong("A by-the-numbers overview of your neighborhood:"), dcc.Markdown(stats_reply, dangerously_allow_html=True)],
1170
-
className="bot-message",
1171
-
**{
1172
-
"data-response-type": "auto-generated",
1173
-
"data-date": selected_date
1174
-
}
1175
-
)
1150
+
stats_message=html.Div([html.Strong("A by-the-numbers overview of your neighborhood:"), dcc.Markdown(stats_reply, dangerously_allow_html=True)], className="bot-message", **{"data-response-type": "auto-generated", "data-date": selected_date})
1176
1151
1177
-
community_prompt= (
1178
-
f"response-type = community. Share voices from {selected_date} community meetings:{area_context} "
1179
-
"Write from the perspective of residents using first-person quotes. Avoid using category "
1180
-
"headers like 'Living Conditions:', 'Trash:', etc. Focus on personal testimonials and community sentiment. "
1181
-
"Provide detailed multi-paragraph responses with several specific examples from community members."
1182
-
)
1152
+
community_prompt=f"response-type = community. Share voices from {selected_date} community meetings:{area_context} ""Write from the perspective of residents using first-person quotes. Avoid using category ""headers like 'Living Conditions:', 'Trash:', etc. Focus on personal testimonials and community sentiment. ""Provide detailed multi-paragraph responses with several specific examples from community members."
0 commit comments