Zekun Wu commited on
Commit
31f982d
1 Parent(s): be02b8f
Files changed (1) hide show
  1. pages/5_Conversation_Evaluation.py +3 -2
pages/5_Conversation_Evaluation.py CHANGED
@@ -74,11 +74,12 @@ else:
74
  if input_type == 'Use predefined example':
75
  example_type = st.radio("Select an example type:", ('good', 'bad'))
76
  conversation = examples[example_type]
77
- context = "Example context"
78
  else:
79
  conversation_input = st.text_area('Enter your conversation (JSON format):',
80
  '[{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "Who won the world series in 2020?"}, {"role": "assistant", "content": "The Los Angeles Dodgers won the World Series in 2020."}]')
81
- context_input = st.text_input('Enter your context:', 'general user')
 
82
 
83
  try:
84
  conversation = json.loads(conversation_input)
 
74
  if input_type == 'Use predefined example':
75
  example_type = st.radio("Select an example type:", ('good', 'bad'))
76
  conversation = examples[example_type]
77
+ context = "User role: general user\nUser background: interested in atmospheric phenomena\nSystem role: AI assistant providing educational information\nScenario: The user is asking about the scientific explanation of rainbows."
78
  else:
79
  conversation_input = st.text_area('Enter your conversation (JSON format):',
80
  '[{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "Who won the world series in 2020?"}, {"role": "assistant", "content": "The Los Angeles Dodgers won the World Series in 2020."}]')
81
+ context_input = st.text_area('Enter your context:',
82
+ 'User role: sports fan\nUser background: keen interest in baseball\nSystem role: AI assistant providing sports information\nScenario: The user is asking about historical sports events.')
83
 
84
  try:
85
  conversation = json.loads(conversation_input)