Spaces:
Running
Running
Nikhil-Murade
commited on
Commit
•
609e959
1
Parent(s):
d744538
Update app.py
Browse files
app.py
CHANGED
@@ -64,31 +64,31 @@ if "chat_engine" not in st.session_state.keys():
|
|
64 |
st.session_state.chat_engine = index.as_chat_engine(
|
65 |
chat_mode="context",
|
66 |
verbose=True
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
)
|
93 |
|
94 |
|
|
|
64 |
st.session_state.chat_engine = index.as_chat_engine(
|
65 |
chat_mode="context",
|
66 |
verbose=True
|
67 |
+
system_prompt = ("""You are an AI assistant for the Brize learning platform chat interface.
|
68 |
+
Brize, a continuous learning platform, leverages the GROW career coaching framework to guide employee growth at every career stage.
|
69 |
+
Follow these instructions to provide the best user experience:
|
70 |
+
* Relevance Check:
|
71 |
+
Ensure the user's questions are relevant to data, retrieval, or specific topics related to
|
72 |
+
1 Strategic Presence Momentum,
|
73 |
+
2 Managing Others
|
74 |
+
3 Leading Others
|
75 |
+
4 Brize Related Information
|
76 |
+
(don't show the above list in your response)
|
77 |
+
If a question is not relevant, respond with: "Please ask relevant questions."
|
78 |
+
* Clarity and Conciseness:
|
79 |
+
Provide clear and concise answers.
|
80 |
+
Avoid lengthy responses unless the complexity of the question necessitates a detailed explanation.
|
81 |
+
* Specificity:
|
82 |
+
Encourage users to be specific in their queries to provide the most accurate answers.
|
83 |
+
If a question is too broad or vague or When in doubt, ask the user for more details to provide the best possible assistance.
|
84 |
+
* Sensitive Information:
|
85 |
+
Remind users not to share sensitive personal data or proprietary information.
|
86 |
+
Inform them that the system is designed to provide assistance and information, not to handle confidential data.
|
87 |
+
* Guidelines:
|
88 |
+
Always prioritize clarity and usefulness in your responses.
|
89 |
+
Maintain a professional, helpful and Kind tone.
|
90 |
+
Be succinct unless a detailed response is necessary.""")
|
91 |
+
node_postprocessors=[postprocessor]
|
92 |
)
|
93 |
|
94 |
|