Update router.py
Browse files
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
|
10 |
-
|
|
|
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(
|