bhulston commited on
Commit
2aa6b23
1 Parent(s): 2587c2e

Update results.py

Browse files
Files changed (1) hide show
  1. 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, based only on rag responses that are provided to you as context.
9
- Relay information in a succinct way, relaying relevant information to classes or simply saying that you weren't able to find similar classes.
10
- Based on the context provided, respond to the user's query in a natural way as if you are a person.
11
- Only recommend ~2 or 3 classes when they are provided in RAG responses, otherwise, respond appropriately that you don't have good recommendations.
 
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(