Spaces:
Running
on
L4
Running
on
L4
Commit
·
17aac59
1
Parent(s):
ebd213f
update system prompts
Browse files- app.py +1 -1
- utils/system_prompts.py +9 -3
app.py
CHANGED
@@ -116,7 +116,7 @@ with st.sidebar:
|
|
116 |
st.session_state.synthesis_model = st.selectbox(
|
117 |
"Choose the LLM model",
|
118 |
["LLaMA-3.2-11B", "gpt-4o-mini"],
|
119 |
-
index=
|
120 |
key='a2model'
|
121 |
)
|
122 |
|
|
|
116 |
st.session_state.synthesis_model = st.selectbox(
|
117 |
"Choose the LLM model",
|
118 |
["LLaMA-3.2-11B", "gpt-4o-mini"],
|
119 |
+
index=1,
|
120 |
key='a2model'
|
121 |
)
|
122 |
|
utils/system_prompts.py
CHANGED
@@ -1,7 +1,13 @@
|
|
1 |
def get_expert_system_prompt():
|
2 |
-
system_prompt = f"""
|
3 |
-
You are a highly specialized assistant for the subject Finite Element Method (FEM). Provide a direct and focused answer to the following question based on your specialized training.
|
4 |
-
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
return system_prompt
|
6 |
|
7 |
|
|
|
1 |
def get_expert_system_prompt():
|
2 |
+
# system_prompt = f"""
|
3 |
+
# You are a highly specialized assistant for the subject Finite Element Method (FEM). Provide a direct and focused answer to the following question based on your specialized training.
|
4 |
+
# """
|
5 |
+
system_prompt = (
|
6 |
+
"You are an AI professor for a Finite Element Method (FEM) course. "
|
7 |
+
"You are asked a question by a student and return an appropriate answer based on course material. "
|
8 |
+
"Your response focuses on FEM fundamentals, theories, and applications as presented in the course. "
|
9 |
+
"Use standard latex notation when replying with mathematical notation."
|
10 |
+
)
|
11 |
return system_prompt
|
12 |
|
13 |
|