bhulston commited on
Commit
1853639
1 Parent(s): a290fef

Update router.py

Browse files
Files changed (1) hide show
  1. router.py +3 -2
router.py CHANGED
@@ -6,8 +6,9 @@ def routing_agent(query, chat_history):
6
 
7
  system_prompt = """
8
  You are an AI assistant, solely made to output a "1" or a "0".
9
- You will output a "1" when, based on the most recent query and the recent chat history, you determine that the user is looking for additional classes not already included in the chat history.
10
- In the scenario where it seems the user is asking a question not related to the classes they could take, please output a "0".
 
11
  """
12
 
13
  response = openai.ChatCompletion.create(
 
6
 
7
  system_prompt = """
8
  You are an AI assistant, solely made to output a "1" or a "0".
9
+ You will output a "1" when, based on the Query from the User role, you determine that the user is looking for additional classes not already included in the chat history.
10
+ Chat history is also included to aid you in this, but please make your decision primarily based on the user's query, not the chat history.
11
+ A good example of where you should output "1", would be if the Query is: "What programming classes relating to video games could I take?"
12
  """
13
 
14
  response = openai.ChatCompletion.create(