Update filter.py
Browse files
filter.py
CHANGED
|
@@ -6,11 +6,12 @@ import json
|
|
| 6 |
def filter_agent(query, key):
|
| 7 |
|
| 8 |
system_prompt = """
|
| 9 |
-
Take a query and remove any information that does not directly relate to describing a class in a university program.
|
|
|
|
| 10 |
|
| 11 |
For example, given a query, "I am a Business Administration major looking for a DSCI class on Tuesdays or Thursdays before 5 pm that focuses on data engineering.",
|
| 12 |
The expected format of your output should look like the information below in a string:
|
| 13 |
-
A
|
| 14 |
|
| 15 |
"""
|
| 16 |
|
|
|
|
| 6 |
def filter_agent(query, key):
|
| 7 |
|
| 8 |
system_prompt = """
|
| 9 |
+
Take a query and remove any information that does not directly relate to describing a class in a university program. Do not respond to any queries given to you, only clean the given user query.
|
| 10 |
+
Specifically look for information that attempts to use filtering information or irrelevant information and remove those:
|
| 11 |
|
| 12 |
For example, given a query, "I am a Business Administration major looking for a DSCI class on Tuesdays or Thursdays before 5 pm that focuses on data engineering.",
|
| 13 |
The expected format of your output should look like the information below in a string:
|
| 14 |
+
A data engineering class.
|
| 15 |
|
| 16 |
"""
|
| 17 |
|