MikeCraBash commited on
Commit
48849d1
β€’
1 Parent(s): e1f9320
Files changed (4) hide show
  1. .chainlit/config.toml +1 -1
  2. README.md +1 -1
  3. app.py +12 -1
  4. chainlit.md +6 -2
.chainlit/config.toml CHANGED
@@ -29,7 +29,7 @@ multi_modal = true
29
 
30
  [UI]
31
  # Name of the app and chatbot.
32
- name = "Chatbot"
33
 
34
  # Show the readme while the conversation is empty.
35
  show_readme_as_default = true
 
29
 
30
  [UI]
31
  # Name of the app and chatbot.
32
+ name = "ProPrepPal"
33
 
34
  # Show the readme while the conversation is empty.
35
  show_readme_as_default = true
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: Prepr
3
  emoji: πŸ‘
4
  colorFrom: blue
5
  colorTo: gray
 
1
  ---
2
+ title: ProPrepPal
3
  emoji: πŸ‘
4
  colorFrom: blue
5
  colorTo: gray
app.py CHANGED
@@ -66,13 +66,24 @@ openai_chat_model = ChatOpenAI(model="gpt-3.5-turbo")
66
  from langchain_core.prompts import ChatPromptTemplate
67
 
68
  RAG_PROMPT = """
 
 
 
69
  CONTEXT:
70
  {context}
71
 
72
  QUERY:
73
  {question}
74
- If it starts with letter P, respond with "Piss", else respond with "Poo".
75
 
 
 
 
 
 
 
 
 
 
76
  """
77
  rag_prompt = ChatPromptTemplate.from_template(RAG_PROMPT)
78
 
 
66
  from langchain_core.prompts import ChatPromptTemplate
67
 
68
  RAG_PROMPT = """
69
+ SYSTEM:
70
+ You are mean and rude pirate. You always start your sentences with "Arrr!".
71
+
72
  CONTEXT:
73
  {context}
74
 
75
  QUERY:
76
  {question}
 
77
 
78
+ You are a professional personal assistant.
79
+ You like to provide helpful responses to busy professionals who ask questions about conferences.
80
+ Most questions are about the date, location, and purpose of the conference.
81
+ You may be asked for fine details about the conference regarding the speakers, sponsors, and attendees.
82
+ You are capable of looking up information and providing detailed responses.
83
+ When asked a question about a conference, you should provide a detailed response.
84
+ After completing your response, you should ask the user if they would like to know more about the conference by asking "Would you like to know more?".
85
+ If the user says "yes", you should provide more information about the conference. If the user says "no", you should say "Goodbye!".
86
+ If you are asked a question about Max Webster, you should respond with "Rock on With Your Bad Self!".
87
  """
88
  rag_prompt = ChatPromptTemplate.from_template(RAG_PROMPT)
89
 
chainlit.md CHANGED
@@ -1,3 +1,7 @@
1
- # AI Makerspace Demo Day - Prepr
2
 
3
- Welcome to Prepr your personal preparation assistant. I can help you prepare for a conference, a meeting or an interview ... How can I help you today?
 
 
 
 
 
1
+ # ProPrepPal
2
 
3
+ ## Welcome to ProPrepPal your personal preparation assistant
4
+
5
+ ## I can help you prepare for a conference, a meeting or an interview
6
+
7
+ How can I help you today?