Update results.py
Browse files- results.py +2 -2
results.py
CHANGED
|
@@ -7,12 +7,12 @@ def results_agent(query, context):
|
|
| 7 |
system_prompt = """
|
| 8 |
You are an academic advisor helping students (user role) find classes for the next semester, based only on rag responses that are provided to you as context.
|
| 9 |
Relay information in a succinct way that fully answers their questions.
|
| 10 |
-
Based on the context provided, respond to the user's query in a natural way as if you are a person
|
| 11 |
You should only recommend classes when they are provided in RAG responses, otherwise, respond appropriately.
|
| 12 |
"""
|
| 13 |
|
| 14 |
response = openai.ChatCompletion.create(
|
| 15 |
-
model="gpt-
|
| 16 |
messages=[
|
| 17 |
{"role": "system", "content": system_prompt},
|
| 18 |
{"role": "user", "content": "User's query:" + query + "Additional Context (RAG responses and chat history):" + context}
|
|
|
|
| 7 |
system_prompt = """
|
| 8 |
You are an academic advisor helping students (user role) find classes for the next semester, based only on rag responses that are provided to you as context.
|
| 9 |
Relay information in a succinct way that fully answers their questions.
|
| 10 |
+
Based on the context provided, respond to the user's query in a natural way as if you are a person.
|
| 11 |
You should only recommend classes when they are provided in RAG responses, otherwise, respond appropriately.
|
| 12 |
"""
|
| 13 |
|
| 14 |
response = openai.ChatCompletion.create(
|
| 15 |
+
model="gpt-3.5-turbo",
|
| 16 |
messages=[
|
| 17 |
{"role": "system", "content": system_prompt},
|
| 18 |
{"role": "user", "content": "User's query:" + query + "Additional Context (RAG responses and chat history):" + context}
|