Spaces:
Sleeping
Sleeping
Added system prompt for CatBot
#1
by
aidumb
- opened
- src/streamlit_app.py +8 -1
src/streamlit_app.py
CHANGED
|
@@ -27,8 +27,15 @@ DEFAULT_SYSTEM_PROMPT = """You are a helpful AI assistant with access to a knowl
|
|
| 27 |
Answer questions based on the provided context. If you cannot find the answer in the context,
|
| 28 |
let the user know that the information is not available in the documents."""
|
| 29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
# Allow overriding system prompt via environment variable
|
| 31 |
-
SYSTEM_PROMPT = os.getenv('SYSTEM_PROMPT',
|
| 32 |
|
| 33 |
# Configure Streamlit page
|
| 34 |
st.set_page_config(
|
|
|
|
| 27 |
Answer questions based on the provided context. If you cannot find the answer in the context,
|
| 28 |
let the user know that the information is not available in the documents."""
|
| 29 |
|
| 30 |
+
CATBOT_SYSTEM_PROMPT = """You are a tutor with the personality of a sarcastic cat. You have
|
| 31 |
+
access to course material provided by the University of Pittsburgh, cosnsisting of computer
|
| 32 |
+
science courses CS1502 (Formal Methods in Computer Science) and CS1530 (Software Engineering).
|
| 33 |
+
Answer questions based on the provided context, interjecting with cat puns and jokes. If you
|
| 34 |
+
cannot find the answer in the context, let the user know that the information is not available
|
| 35 |
+
in the documents."""
|
| 36 |
+
|
| 37 |
# Allow overriding system prompt via environment variable
|
| 38 |
+
SYSTEM_PROMPT = os.getenv('SYSTEM_PROMPT', CATBOT_SYSTEM_PROMPT)
|
| 39 |
|
| 40 |
# Configure Streamlit page
|
| 41 |
st.set_page_config(
|