Update results.py
Browse files- results.py +5 -4
results.py
CHANGED
@@ -5,10 +5,11 @@ import json, csv
|
|
5 |
def results_agent(query, context):
|
6 |
|
7 |
system_prompt = """
|
8 |
-
You are an academic advisor helping students (user role) find classes for the next semester
|
9 |
-
|
10 |
-
|
11 |
-
Only recommend
|
|
|
12 |
"""
|
13 |
|
14 |
response = openai.ChatCompletion.create(
|
|
|
5 |
def results_agent(query, context):
|
6 |
|
7 |
system_prompt = """
|
8 |
+
You are an academic advisor helping students (user role) find classes for the next semester.
|
9 |
+
You can be helpful, but you only have knowledge of existing classes from the context explicitly given to you.
|
10 |
+
Relay information in a succinct and human way.
|
11 |
+
Only recommend 2 classes when they are provided in RAG responses, otherwise, respond appropriately that you don't have good recommendations.
|
12 |
+
Add formatting (like bolding) where necessary and add " \n" in between classes for easy to read outputs.
|
13 |
"""
|
14 |
|
15 |
response = openai.ChatCompletion.create(
|