1hangzhao commited on
Commit
3008b47
·
verified ·
1 Parent(s): bd05a9f

Update ontochat/functions.py

Browse files
Files changed (1) hide show
  1. ontochat/functions.py +1 -1
ontochat/functions.py CHANGED
@@ -110,7 +110,7 @@ def generate_elicitation_questions(history):
110
  messages.append({
111
  "role": "user",
112
  "content": "Identify which section ('1. Persona', '2. Goal', '3. Scenario', '4. Create User Story') your most current answer or elicitation question belongs to."
113
- "If your answer or elicitation question relates to [name], [age], [occupation], [skills], or [interests], it belongs to section 1. If it's about [user goal description], [actions], or [keywords], it belongs to section 2. If it addresses [current methods], [challenges], [new methods], or [outcomes], it belongs to section 3. If sections 1 through 3 are already completed, it belongs to section 4. Once it belongs to section 4, it will always remain in section 4, regardless of what happens afterward."
114
  "Then return all the keys associated with that section. List each key name on a separate line, starting with the first key name and providing only the key names."
115
  })
116
  bot_message = chat_completion(openai_api_key, instructions + messages)
 
110
  messages.append({
111
  "role": "user",
112
  "content": "Identify which section ('1. Persona', '2. Goal', '3. Scenario', '4. Create User Story') your most current answer or elicitation question belongs to."
113
+ "If your answer or elicitation question relates to [name], [age], [occupation], [skills], or [interests], it belongs to section 1. If it's about [user goal description], [actions], or [keywords], it belongs to section 2. If it addresses [current methods], [challenges], [new methods], or [outcomes], it belongs to section 3. If sections 1 through 3 are already completed or when the final user story is generated, it belongs to section 4. Once it belongs to section 4, it will always remain in section 4, regardless of what happens afterward."
114
  "Then return all the keys associated with that section. List each key name on a separate line, starting with the first key name and providing only the key names."
115
  })
116
  bot_message = chat_completion(openai_api_key, instructions + messages)